|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.naming.lib.NamingManagerHelper
org.objectweb.speedo.naming.lib.RdbSequenceNamingManager
Nested Class Summary |
---|
Nested classes inherited from class org.objectweb.speedo.naming.api.NamingManager |
---|
NamingManager.NamingField |
Field Summary | |
---|---|
static int |
SEQ_ALLOCATOR_IDX
|
static int |
SEQ_CACHE_IDX
|
static int |
SEQ_INCREMENT_IDX
|
static int |
SEQ_NAME_IDX
|
static int |
SEQ_STARTID_IDX
|
Fields inherited from class org.objectweb.speedo.naming.lib.NamingManagerHelper |
---|
BINDER_IDX, cache, HINTS_SEP, ID_CAT_IDX, logger, PCLASS_IDX, pmf, PNC_IDX, POLYMORPHIC_PNC |
Fields inherited from interface org.objectweb.speedo.naming.api.NamingManager |
---|
SEP |
Constructor Summary | |
---|---|
RdbSequenceNamingManager()
|
Method Summary | |
---|---|
boolean |
canManage(SpeedoClass sc)
Indicates if the naming manager is able to manage the identifier of a persistent class. |
org.objectweb.jorm.naming.api.PName |
decode(org.objectweb.jorm.naming.api.PNameCoder pnc,
java.lang.Object oid,
java.lang.Class clazz,
JormFactory jf)
Decodes an object identifier into a PName. |
java.lang.Object |
encode(org.objectweb.jorm.naming.api.PName pn)
Encode a PName into an object |
void |
fillNameDef(MIBuilderHelper mibh,
org.objectweb.jorm.metainfo.api.Manager manager,
org.objectweb.jorm.metainfo.api.NameDef nd,
SpeedoClass tsc,
SpeedoClass ssc,
org.objectweb.jorm.metainfo.api.MetaObject mo,
org.objectweb.jorm.metainfo.api.Reference ref,
org.objectweb.jorm.metainfo.api.CommonClassMapping hcm,
JormMIMappingBuilder mb,
boolean isIdentifier,
boolean isInGenClass,
boolean createField,
java.util.Collection createdMOs)
The auto incremented field used as identifier can be a visble or an hidden field. |
java.lang.String |
getGCPNameHints(SpeedoClass sc,
org.objectweb.jorm.metainfo.api.NameDef nd)
compute a string value which permit to help the building of the genclass PName (export) |
void |
getJormNamingConfig(org.objectweb.jorm.metainfo.api.NameDef nd,
SpeedoClass targetClass,
org.objectweb.jorm.metainfo.api.MetaObject sourceMO,
java.lang.String key,
java.util.Properties result)
computes the naming configuration information for a class or a reference. |
protected java.lang.String |
getName()
|
NamingManager.NamingField[] |
getNamingfields(SpeedoClass sc)
Retrieves the array of field used in the identifier of a persistent class and which values are not calculated by the application. |
org.objectweb.jorm.naming.api.PBinder |
getPBinder(java.lang.String className,
java.lang.String hints,
java.lang.ClassLoader cl,
byte mappingStructureRule,
java.util.Map cn2binder,
java.util.Map cn2pnc)
Build a PBinder instance for this hints parameter specified |
java.lang.String |
getPNameHints(SpeedoClass sc,
org.objectweb.jorm.metainfo.api.NameDef nd)
compute a string value which permit to help the building of the class PName (export) |
Methods inherited from class org.objectweb.speedo.naming.lib.NamingManagerHelper |
---|
canProvidePBinder, canProvidePNamingContext, getBinderClassNameFromHints, getPNamingContext, getPNCClassNameFromHints, getTokens, setCache, setLogger, setPMapper, setPmf, supportPNamingcontext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.speedo.naming.api.NamingManager |
---|
canProvidePBinder, canProvidePNamingContext, getPNamingContext, setCache, setLogger, setPMapper, setPmf, supportPNamingcontext |
Field Detail |
public static final int SEQ_NAME_IDX
public static final int SEQ_INCREMENT_IDX
public static final int SEQ_STARTID_IDX
public static final int SEQ_CACHE_IDX
public static final int SEQ_ALLOCATOR_IDX
Constructor Detail |
public RdbSequenceNamingManager()
Method Detail |
public boolean canManage(SpeedoClass sc)
NamingManager
canManage
in interface NamingManager
sc
- The speedo meta object representing the persistent classpublic org.objectweb.jorm.naming.api.PName decode(org.objectweb.jorm.naming.api.PNameCoder pnc, java.lang.Object oid, java.lang.Class clazz, JormFactory jf) throws org.objectweb.jorm.api.PException
NamingManager
decode
in interface NamingManager
pnc
- is the PNameCoder instance to use for the decoding the object
identifier. The pnc parameter can be null. In this case the oid mustoid
- is the object identifierclazz
- is the java.lang.Class of the persistent class identified by
the oidjf
- is the JormFactory instance. It permits to
org.objectweb.jorm.api.PException
public java.lang.Object encode(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.api.PException
NamingManager
encode
in interface NamingManager
pn
- is the pname to encode
org.objectweb.jorm.api.PException
protected java.lang.String getName()
getName
in class NamingManagerHelper
public org.objectweb.jorm.naming.api.PBinder getPBinder(java.lang.String className, java.lang.String hints, java.lang.ClassLoader cl, byte mappingStructureRule, java.util.Map cn2binder, java.util.Map cn2pnc) throws org.objectweb.jorm.api.PException
NamingManager
getPBinder
in interface NamingManager
getPBinder
in class NamingManagerHelper
org.objectweb.jorm.api.PException
public void getJormNamingConfig(org.objectweb.jorm.metainfo.api.NameDef nd, SpeedoClass targetClass, org.objectweb.jorm.metainfo.api.MetaObject sourceMO, java.lang.String key, java.util.Properties result) throws SpeedoException
NamingManager
naming of a/td> | MOClass/td> |
class/td> | Class/td> |
reference to a Class/td> | ClassRef/td> |
reference to a GenClass/td> | GenClassRef/td> |
a GenClass identifier/td> | GenClassRef/td> |
getJormNamingConfig
in interface NamingManager
targetClass
- is the Speedo meta object representing the class which
is designates by theresult
- is the Properties which must be filled
SpeedoException
public java.lang.String getPNameHints(SpeedoClass sc, org.objectweb.jorm.metainfo.api.NameDef nd)
NamingManager
getPNameHints
in interface NamingManager
sc
- is the Speedo class which the hints must be specifiednd
- is the name def of the classpublic java.lang.String getGCPNameHints(SpeedoClass sc, org.objectweb.jorm.metainfo.api.NameDef nd)
NamingManager
getGCPNameHints
in interface NamingManager
sc
- is the Speedo class which the hints must be specifiednd
- is the name def of the gen classpublic void fillNameDef(MIBuilderHelper mibh, org.objectweb.jorm.metainfo.api.Manager manager, org.objectweb.jorm.metainfo.api.NameDef nd, SpeedoClass tsc, SpeedoClass ssc, org.objectweb.jorm.metainfo.api.MetaObject mo, org.objectweb.jorm.metainfo.api.Reference ref, org.objectweb.jorm.metainfo.api.CommonClassMapping hcm, JormMIMappingBuilder mb, boolean isIdentifier, boolean isInGenClass, boolean createField, java.util.Collection createdMOs) throws SpeedoException, org.objectweb.jorm.api.PException
fillNameDef
in interface NamingManager
nd
- is the name def to fillisIdentifier
- indicates if the name represents an identifier (true)
or a reference (false).isInGenClass
- indicates if the name is defined in a generic class
(true) of in a class (false).ref
- meta object which the name def must be
defined. This value is used only in the case of isIdentifier == false and
isInGenClass == false.tsc
- is the speedo meta object representing the referenced class.
This value is used only in the case of isIdentifier == false.mo
- is the jorm meta object hosting the name def and on which the
eventual hidden field will be created.hcm
- if the mapping structure hosting the mapping of the reference.
This value must be ClassMapping or GenClassMapping instance.mb
- is the mapping builder permitting the creation of the mapping
part.createdMOs
- is a result paramter. This collection must be fill with
the created Jorm Meta objects representing a class or a composite name.
Here only the new used composite name will be added.
SpeedoException
- if the speedo meta information is not completly
defined.
org.objectweb.jorm.api.PException
public NamingManager.NamingField[] getNamingfields(SpeedoClass sc) throws org.objectweb.jorm.api.PException
NamingManager
getNamingfields
in interface NamingManager
getNamingfields
in class NamingManagerHelper
org.objectweb.jorm.api.PException
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |