API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.persistance.query. JOTQueryInterface View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
 JOTQueryInterface
Subinterfaces
Description
public interface JOTQueryInterface
Interface to query implementations
The query Implementations provide backend specific support for executing search querries for Models.
See also:   
Methods
Hide/Show inherited methods
public void alterAddField (JOTTransaction transaction, JOTModelMapping mapping, JOTDBField field, Object defaultValue) throws Exception
  Add a new Field to a table The field must be defined in the DB Model.
public void createTable (JOTTransaction transaction, JOTModelMapping mapping) throws Exception
  Delete the WHOLE TABLE in backend
public void deleteTable (JOTTransaction transaction, JOTModelMapping mapping) throws Exception
  Delete the WHOLE TABLE in backend
public JOTQueryResult executeSQL (JOTTransaction transaction, JOTModelMapping mapping, Class objectClass, String sql, Object params, JOTStatementFlags flags) throws Exception
  This is here, if you want to make manual custom SQL calls not covered by the other methods
NOTE: your request MUST return records matching your model.
THIS IS ONLY SUPPORTED WITH THE SQL Model (JOTDBModel)
public void save (JOTTransaction transaction, JOTModel model) throws Exception
  Saves record in backend
public void updateSQL (JOTTransaction transaction, JOTModelMapping mapping, String sql, Object params, JOTStatementFlags flags) throws Exception
  An "Update" type queries returns no results: IE: insert, delete etc...
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar