org.castor.cpa.persistence.sql.keygen
Class AbstractKeyGenerator
java.lang.Object
org.castor.cpa.persistence.sql.keygen.AbstractKeyGenerator
- All Implemented Interfaces:
- KeyGenerator
- Direct Known Subclasses:
- AbstractAfterKeyGenerator, AbstractBeforeKeyGenerator, NoKeyGenerator, SequenceDuringKeyGenerator
public abstract class AbstractKeyGenerator
- extends Object
- implements KeyGenerator
Abstract Class that implements the KeyGenerator Interface and provide
implementation for methods that are common in more than one subclass of this
AbstractKeyGenerator.
- Version:
- $Revision: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
- Author:
- Ahmad Hassan, Ralf Joachim
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractKeyGenerator
public AbstractKeyGenerator()
getSeparateConnection
public final Connection getSeparateConnection(Database database)
throws PersistenceException
- Operning new JDBC Connection.
- Parameters:
database - The database on which it opens the JDBC connection.
- Returns:
- A JDBC Connection
- Throws:
PersistenceException - If fails to open connection.
closeSeparateConnection
public final void closeSeparateConnection(Connection conn)
- Close the JDBC Connection.
- Parameters:
conn - A JDBC Connection.
Copyright © 2012. All Rights Reserved.