Package org.iworkz.habitat.dao
Class DatabaseHelper
java.lang.Object
org.iworkz.habitat.dao.DatabaseHelper
@Singleton public class DatabaseHelper extends Object
-
Constructor Summary
Constructors Constructor Description DatabaseHelper() -
Method Summary
Modifier and Type Method Description voidcreateTable(ConnectionProvider task, GenericDao dao)voidcreateTable(GenericDao dao)protected voidcreateTable(EntityDefinition table, Connection connection, boolean onlyIfNotExists)voidcreateTableIfNotExists(GenericDao dao)voidcreateTableIfNotExists(Session session, GenericDao dao)voiddropTableIfExists(ConnectionProvider task, GenericDao dao)voiddropTableIfExists(GenericDao dao)voiddropTableIfExists(EntityDefinition table, Connection connection)voidexecuteStatement(String createTableSQL, Connection connection)voidexecuteStatement(String sqlCommand, GenericDao dao)voidexecuteStatement(Session session, String sqlCommand, GenericDao dao)
-
Constructor Details
-
DatabaseHelper
public DatabaseHelper()
-
-
Method Details
-
dropTableIfExists
-
dropTableIfExists
-
dropTableIfExists
-
createTable
-
createTable
-
createTableIfNotExists
-
createTableIfNotExists
-
createTable
-
executeStatement
-
executeStatement
-
executeStatement
-