|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.anotheria.db.service.BasePersistenceServiceJDBCImpl
net.anotheria.db.service.GenericPersistenceService
public abstract class GenericPersistenceService
Generic persistence service with additional functional.
Field Summary | |
---|---|
static String |
DMD_F_TABLE_NAME
Database meta data field name for table name field in result set from getTables(...) method. |
Fields inherited from class net.anotheria.db.service.BasePersistenceServiceJDBCImpl |
---|
log |
Constructor Summary | |
---|---|
GenericPersistenceService()
Default constructor. |
|
GenericPersistenceService(String configFile)
Public constructor. |
Method Summary | |
---|---|
protected abstract List<String> |
getDDL()
Get DDL queries for creating persistence structure. |
protected long |
getNextId()
Reserve and get next id. |
protected abstract String |
getPKFieldName()
Get persistence service primary key field name. |
protected abstract String |
getTableName()
Get persistence service table name. |
protected void |
initialize()
Initialize generic persistence service functional. |
protected void |
initializeId()
Initialize id. |
Methods inherited from class net.anotheria.db.service.BasePersistenceServiceJDBCImpl |
---|
close, close, close, getConnection, init, release, release, release |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DMD_F_TABLE_NAME
Constructor Detail |
---|
public GenericPersistenceService()
public GenericPersistenceService(String configFile)
configFile
- - JDBC configuration file nameMethod Detail |
---|
protected void initialize()
protected abstract List<String> getDDL()
List
of String
protected void initializeId()
protected abstract String getTableName()
null
DDL will be not executed.
String
protected abstract String getPKFieldName()
null
id will be initialized with 0 value.
String
protected long getNextId()
Long
next id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |