Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.torque.oid: Javadoc index of package org.apache.torque.oid.


Package Samples:

org.apache.torque.oid

Classes:

IDBroker: This method of ID generation is used to ensure that code is more database independent. For example, MySQL has an auto-increment feature while Oracle uses sequences. It caches several ids to avoid needing a Connection for every request. This class uses the table ID_TABLE defined in conf/master/id-table-schema.xml. The columns in ID_TABLE are used as follows: ID_TABLE_ID - The PK for this row (any unique int). TABLE_NAME - The name of the table you want ids for. NEXT_ID - The next id returned by IDBroker when it queries the database (not when it returns an id from memory). QUANTITY - The number of ...
IdGenerator: Interface to be implemented by id generators. It is possible that some implementations might not require all the arguments, for example MySQL will not require a keyInfo Object, while the IDBroker implementation does not require a Connection as it only rarely needs one and retrieves a connection from the Connection pool service only when needed.
IDGeneratorFactory: A factory which instantiates IdGenerator implementations.
AutoIncrementIdGenerator: This generator works with databases that have an sql syntax that allows the retrieval of the last id used to insert a row for a Connection.
SequenceIdGenerator: This generator works with databases that have an sql syntax for getting an id prior to inserting a row into the database.

Home | Contact Us | Privacy Policy | Terms of Service