| java.lang.Object org.apache.ojb.broker.util.sequence.AbstractSequenceManager org.apache.ojb.broker.util.sequence.SequenceManagerNativeImpl
SequenceManagerNativeImpl | public class SequenceManagerNativeImpl extends AbstractSequenceManager (Code) | | Sequence manager implementation using native database Identity columns
(like MySQL, MSSQL, ...). For proper work some specific metadata settings
needed:
- field representing the identity column need attribute
autoincrement 'true'
- field representing the identity column need attribute
access set 'readonly'
- field representing the identity column need attribute
primarykey set 'true'
- only possible to declare one identity field per class
Note:
Make sure that the DB generated identity columns represent values > 0, because negative values
intern used by this implementation and 0 could cause problems with primitive FK fields.
Implementation configuration properties:
Property Key |
Property Values |
no properties to set |
|
Limitations:
- Native key generation is not 'extent aware'
when extent classes span several tables! Please
see more in shipped docs 'extents and polymorphism'
or sequence manager docs.
-
Only positive identity values are allowed (see above).
author: Travis Reeder author: Armin Waibel version: $Id: SequenceManagerNativeImpl.java,v 1.18.2.4 2005/12/21 22:28:41 tomdz Exp $ |
|
|