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$ $Date: 2009-07-13 17:22:43 (Tue, 28 Jul 2009) $
- 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 © 2010. All Rights Reserved.