|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An Interface that represents the Factory configuration.
Copyright 2002 Sapient
| Field Summary | |
static boolean |
AutoCreate
Default value for AutoCreate |
static long |
BlockSize
Default value for BlockSize |
static String |
CreateStatementName
Default value for CreateStatementName |
static long |
InitialBlockStart
Default value for InitialBlockStart |
static String |
RetrieveStatementName
Default value for RetrieveStatementName |
static String |
UpdateStatementName
Default value for UpdateStatementName |
| Fields inherited from interface org.sape.carbon.core.component.ComponentConfiguration |
ComponentTemplateName |
| Method Summary | |
long |
getBlockSize()
BlockSize is the number of IDs that is reserved upon each call to the database. |
ConnectionFactory |
getConnectionFactory()
Reference to the ConnectionFactory that this service will use to create connections to the database (required) |
String |
getCreateStatementName()
Name of a PreparedStatement configured within the StatementFactory used to create a new ID |
String |
getIDName()
IDName identifies the UniqueID in the database (required) |
long |
getInitialBlockStart()
InitialBlockStart is used to define the starting value of the ID in the case that the ID is automatically created by the service |
String |
getRetrieveStatementName()
Name of a PreparedStatement configured within the StatementFactory used to get the starting value of the next available block of IDs |
StatementFactory |
getStatementFactory()
Reference to the StatementFactory that this service will use to create sql statements (required) |
String |
getUpdateStatementName()
Name of a PreparedStatement configured within the StatementFactory used to update the starting value of the next available block of IDs |
boolean |
isAutoCreate()
AutoCreate specifies whether or not the ID should be created if it does not exist. |
void |
setAutoCreate(boolean autoCreate)
AutoCreate specifies whether or not the ID should be created if it does not exist. |
void |
setBlockSize(long size)
BlockSize is the number of IDs that is reserved upon each call to the database. |
void |
setConnectionFactory(ConnectionFactory factory)
Reference to the ConnectionFactory that this service will use to create connections to the database (required) |
void |
setCreateStatementName(String name)
Name of a PreparedStatement configured within the StatementFactory used to create a new ID |
void |
setIDName(String name)
IDName identifies the UniqueID in the database (required) |
void |
setInitialBlockStart(long startValue)
InitialBlockStart is used to define the starting value of the ID in the case that the ID is automatically created by the service. |
void |
setRetrieveStatementName(String name)
Name of a PreparedStatement configured within the StatementFactory used to get the starting value of the next available block of IDs |
void |
setStatementFactory(StatementFactory factory)
Reference to the StatementFactory that this service will use to create sql statements (required) |
void |
setUpdateStatementName(String name)
Name of a PreparedStatement configured within the StatementFactory used to update the starting value of the next available block of IDs |
| Methods inherited from interface org.sape.carbon.core.component.ComponentConfiguration |
getComponentDescription, getComponentTemplateName, getFunctionalImplementationClass, getFunctionalInterface, setComponentDescription, setComponentTemplateName, setFunctionalImplementationClass, setFunctionalInterface |
| Methods inherited from interface org.sape.carbon.core.config.Configuration |
clone, getConfigurationInterface, getConfigurationName, getDataStructure, getRootElement, isConfigurationWritable, setConfigurationName, setConfigurationReadOnly |
| Field Detail |
public static final long InitialBlockStart
public static final long BlockSize
public static final boolean AutoCreate
public static final String RetrieveStatementName
public static final String UpdateStatementName
public static final String CreateStatementName
| Method Detail |
public long getInitialBlockStart()
public void setInitialBlockStart(long startValue)
startValue - the first value of an ID that is automatically
createdpublic String getIDName()
public void setIDName(String name)
name - the name of the unique idpublic long getBlockSize()
public void setBlockSize(long size)
size - the blocksize to reservce in the databasepublic boolean isAutoCreate()
public void setAutoCreate(boolean autoCreate)
autoCreate - should the id be auto createdpublic StatementFactory getStatementFactory()
public void setStatementFactory(StatementFactory factory)
factory - statement factory to use with the servicepublic ConnectionFactory getConnectionFactory()
public void setConnectionFactory(ConnectionFactory factory)
factory - connection factory to use with the servicepublic String getRetrieveStatementName()
public void setRetrieveStatementName(String name)
name - name of the prepared statementpublic String getUpdateStatementName()
public void setUpdateStatementName(String name)
name - name of the prepared statementpublic String getCreateStatementName()
public void setCreateStatementName(String name)
name - name of the prepared statement
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||