org.qi4j.entitystore.sql.internal
Interface DatabaseSQLService

All Known Subinterfaces:
DatabaseSQLService.DatabaseSQLServiceComposite
All Known Implementing Classes:
DatabaseSQLServiceCoreMixin, DatabaseSQLServiceStatementsMixin, DerbySQLDatabaseSQLServiceMixin, MySQLDatabaseSQLServiceMixin, PostgreSQLDatabaseSQLServiceMixin

public interface DatabaseSQLService


Nested Class Summary
static interface DatabaseSQLService.DatabaseSQLServiceComposite
           
static class DatabaseSQLService.EntityValueResult
           
 
Method Summary
 Connection getConnection()
           
 DatabaseSQLService.EntityValueResult getEntityValue(ResultSet rs)
           
 Long newPKForEntity()
           
 void populateGetAllEntitiesStatement(PreparedStatement ps)
           
 void populateGetEntityStatement(PreparedStatement ps, EntityReference ref)
           
 void populateInsertEntityStatement(PreparedStatement ps, Long entityPK, EntityReference ref, String entity, Long lastModified)
           
 void populateRemoveEntityStatement(PreparedStatement ps, Long entityPK, EntityReference ref)
           
 void populateUpdateEntityStatement(PreparedStatement ps, Long entityPK, Long entityOptimisticLock, EntityReference ref, String entity, Long lastModified)
           
 PreparedStatement prepareGetAllEntitiesStatement(Connection connection)
           
 PreparedStatement prepareGetEntityStatement(Connection connection)
           
 PreparedStatement prepareInsertEntityStatement(Connection connection)
           
 PreparedStatement prepareRemoveEntityStatement(Connection connection)
           
 PreparedStatement prepareUpdateEntityStatement(Connection connection)
           
 void startDatabase()
           
 void stopDatabase()
           
 

Method Detail

startDatabase

void startDatabase()
                   throws Exception
Throws:
Exception

stopDatabase

void stopDatabase()
                  throws Exception
Throws:
Exception

getConnection

Connection getConnection()
                         throws SQLException
Throws:
SQLException

prepareGetEntityStatement

PreparedStatement prepareGetEntityStatement(Connection connection)
                                            throws SQLException
Throws:
SQLException

prepareGetAllEntitiesStatement

PreparedStatement prepareGetAllEntitiesStatement(Connection connection)
                                                 throws SQLException
Throws:
SQLException

prepareInsertEntityStatement

PreparedStatement prepareInsertEntityStatement(Connection connection)
                                               throws SQLException
Throws:
SQLException

prepareUpdateEntityStatement

PreparedStatement prepareUpdateEntityStatement(Connection connection)
                                               throws SQLException
Throws:
SQLException

prepareRemoveEntityStatement

PreparedStatement prepareRemoveEntityStatement(Connection connection)
                                               throws SQLException
Throws:
SQLException

populateGetEntityStatement

void populateGetEntityStatement(PreparedStatement ps,
                                EntityReference ref)
                                throws SQLException
Throws:
SQLException

populateGetAllEntitiesStatement

void populateGetAllEntitiesStatement(PreparedStatement ps)
                                     throws SQLException
Throws:
SQLException

populateInsertEntityStatement

void populateInsertEntityStatement(PreparedStatement ps,
                                   Long entityPK,
                                   EntityReference ref,
                                   String entity,
                                   Long lastModified)
                                   throws SQLException
Throws:
SQLException

populateUpdateEntityStatement

void populateUpdateEntityStatement(PreparedStatement ps,
                                   Long entityPK,
                                   Long entityOptimisticLock,
                                   EntityReference ref,
                                   String entity,
                                   Long lastModified)
                                   throws SQLException
Throws:
SQLException

populateRemoveEntityStatement

void populateRemoveEntityStatement(PreparedStatement ps,
                                   Long entityPK,
                                   EntityReference ref)
                                   throws SQLException
Throws:
SQLException

getEntityValue

DatabaseSQLService.EntityValueResult getEntityValue(ResultSet rs)
                                                    throws SQLException
Throws:
SQLException

newPKForEntity

Long newPKForEntity()