Methods Summary |
---|
public oracle.toplink.essentials.sessions.Login | getLogin()ADVANCED:
Return a DatabaseLogin to be used by separate sequencing connection(s).
|
public int | getMaxPoolSize()PUBLIC:
Returns a maximum number of connections in sequencing connection pool
|
public int | getMinPoolSize()PUBLIC:
Returns a minimum number of connections in sequencing connection pool.
|
public void | initializePreallocated()ADVANCED:
Removes all preallocated sequencing objects.
Ignored if getSequencingValueGenarationPolicy().shouldUsePreallocation() returns false.
This method is called internally after Sequencing object is destructed.
|
public void | initializePreallocated(java.lang.String seqName)ADVANCED:
Removes all preallocated sequencing objects for the given sequence name.
Ignored if getSequencingValueGenarationPolicy().shouldUsePreallocation() returns false.
|
public boolean | isConnectedUsingSeparateConnection()PUBLIC:
Indicates whether sequencing actually uses separate connection(s).
Returns true if sequencing is connected and uses separate connection(s).
Returns false if sequencing is not connected (getSequencing()==null).
Note that if shouldUseSeparateConnection() returns false this method also returns false.
However if shouldUseSeparateConnection() returns true this method
returns false in the following two cases:
sequencing is not connected;
getSequence().shouldUseSeparateConnection() == false.
|
public void | resetSequencing()ADVANCED:
Immediately re-create sequencing object.
The only reason to use this method is to pick up all parameters'
values that were changed after the original sequencing object has been created.
|
public void | setLogin(oracle.toplink.essentials.sessions.Login login)ADVANCED:
Returns a DatabaseLogin to be used by separate sequencing connection(s)
The set value is ignored if shouldUseSeparateConnection() returns false.
The DatabaseLogin *MUST*:
1. specify *NON-JTS* connections (such as NON_JTS driver or read-only datasource);
2. sequenceLogin.shouldUseExternalTransactionController()==false
In case this method is not called, but separate connection should be used,
sequencing will use a clone of login owned by the DatabaseSession,
or a clone of read login owned by ServerSession.
|
public void | setMaxPoolSize(int size)PUBLIC:
Sets a maximum number of connections in sequencing connection pool
The set value is ignored if shouldUseSeparateConnection() returns false.
The set value is ignored if SequencingControl has been obtained not from ServerSession.
By default is 2.
|
public void | setMinPoolSize(int size)PUBLIC:
Sets a minimum number of connections in sequencing connection pool
The set value is ignored if shouldUseSeparateConnection() returns false.
The set value is ignored if SequencingControl has been obtained not from ServerSession.
By default is 2.
|
public void | setShouldUseSeparateConnection(boolean shouldUseSeparateConnection)PUBLIC:
Set whether separate connection(s) for sequencing could be used
(by default it couldn't).
If this flag is set to true then separate connection(s) for sequencing
will be used in case getSequence().shouldUseSeparateConnection()
returns true.
|
public boolean | shouldUseSeparateConnection()PUBLIC:
Indicate whether separate connection(s) for sequencing could be used
(by default it couldn't).
If this flag is set to true then separate connection(s) for sequencing
will be used in case getSequence().shouldUseSeparateConnection()
returns true.
|