uk.ac.ebi.intact.persistence
Class PostgresSequenceManager
java.lang.Object
|
+--uk.ac.ebi.intact.persistence.AbstractSequenceManager
|
+--uk.ac.ebi.intact.persistence.PostgresSequenceManager
- All Implemented Interfaces:
- org.apache.ojb.broker.util.sequence.SequenceManager
- public class PostgresSequenceManager
- extends AbstractSequenceManager
This sequence manager accesses a database sequence object to
get the next unique id, leaving the management of the sequence
to the database. In it's current implementation, this class is
Postgresql-specific, but some other RDBMS also offer sequence objects.
IDs are unique across all classes.
- Author:
- hhe .adapted to postgresql DBMS by Z.Tassamart
, Samuel Kerrien (skerrien@ebi.ac.uk) - abstraction of the model
Method Summary |
protected java.lang.String |
getNextSequence()
Called by the vendor specific implementation to obtain the SQL
statement which allows to get the next unique ID. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PostgresSequenceManager
public PostgresSequenceManager(org.apache.ojb.broker.PersistenceBroker broker)
throws IntactException
- Public constructor
getNextSequence
protected final java.lang.String getNextSequence()
- Description copied from class:
AbstractSequenceManager
- Called by the vendor specific implementation to obtain the SQL
statement which allows to get the next unique ID.
- Specified by:
getNextSequence
in class AbstractSequenceManager
- Returns:
- the SQL statement which allows to get the next unique ID
IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk