| java.lang.Object org.objectweb.speedo.naming.lib.NamingManagerHelper org.objectweb.speedo.naming.lib.RdbSequenceNamingManager
RdbSequenceNamingManager | public class RdbSequenceNamingManager extends NamingManagerHelper implements NamingManager(Code) | | This is naming manager manages identifier based sequence in database (SQL
sequence or simple counter managed by Speedo).
This identifier can be mapped over a persistent field (type must be long or
java.lang.Long). This identifier format does not support polymorphism directly.
You have to specify discriminator(s). But in all case, this naming is not an
efficient choice when there is polymorphism (ex inheritance). Indeed SQL request
to find a corresponding object is more complex. The null reference depends on
the field type: -1 for long field and NULL or java.lang.Long field type.
See Also: org.objectweb.speedo.naming.api.NamingManager See Also: org.objectweb.speedo.sequence.lib.SpeedoSequence See Also: org.objectweb.speedo.sequence.lib.SpeedoSequenceBinder See Also: org.objectweb.jorm.facility.naming.rdbsequence.RdbSequenceBinder author: S.Chassande-Barrioz |
Method Summary | |
public boolean | canManage(SpeedoClass sc) | public PName | decode(PNameCoder pnc, Object oid, java.lang.Class clazz, JormFactory jf) | public void | defineClassIdentifierNameDef(NameDef nd, Class jc, SpeedoClass sc, ClassMapping cm, MIBuilderHelper mibh, JormMIMappingBuilder mb, Collection createdMOs) | public void | defineClassReferenceNameDef(NameDef nd, ClassRef cr, SpeedoField sf, SpeedoClass currentClass, ClassMapping cm, MIBuilderHelper mibh, JormMIMappingBuilder mb) | public void | defineClassReferenceNameDef(NameDef nd, ClassRef cr, SpeedoField sf, SpeedoClass currentClass, GenClassMapping gcm, MIBuilderHelper mibh, JormMIMappingBuilder mb) | public void | defineGenClassIdentifierNameDef(NameDef nd, GenClassRef gcr, SpeedoField sf, SpeedoClass currentClass, GenClassMapping gcm, MIBuilderHelper mibh, JormMIMappingBuilder mb) | public void | defineGenClassReferenceNameDef(NameDef nd, GenClassRef gcr, SpeedoField sf, SpeedoClass currentClass, ClassMapping cm, MIBuilderHelper mibh, JormMIMappingBuilder mb) | public Object | encode(PName pn) | public SpeedoColumn[] | getDefaultColumn(SpeedoClass sc) | public String | getGCPNameHints(SpeedoClass sc, NameDef nd) | public void | getJormNamingConfig(NameDef nd, SpeedoClass targetClass, MetaObject sourceMO, String key, Properties result) | protected String | getName() | public NamingField[] | getNamingfields(SpeedoClass sc) | public PBinder | getPBinder(String className, String hints, ClassLoader cl, byte mappingStructureRule, Map cn2binder, Map cn2pnc) | public String | getPNameHints(SpeedoClass sc, NameDef nd) | public Object[] | getPNameHints2(SpeedoClass sc, NameDef nd) |
SEQ_ALLOCATOR_IDX | final public static int SEQ_ALLOCATOR_IDX(Code) | | |
SEQ_CACHE_IDX | final public static int SEQ_CACHE_IDX(Code) | | |
SEQ_INCREMENT_IDX | final public static int SEQ_INCREMENT_IDX(Code) | | |
SEQ_NAME_IDX | final public static int SEQ_NAME_IDX(Code) | | |
SEQ_STARTID_IDX | final public static int SEQ_STARTID_IDX(Code) | | |
encode | public Object encode(PName pn) throws PException(Code) | | |
getNamingfields | public NamingField[] getNamingfields(SpeedoClass sc) throws PException(Code) | | |
Methods inherited from org.objectweb.speedo.naming.lib.NamingManagerHelper | public boolean canProvidePBinder(Object hints, ClassLoader classLoader)(Code)(Java Doc) public boolean canProvidePNamingContext(Object hints, ClassLoader classLoader)(Code)(Java Doc) public static String getBinderClassNameFromHints(Object hints, String idCatName)(Code)(Java Doc) public SpeedoColumn[] getDefaultColumn(SpeedoClass sc)(Code)(Java Doc) abstract protected String getName()(Code)(Java Doc) public NamingManager.NamingField[] getNamingfields(SpeedoClass sc) throws PException(Code)(Java Doc) public PBinder getPBinder(String className, String hints, ClassLoader classLoader, byte mappingStructureRule, Map cn2binder, Map cn2pnc) throws PException(Code)(Java Doc) public static String getPNCClassNameFromHints(Object hints, String idCatName)(Code)(Java Doc) public PNamingContext getPNamingContext(String className, String hints, ClassLoader classLoader, byte mappingStructureRule, Map cn2binder, Map cn2pnc, Manager miManager, PClassMapping pcm) throws PException(Code)(Java Doc) public static String[] getTokens(Object o)(Code)(Java Doc) public boolean needInheritanceDiscriminator(SpeedoClass sc) throws SpeedoException(Code)(Java Doc) public void setCache(CacheManager cache)(Code)(Java Doc) public void setLogger(Logger logger)(Code)(Java Doc) public void setPMapper(PMapper mapper)(Code)(Java Doc) public void setPmf(POManagerFactoryItf pmf)(Code)(Java Doc) public boolean supportPNamingcontext()(Code)(Java Doc)
|
|
|