Class MetadataIdentitySequenceNumberService

  • All Implemented Interfaces:
    AdaptrisComponent, ComponentLifecycle, ComponentLifecycleExtension, ConnectedService, MessageEventGenerator, Service, StateManagedComponent

    @ComponentProfile(summary="Create a sequence number using a database, the sequence number is associated with a metadata key",
                      tag="service,metadata,jdbc,sequence")
    public class MetadataIdentitySequenceNumberService
    extends AbstractJdbcSequenceNumberService
    Implementation of AbstractJdbcSequenceNumberService where the identity is derived from metadata.

    The default database schema is assumed to be

     
     CREATE TABLE SEQUENCES (ID VARCHAR(255) NOT NULL, SEQ_NUMBER INT)
     
     
    The default SQL statements reflect this; and provided that a table called 'SEQUENCES' contains at least those two columns then it should work without any changes to the SQL statements. Be aware that all statements default to upper-case which will have an impact if your database is case-sensitive (such as MySQL on Linux).

    In the adapter configuration file this class is aliased as jdbc-metadata-sequence-number-service which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • MetadataIdentitySequenceNumberService

        public MetadataIdentitySequenceNumberService()