Property |
Data Type / Value |
Description |
Configuration Interface |
org.sape.carbon.services.uniqueid.
UniqueIDServiceConfiguration |
Defines the configuration Interface for the service
|
Functional Interface |
org.sape.carbon.services.uniqueid.UniqueIDService |
Functional Interface defines the programming contract,
In this case, we have the getNextID that returns the
next unique ID
|
Functional Implementation |
org.sape.carbon.services.uniqueid. DefaultUniqueIDServiceImpl
|
Default implementation for this service |
StatementFactory
|
Required: reference to the statement factory
|
Reference to the statement factory which contains all
the statements executed by the unique id service. e.g.
ref:///uniqueid/UIDStatementFactoryForOracle
|
ConnectionFactory |
Required: reference to the connection factory |
Though the sql statement factory also mentions a
connection factory, it is necessary to configure a connection factory
for the unique id service. This is necessary because the unique id
service maintains all the transaction isolation. e.g.
ref:///sql/connection/StandaloneConnectionFactory |
InitialBlockStart |
optional long value defaults to 0 if not specified |
InitialBlockStart is used to define the starting
value of the ID in the case that the ID is automatically created by the service
|
IDName
|
Required: String parameter
|
IDName identifies the UniqueID in the database. Each
instance of this service is associated with one unique id sequence
name
|
BlockSize
|
Required: long parameter
|
BlockSize is the number of IDs that is reserved upon
each call to the database. This should be optimized to minimize
hits to the database |
AutoCreate
|
Optional: boolean parameter defaults to true
|
AutoCreate specifies whether or not the ID should be
created if it does not exist. If this is true, the ID will be
automatically created. |
RetrieveStatementName
|
Optional: String defaults to RetrieveUniqueID
|
Name of a PreparedStatement configured within
the StatementFactory used to get the starting value of the next available
block of IDs.
|
UpdateStatementName
|
Optional: String defaults to UpdateUniqueID
|
Name of a PreparedStatement configured within
the StatementFactory used to update the starting value of the next available
block of IDs
|
CreateStatementName |
Optional: String defaults to CreateUniqueID
|
Name of a PreparedStatement configured within the
StatementFactory used to create a new ID |