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