|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.cpa.persistence.sql.keygen.AbstractKeyGenerator
public abstract class AbstractKeyGenerator
Abstract Class that implements the KeyGenerator Interface and provide implementation for methods that are common in more than one subclass of this AbstractKeyGenerator.
Constructor Summary | |
---|---|
AbstractKeyGenerator()
|
Method Summary | |
---|---|
void |
closeSeparateConnection(java.sql.Connection conn)
Close the JDBC Connection. |
java.sql.Connection |
getSeparateConnection(Database database)
Operning new JDBC Connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.castor.cpa.persistence.sql.keygen.KeyGenerator |
---|
buildStatement, executeStatement, generateKey, isInSameConnection |
Constructor Detail |
---|
public AbstractKeyGenerator()
Method Detail |
---|
public final java.sql.Connection getSeparateConnection(Database database) throws PersistenceException
database
- The database on which it opens the JDBC connection.
PersistenceException
- If fails to open connection.public final void closeSeparateConnection(java.sql.Connection conn)
conn
- A JDBC Connection.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |