|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apelon.dts.common.NspIIDGenerator
public class NspIIDGenerator
Title: NspSeqIIDGenerator
Description: Builds a IID based on the namespace id and the current table sequence value.
Copyright: Copyright (c) 2005
Company: Apelon Inc.
Constructor Summary | |
---|---|
NspIIDGenerator(Connection conn,
com.apelon.common.util.db.dao.GeneralDAO dao)
|
Method Summary | |
---|---|
long |
getIID(int namespaceId,
String tableName)
|
void |
synchronizeAllSequences()
This synchronizes all the sequence objects in cache with db. |
void |
synchSequences(HashMap seqMap,
Connection targetConn)
This synchronizes all sequences in the target connection as provided in the HashMap. |
void |
updateSequence(String seqName,
long startSeqVal,
long incSeqVal)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NspIIDGenerator(Connection conn, com.apelon.common.util.db.dao.GeneralDAO dao)
Method Detail |
---|
public long getIID(int namespaceId, String tableName) throws SQLException
SQLException
public void synchronizeAllSequences() throws SQLException
SQLException
public void updateSequence(String seqName, long startSeqVal, long incSeqVal) throws SQLException
SQLException
public void synchSequences(HashMap seqMap, Connection targetConn) throws SQLException
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |