@Singleton public class DatabaseHelper extends Object
| Constructor and Description |
|---|
DatabaseHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
createTable(ConnectionProvider task,
GenericDao dao) |
protected void |
createTable(EntityDefinition table,
Connection connection,
boolean onlyIfNotExists) |
void |
createTable(GenericDao dao) |
void |
createTableIfNotExists(GenericDao dao) |
void |
createTableIfNotExists(Session session,
GenericDao dao) |
void |
dropTableIfExists(ConnectionProvider task,
GenericDao dao) |
void |
dropTableIfExists(EntityDefinition table,
Connection connection) |
void |
dropTableIfExists(GenericDao dao) |
void |
executeStatement(Session session,
String sqlCommand,
GenericDao dao) |
void |
executeStatement(String createTableSQL,
Connection connection) |
void |
executeStatement(String sqlCommand,
GenericDao dao) |
public void dropTableIfExists(ConnectionProvider task, GenericDao dao)
public void dropTableIfExists(GenericDao dao)
public void dropTableIfExists(EntityDefinition table, Connection connection)
public void createTable(ConnectionProvider task, GenericDao dao)
public void createTable(GenericDao dao)
public void createTableIfNotExists(Session session, GenericDao dao)
public void createTableIfNotExists(GenericDao dao)
protected void createTable(EntityDefinition table, Connection connection, boolean onlyIfNotExists)
public void executeStatement(Session session, String sqlCommand, GenericDao dao)
public void executeStatement(String sqlCommand, GenericDao dao)
public void executeStatement(String createTableSQL, Connection connection)
Copyright © 2019. All rights reserved.