|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.naming.lib.RdbSequenceNamingManager
Nested Class Summary |
Nested classes inherited from class org.objectweb.speedo.naming.api.NamingManager |
NamingManager.NamingField |
Field Summary |
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. |
boolean |
canProvidePBinder(java.lang.Object hints,
java.lang.ClassLoader classLoader)
indicates if the naming manager is able to build a PBinder instance for this hints parameter specified |
boolean |
canProvidePNamingContext(java.lang.Object hints,
java.lang.ClassLoader classLoader)
indicates if the naming manager is able to build a PNC instance for this hints parameter specified |
PName |
decode(PNameCoder pnc,
java.lang.Object oid,
java.lang.Class clazz,
JormFactory jf)
Decodes an object identifier into a PName. |
java.lang.Object |
encode(PName pn)
Encode a PName into an object |
void |
fillNameDef(MIBuilderHelper mibh,
Manager manager,
NameDef nd,
SpeedoClass tsc,
SpeedoClass ssc,
MetaObject mo,
Reference ref,
HelperClassMapping 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,
NameDef nd)
compute a string value which permit to help the building of the genclass PName (export) |
java.lang.String |
getJormConfig(NameDef nd,
SpeedoClass targetClass,
MetaObject sourceMO)
computes the naming configuration information for a class or a reference. |
NamingManager.NamingField[] |
getNamingfields(SpeedoClass sc)
Retrieves the array of field used in the identifier of a persistent class |
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,
NameDef nd)
compute a string value which permit to help the building of the class PName (export) |
PNamingContext |
getPNamingContext(java.lang.String className,
java.lang.String hints,
java.lang.ClassLoader classLoader,
byte mappingStructureRule,
java.util.Map cn2binder,
java.util.Map cn2pnc)
Build a PNamingContext instance for this hints parameter specified |
void |
setLogger(Logger logger)
|
void |
setPMapper(PMapper mapper)
|
boolean |
supportPNamingcontext()
indicates if the use of PNamingContext is support by this mapping. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 boolean supportPNamingcontext()
NamingManager
supportPNamingcontext
in interface NamingManager
public PName decode(PNameCoder pnc, java.lang.Object oid, java.lang.Class clazz, JormFactory jf) throws 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
PException
public java.lang.Object encode(PName pn) throws PException
NamingManager
encode
in interface NamingManager
pn
- is the pname to encode
PException
public void setPMapper(PMapper mapper)
setPMapper
in interface NamingManager
public void setLogger(Logger logger)
setLogger
in interface NamingManager
public boolean canProvidePBinder(java.lang.Object hints, java.lang.ClassLoader classLoader)
NamingManager
canProvidePBinder
in interface NamingManager
hints
- is the helper of the PBinder buildingclassLoader
- is the classloader to use for instanciate the PBinderpublic boolean canProvidePNamingContext(java.lang.Object hints, java.lang.ClassLoader classLoader)
NamingManager
canProvidePNamingContext
in interface NamingManager
hints
- is the helper of the PNC buildingclassLoader
- is the classloader to use for instanciate the PNCpublic PBinder getPBinder(java.lang.String className, java.lang.String hints, java.lang.ClassLoader cl, byte mappingStructureRule, java.util.Map cn2binder, java.util.Map cn2pnc)
NamingManager
getPBinder
in interface NamingManager
hints
- is the helper of the PBinder building. This hints must be
the result of the getJormConfig call.cl
- is the classloader to use for instanciate the PBindermappingStructureRule
- indicates the rule to apply concerning the
data strucuture. Indeed a PBinder building can require to read the data
support.cn2binder
- is the map of the existing PBinder instance
(key = class name, value = PBinder instance)cn2pnc
- is the map of the existing PNC instance
(key = class name, value = PNC instance)public PNamingContext getPNamingContext(java.lang.String className, java.lang.String hints, java.lang.ClassLoader classLoader, byte mappingStructureRule, java.util.Map cn2binder, java.util.Map cn2pnc) throws PException
NamingManager
getPNamingContext
in interface NamingManager
hints
- is the helper of the PBinder building. This hints must be
the result of the getJormConfig call.classLoader
- is the classloader to use for instanciate the PBindermappingStructureRule
- indicates the rule to apply concerning the
data strucuture. Indeed a PBinder building can require to read the data
support.cn2binder
- is the map of the existing PBinder instance
(key = class name, value = PBinder instance)cn2pnc
- is the map of the existing PNC instance
(key = class name, value = PNC instance)
PException
public java.lang.String getJormConfig(NameDef nd, SpeedoClass targetClass, MetaObject sourceMO)
NamingManager
getJormConfig
in interface NamingManager
targetClass
- is the Speedo meta object representing the class which
is designates by thend
- is thesourceMO
-
public java.lang.String getPNameHints(SpeedoClass sc, NameDef nd)
NamingManager
getPNameHints
in interface NamingManager
sc
- is the Speedo class which the hints must be specifiednd
- is the name def of the class
public java.lang.String getGCPNameHints(SpeedoClass sc, 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 class
public void fillNameDef(MIBuilderHelper mibh, Manager manager, NameDef nd, SpeedoClass tsc, SpeedoClass ssc, MetaObject mo, Reference ref, HelperClassMapping hcm, JormMIMappingBuilder mb, boolean isIdentifier, boolean isInGenClass, boolean createField, java.util.Collection createdMOs) throws SpeedoException, 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.
PException
public NamingManager.NamingField[] getNamingfields(SpeedoClass sc) throws PException
NamingManager
getNamingfields
in interface NamingManager
sc
- is the speedo meta object of the persistent class
PException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |