org.qi4j.entitystore.sql.internal
Class DatabaseSQLServiceStatementsMixin

java.lang.Object
  extended by org.qi4j.entitystore.sql.internal.DatabaseSQLServiceStatementsMixin
All Implemented Interfaces:
DatabaseSQLService

public abstract class DatabaseSQLServiceStatementsMixin
extends java.lang.Object
implements DatabaseSQLService


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.qi4j.entitystore.sql.internal.DatabaseSQLService
DatabaseSQLService.DatabaseSQLServiceComposite, DatabaseSQLService.EntityValueResult
 
Constructor Summary
DatabaseSQLServiceStatementsMixin()
           
 
Method Summary
 void populateGetAllEntitiesStatement(java.sql.PreparedStatement ps)
           
 void populateGetEntityStatement(java.sql.PreparedStatement ps, EntityReference ref)
           
 void populateInsertEntityStatement(java.sql.PreparedStatement ps, EntityReference ref, java.lang.String entity, java.lang.Long lastModified)
           
 void populateRemoveEntityStatement(java.sql.PreparedStatement ps, java.lang.Long entityPK, EntityReference ref)
           
 void populateUpdateEntityStatement(java.sql.PreparedStatement ps, java.lang.Long entityPK, java.lang.Long entityOptimisticLock, EntityReference ref, java.lang.String entity, java.lang.Long lastModified)
           
 java.sql.PreparedStatement prepareGetAllEntitiesStatement(java.sql.Connection connection)
           
 java.sql.PreparedStatement prepareGetEntityStatement(java.sql.Connection connection)
           
 java.sql.PreparedStatement prepareInsertEntityStatement(java.sql.Connection connection)
           
 java.sql.PreparedStatement prepareRemoveEntityStatement(java.sql.Connection connection)
           
 java.sql.PreparedStatement prepareUpdateEntityStatement(java.sql.Connection connection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.qi4j.entitystore.sql.internal.DatabaseSQLService
getConnection, getEntityValue, startDatabase, stopDatabase
 

Constructor Detail

DatabaseSQLServiceStatementsMixin

public DatabaseSQLServiceStatementsMixin()
Method Detail

prepareGetAllEntitiesStatement

public java.sql.PreparedStatement prepareGetAllEntitiesStatement(java.sql.Connection connection)
                                                          throws java.sql.SQLException
Specified by:
prepareGetAllEntitiesStatement in interface DatabaseSQLService
Throws:
java.sql.SQLException

prepareGetEntityStatement

public java.sql.PreparedStatement prepareGetEntityStatement(java.sql.Connection connection)
                                                     throws java.sql.SQLException
Specified by:
prepareGetEntityStatement in interface DatabaseSQLService
Throws:
java.sql.SQLException

prepareInsertEntityStatement

public java.sql.PreparedStatement prepareInsertEntityStatement(java.sql.Connection connection)
                                                        throws java.sql.SQLException
Specified by:
prepareInsertEntityStatement in interface DatabaseSQLService
Throws:
java.sql.SQLException

prepareRemoveEntityStatement

public java.sql.PreparedStatement prepareRemoveEntityStatement(java.sql.Connection connection)
                                                        throws java.sql.SQLException
Specified by:
prepareRemoveEntityStatement in interface DatabaseSQLService
Throws:
java.sql.SQLException

prepareUpdateEntityStatement

public java.sql.PreparedStatement prepareUpdateEntityStatement(java.sql.Connection connection)
                                                        throws java.sql.SQLException
Specified by:
prepareUpdateEntityStatement in interface DatabaseSQLService
Throws:
java.sql.SQLException

populateGetAllEntitiesStatement

public void populateGetAllEntitiesStatement(java.sql.PreparedStatement ps)
                                     throws java.sql.SQLException
Specified by:
populateGetAllEntitiesStatement in interface DatabaseSQLService
Throws:
java.sql.SQLException

populateGetEntityStatement

public void populateGetEntityStatement(java.sql.PreparedStatement ps,
                                       EntityReference ref)
                                throws java.sql.SQLException
Specified by:
populateGetEntityStatement in interface DatabaseSQLService
Throws:
java.sql.SQLException

populateInsertEntityStatement

public void populateInsertEntityStatement(java.sql.PreparedStatement ps,
                                          EntityReference ref,
                                          java.lang.String entity,
                                          java.lang.Long lastModified)
                                   throws java.sql.SQLException
Specified by:
populateInsertEntityStatement in interface DatabaseSQLService
Throws:
java.sql.SQLException

populateRemoveEntityStatement

public void populateRemoveEntityStatement(java.sql.PreparedStatement ps,
                                          java.lang.Long entityPK,
                                          EntityReference ref)
                                   throws java.sql.SQLException
Specified by:
populateRemoveEntityStatement in interface DatabaseSQLService
Throws:
java.sql.SQLException

populateUpdateEntityStatement

public void populateUpdateEntityStatement(java.sql.PreparedStatement ps,
                                          java.lang.Long entityPK,
                                          java.lang.Long entityOptimisticLock,
                                          EntityReference ref,
                                          java.lang.String entity,
                                          java.lang.Long lastModified)
                                   throws java.sql.SQLException
Specified by:
populateUpdateEntityStatement in interface DatabaseSQLService
Throws:
java.sql.SQLException