org.qi4j.entitystore.sql.internal
Class DatabaseSQLServiceCoreMixin

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

public abstract class DatabaseSQLServiceCoreMixin
extends Object
implements DatabaseSQLService


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.qi4j.entitystore.sql.internal.DatabaseSQLService
DatabaseSQLService.DatabaseSQLServiceComposite, DatabaseSQLService.EntityValueResult
 
Field Summary
protected  DatabaseSQLServiceSpi spi
           
 
Constructor Summary
DatabaseSQLServiceCoreMixin()
           
 
Method Summary
protected  String getConfiguredSchemaName(String defaultSchemaName)
           
 Connection getConnection()
           
 Long newPKForEntity()
           
 void startDatabase()
           
 void stopDatabase()
           
 
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
getEntityValue, populateGetAllEntitiesStatement, populateGetEntityStatement, populateInsertEntityStatement, populateRemoveEntityStatement, populateUpdateEntityStatement, prepareGetAllEntitiesStatement, prepareGetEntityStatement, prepareInsertEntityStatement, prepareRemoveEntityStatement, prepareUpdateEntityStatement
 

Field Detail

spi

@This
protected DatabaseSQLServiceSpi spi
Constructor Detail

DatabaseSQLServiceCoreMixin

public DatabaseSQLServiceCoreMixin()
Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
Specified by:
getConnection in interface DatabaseSQLService
Throws:
SQLException

getConfiguredSchemaName

protected String getConfiguredSchemaName(String defaultSchemaName)

startDatabase

public void startDatabase()
                   throws Exception
Specified by:
startDatabase in interface DatabaseSQLService
Throws:
Exception

stopDatabase

public void stopDatabase()
                  throws Exception
Specified by:
stopDatabase in interface DatabaseSQLService
Throws:
Exception

newPKForEntity

public Long newPKForEntity()
Specified by:
newPKForEntity in interface DatabaseSQLService