com.knots.kcl.orm 
 Class OrmPersistence
  java.lang.Object  com.knots.kcl.orm.OrmPersistence
com.knots.kcl.orm.OrmPersistence 
  - All Implemented Interfaces: 
- IOrmPersistence, IOrmTransaction
 - Direct Known Subclasses: 
- OrmPersistenceCollection
  - public class OrmPersistence 
- extends java.lang.Object- implements IOrmPersistence
 Persistence Class 
 
 
    
       | Method Summary | 
  |  void | abortTransaction()
 | 
  |  void | beginTransaction()
 | 
  |  int | countEntity(java.lang.String entityName)
 | 
  |  int | countEntity(java.lang.String entityName, Condition condition)
 | 
  |  void | endTransaction()
 | 
  |  boolean | findEntity(java.lang.String entityName, Condition condition)
 | 
  |  boolean | findEntity(java.lang.String entityName, int entityId)
 | 
  |  boolean | getAutoCreation()
 | 
  |  boolean | getAutoQueryForLastId()
 | 
  |  DatabaseHelper | getDatabaseHelper()
 | 
  |  OrmDefinitionContext | getDefinitionContext()
 | 
  |  OrmManipulationQueryContext | getManipulationQueryContext()
 | 
  |  OrmTransactionContext | getTransactionContext()
 | 
  |  Entity[] | loadEntity(java.lang.String entityName, Condition condition, java.lang.String fields, Order[] orders, java.lang.Integer start, java.lang.Integer length)
 | 
  |  Entity | loadEntity(java.lang.String entityName, int entityId, java.lang.String fields)
 | 
  |  void | removeEntity(java.lang.String entityName, Condition condition)
 | 
  |  void | removeEntity(java.lang.String entityName, int id)
 | 
  |  int | saveEntity(Entity... entities)
 | 
  |  void | setAutoCreation(boolean auto)
 | 
  |  void | setAutoQueryForLastId(boolean auto)
 | 
 
     | Methods inherited from class java.lang.Object | 
  | equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
      
  OrmPersistence
  public OrmPersistence(OrmContexts contexts)
  
 getDatabaseHelper
  public DatabaseHelper getDatabaseHelper()
  -   
-   
  getDefinitionContext
  public OrmDefinitionContext getDefinitionContext()
  -   
-   
  getManipulationQueryContext
  public OrmManipulationQueryContext getManipulationQueryContext()
  -   
-   
  getTransactionContext
  public OrmTransactionContext getTransactionContext()
  -   
-   
  beginTransaction
  public void beginTransaction() throws java.lang.Exception
  -  - Specified by:
- beginTransactionin interface- IOrmTransaction
 
-  - Throws: 
- java.lang.Exception
 
  abortTransaction
  public void abortTransaction() throws java.lang.Exception
  -  - Specified by:
- abortTransactionin interface- IOrmTransaction
 
-  - Throws: 
- java.lang.Exception
 
  endTransaction
  public void endTransaction() throws java.lang.Exception
  -  - Specified by:
- endTransactionin interface- IOrmTransaction
 
-  - Throws: 
- java.lang.Exception
 
  getAutoCreation
  public boolean getAutoCreation()
  -  - Specified by:
- getAutoCreationin interface- IOrmPersistence
 
-   
  setAutoCreation
  public void setAutoCreation(boolean auto)
  -  - Specified by:
- setAutoCreationin interface- IOrmPersistence
 
-   
  getAutoQueryForLastId
  public boolean getAutoQueryForLastId()
  -  - Specified by:
- getAutoQueryForLastIdin interface- IOrmPersistence
 
-   
  setAutoQueryForLastId
  public void setAutoQueryForLastId(boolean auto)
  -  - Specified by:
- setAutoQueryForLastIdin interface- IOrmPersistence
 
-   
  countEntity
  public int countEntity(java.lang.String entityName) throws java.lang.Exception
  -  - Specified by:
- countEntityin interface- IOrmPersistence
 
-  - Throws: 
- java.lang.Exception
 
  countEntity
  public int countEntity(java.lang.String entityName, Condition condition) throws java.lang.Exception
  -  - Specified by:
- countEntityin interface- IOrmPersistence
 
-  - Throws: 
- java.lang.Exception
 
  findEntity
  public boolean findEntity(java.lang.String entityName, int entityId) throws java.lang.Exception
  -  - Specified by:
- findEntityin interface- IOrmPersistence
 
-  - Throws: 
- java.lang.Exception
 
  findEntity
  public boolean findEntity(java.lang.String entityName, Condition condition) throws java.lang.Exception
  -  - Specified by:
- findEntityin interface- IOrmPersistence
 
-  - Throws: 
- java.lang.Exception
 
  saveEntity
  public int saveEntity(Entity... entities) throws java.lang.Exception
  -  - Specified by:
- saveEntityin interface- IOrmPersistence
 
-  - Throws: 
- java.lang.Exception
 
  removeEntity
  public void removeEntity(java.lang.String entityName, int id) throws java.lang.Exception
  -  - Specified by:
- removeEntityin interface- IOrmPersistence
 
-  - Throws: 
- java.lang.Exception
 
  removeEntity
  public void removeEntity(java.lang.String entityName, Condition condition) throws java.lang.Exception
  -  - Specified by:
- removeEntityin interface- IOrmPersistence
 
-  - Throws: 
- java.lang.Exception
 
  loadEntity
  public Entity loadEntity(java.lang.String entityName, int entityId, java.lang.String fields) throws java.lang.Exception
  -  - Specified by:
- loadEntityin interface- IOrmPersistence
 
-  - Throws: 
- java.lang.Exception
 
  loadEntity
  public Entity[] loadEntity(java.lang.String entityName, Condition condition, java.lang.String fields, Order[] orders, java.lang.Integer start, java.lang.Integer length) throws java.lang.Exception
  -  - Specified by:
- loadEntityin interface- IOrmPersistence
 
-  - Throws: 
- java.lang.Exception