public abstract class DefaultDatabaseEntity extends Object
DefaultDatabaseEntity class provides the default implementation for
DatabaseEntity interface. It can be extended by entities which implement
the DatabaseEntity interface.| Constructor and Description |
|---|
DefaultDatabaseEntity() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
createInsertSql(String tableName,
EnumSet columnNameSet,
List<String> values) |
static Connection |
getConnection() |
static long |
insert(DefaultDatabaseEntity persistableEntity) |
protected abstract String |
prepareInsertStatement() |
public static Connection getConnection()
protected abstract String prepareInsertStatement()
protected static String createInsertSql(String tableName, EnumSet columnNameSet, List<String> values)
public static long insert(DefaultDatabaseEntity persistableEntity) throws SQLException
SQLExceptionCopyright © 2011–2019 Plain Source. All rights reserved.