org.qi4j.entitystore.sql.internal
Interface DatabaseSQLService
- All Known Subinterfaces:
- DatabaseSQLService.DatabaseSQLServiceComposite
- All Known Implementing Classes:
- DatabaseSQLServiceCoreMixin, DatabaseSQLServiceStatementsMixin, DerbySQLDatabaseSQLServiceMixin, H2SQLDatabaseSQLServiceMixin, MySQLDatabaseSQLServiceMixin, PostgreSQLDatabaseSQLServiceMixin, SQLiteDatabaseSQLServiceMixin
public interface DatabaseSQLService
Method Summary |
java.sql.Connection |
getConnection()
|
DatabaseSQLService.EntityValueResult |
getEntityValue(java.sql.ResultSet rs)
|
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)
|
void |
startDatabase()
|
void |
stopDatabase()
|
startDatabase
void startDatabase()
throws java.lang.Exception
- Throws:
java.lang.Exception
stopDatabase
void stopDatabase()
throws java.lang.Exception
- Throws:
java.lang.Exception
getConnection
java.sql.Connection getConnection()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
prepareGetEntityStatement
java.sql.PreparedStatement prepareGetEntityStatement(java.sql.Connection connection)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
prepareGetAllEntitiesStatement
java.sql.PreparedStatement prepareGetAllEntitiesStatement(java.sql.Connection connection)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
prepareInsertEntityStatement
java.sql.PreparedStatement prepareInsertEntityStatement(java.sql.Connection connection)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
prepareUpdateEntityStatement
java.sql.PreparedStatement prepareUpdateEntityStatement(java.sql.Connection connection)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
prepareRemoveEntityStatement
java.sql.PreparedStatement prepareRemoveEntityStatement(java.sql.Connection connection)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
populateGetEntityStatement
void populateGetEntityStatement(java.sql.PreparedStatement ps,
EntityReference ref)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
populateGetAllEntitiesStatement
void populateGetAllEntitiesStatement(java.sql.PreparedStatement ps)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
populateInsertEntityStatement
void populateInsertEntityStatement(java.sql.PreparedStatement ps,
EntityReference ref,
java.lang.String entity,
java.lang.Long lastModified)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
populateUpdateEntityStatement
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
- Throws:
java.sql.SQLException
populateRemoveEntityStatement
void populateRemoveEntityStatement(java.sql.PreparedStatement ps,
java.lang.Long entityPK,
EntityReference ref)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getEntityValue
DatabaseSQLService.EntityValueResult getEntityValue(java.sql.ResultSet rs)
throws java.sql.SQLException
- Throws:
java.sql.SQLException