API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.persistance.query. JOTQueryManager View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
 Object
      JOTQueryManager
Implements
Subclasses
Description
publicfinal class JOTQueryManager
Low(medium) level database access Usually you would rather use JOTMOdel methods or the JOTQueryBuilder unless you want to make a completely manual SQL query
See also:   
Constructors
public JOTQueryManager ()
Methods
Hide/Show inherited methods
publicstatic JOTQueryResult executeSQL (JOTTransaction transaction, Class modelClass, 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.
publicstatic JOTQueryInterface getImplementation (String className) throws Exception
  Internal Method, Not to be used by end-user.
Returns the QueryImplementation object, which deals with raw CRUD implementation.
publicstatic JOTModelMapping getMapping (JOTTransaction transaction, Class modelClass) throws Exception
 
publicstatic JOTModelMapping getMapping (JOTTransaction transaction, Class modelClass, boolean runValidation, boolean createMissingTables) throws Exception
  Internal Method, that usually would not be called by end-user.
Get/Loads a Model mapping.
modelClass MUST be of type JOTModel or subclass
publicstatic String getTableName (JOTTransaction transaction, Class modelClass)
publicstatic void save (JOTTransaction transaction, JOTModel model) throws Exception
publicstatic void updateSQL (JOTTransaction transaction, Class modelClass, String sql, Object params, JOTStatementFlags flags) throws Exception
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar