Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
 

com.newstep.solid.persistence.db
Class OracleUidGenerator
All Implemented Interfaces:
       UniqueIdGenerator

public class OracleUidGenerator      
Implements the UIDGenerator in terms of the Oracle sequence mechanism
Implements:
UniqueIdGenerator
 
Links:
Implementation Implementation Link
to Interface UniqueIdGenerator
Implements the UIDGenerator in terms of the Oracle sequence mechanism
 
 

Field Summary
private static String
private static Logger
Constructor Summary
public void
Method Summary
public int
getCurrentUniqueId(String uidName, Transaction trans)
public int
getNextUniqueId(String uidName, Transaction trans)
Field Detail
className
private static String className
Multiplicity:
1
Static.
 

logger
private static Logger logger
Multiplicity:
1
Static.
 
Constructor Detail
OracleUidGenerator
public void OracleUidGenerator ()
 
Constructor for the OracleUidGenerator object
Stereotype:
create
 
Method Detail
getCurrentUniqueId
public int getCurrentUniqueId (String uidName, Transaction trans)
 
Gets the current value of the specified sequence
Parameters:
uidName the name of the sequence to retrieve
trans the transaction in which the sequence should be retrieved
Exceptions:
PersistenceException if an error occurs retrieving the specified sequence
Return:
The current sequence value
Throws:
PersistenceException
 

getNextUniqueId
public int getNextUniqueId (String uidName, Transaction trans)
 
Gets the next unique value of the specified sequence
Parameters:
uidName the name of the sequence to increment
trans the transaction in which the sequence should be incremented
Exceptions:
PersistenceException if an error occurs incrementing the specified sequence
Return:
The next sequence value
Throws:
PersistenceException
 

Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD