java.lang.Object
com.flexstor.common.gateway.Gateway
com.flexstor.common.gateway.SequenceGateway
- All Implemented Interfaces:
- com.flexstor.common.constants.EjbHomeInterfacesI, com.flexstor.common.constants.SequenceConstantsI
- public class SequenceGateway
- extends Gateway
- implements com.flexstor.common.constants.SequenceConstantsI
Get the next sequence number for the defined sequence type.
- Version:
- 3.0
| Nested classes inherited from class com.flexstor.common.gateway.Gateway |
|
| Fields inherited from interface com.flexstor.common.constants.SequenceConstantsI |
APP_BUCKET_ID, APPLICATION_ID, ARCHIVE_STRUCTURE_ID, ASSET_ID, ASSET_ROLE_LIST_ID, ASSET_STRUCTURE_ID, BUCKET_ID, DISGUISE_BUCKET_ID, DISGUISE_FIELD_ID, DISGUISE_ID, DISPLAY_BUCKET_ID, DISPLAY_FIELD_ID, DISPLAY_ID, DISPLAY_LAYOUT_ID, ELEMENT_BUCKET_ID, FIELD_ID, PRIV_ASSET_ID, PRIVILEGE_ID, PROPERTY_ID, REPORT_TEMPLATE_ID, TRANS_DETAIL_ID, TRANS_LOG_ID, TRANSACTION_ID |
| Fields inherited from interface com.flexstor.common.constants.EjbHomeInterfacesI |
ADDRESS_HOME, APPLICATION_HOME, ASSET_PATH_HOME, ASSET_ROLE_LIST_HOME, ASSETS_COPY_SOURCE_HOME, ASSETS_IN_PROCESS_HOME, BUCKET_PERSIST_HOME, CART_HOME, CHECK_IN_CHECK_OUT_HOME, CHECKIN_HOME, CHECKOUT_HOME, CONTEXT_HOME, DELETE_HOME, DISGUISE_BUCKET_PERSIST_HOME, DISGUISE_FIELD_PERSIST_HOME, DISGUISE_HOME, DISPLAY_BUCKET_PERSIST_HOME, DISPLAY_FIELD_PERSIST_HOME, DISPLAY_HOME, DISPLAY_LAYOUT_PERSIST_HOME, EDIT_PERSIST_HOME, EMAIL_PERSIST_HOME, FIELD_PERSIST_HOME, FILE_STORAGE_HOME, FTP_PERSIST_HOME, GROUP_HOME, GROUP_PERSIST_HOME, IMPORT_RECORD_HOME, IMPORT_SETTING_HOME, INSERT_HOME, LOOKUP_HOME, LOOKUPLIST_HOME, MACHINE_HOME, PICTURE_GALLERY_TEMPLATE_HOME, PING_HOME, PRIV_ASSET_HOME, PRIVILEGE_PERSIST_HOME, PROPERTY_PERSIST_HOME, REPORT_TEMPLATE_HOME, ROLE_HOME, SAVED_SEARCH_HOME, SEARCH_HOME, SEARCH_RESULT_HOME, SEND_SETTING_HOME, SEQUENCE_HOME, SERVER_LIST_HOME, SETTINGS_HOME, TRANSACTION_LOG_HOME, UPDATE_HOME, USER_HOME, USER_PERSIST_HOME, VIR_DEVICE_HOME, WHERE_PERSIST_HOME, WORKSPACE_HOME |
| Methods inherited from class com.flexstor.common.gateway.Gateway |
beginHeartbeats, buildException, buildException, canLoadObject, canSaveObject, dispose, EBJObjectToString, enableDebugging, getHome, isInitalized, retrieveObject, shutdown, storeObject, storeObject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
sequence
private com.flexstor.ejb.sequence.FlexSequence sequence
SequenceGateway
public SequenceGateway()
getHomeName
protected java.lang.String getHomeName()
- Description copied from class:
Gateway
- Returns the name of the home interface.
- Specified by:
getHomeName in class Gateway
getBeanObject
protected com.flexstor.ejb.EjbObject getBeanObject()
- Description copied from class:
Gateway
- Returns the instance of the current bean, or null if the bean has not been created.
- Specified by:
getBeanObject in class Gateway
connect
public void connect()
throws com.flexstor.common.gateway.exceptions.TransactionFailedException
- Sends the request for the sequence data to the server.
getSequence
public long getSequence(java.lang.String sSequenceType)
throws com.flexstor.common.gateway.exceptions.TransactionFailedException
- Get the sequence number for the specified sequence type
getSequence
public long getSequence(java.lang.String sSequenceType,
java.lang.String sTable,
java.lang.String sColumn)
throws com.flexstor.common.gateway.exceptions.TransactionFailedException
- Get the sequence number for the specified sequence type.
Checks against the database to make sure this id is not already in the table; if
it is get the next sequence.
getSequenceData
public com.flexstor.common.data.ejb.sequence.SequenceData getSequenceData(java.lang.String sSequenceType,
int nCount)
throws com.flexstor.common.gateway.exceptions.TransactionFailedException
- Get a list of sequence numbers for the specified sequence type.