|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.speedo.mapper.lib.BasicJormFactory
This class manages the initialization and the naming, of persistent class. The type of naming supported depends on the NamingManager registered into the NamingManagerFactory
NamingManager
Field Summary | |
---|---|
protected java.util.Map |
binders
key = String class name value = PBinder binder of the class |
protected org.objectweb.perseus.cache.api.CacheManager |
cache
The cache to assign to the binders |
static java.lang.String |
CACHE_MANAGER_BINDING
fractal binding name to the cache manager |
protected java.util.Map |
cn2pcm
temporaly variable use in the recursive algorithm |
protected org.objectweb.util.monolog.api.Logger |
logger
|
protected org.objectweb.jorm.api.PMapper |
mapper
The mapper is used to map and find the Jorm classes. |
static java.lang.String |
MAPPER_BINDING
fractal binding name to the mapper |
protected ProxyManagerFactory |
pmf
|
static java.lang.String |
PMF_BINDING
|
protected java.util.Map |
pnamingContexts
key = String class name value = PNamingContext pnc of the class |
protected org.objectweb.perseus.persistence.api.TransactionalPersistenceManager |
tpm
|
static java.lang.String |
TPM_BINDING
|
Fields inherited from interface org.objectweb.jorm.naming.api.PNameCoder |
---|
CTBIGDECIMAL, CTBIGINTEGER, CTBYTE, CTBYTEARRAY, CTCHAR, CTCHARARRAY, CTCOMPOSITE, CTDATE, CTINT, CTLONG, CTOBYTE, CTOCHAR, CTOINT, CTOLONG, CTOSHORT, CTSHORT, CTSTRING, CTSYSTEM |
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController |
---|
STARTED, STOPPED |
Fields inherited from interface org.objectweb.speedo.mapper.api.JormFactoryAttributes |
---|
CREATE_IF_REQUIRED, DELETE_DATA, DO_NOTHING, FORCE_CREATE |
Constructor Summary | |
---|---|
BasicJormFactory()
builds the BasicJormFactory and the hosting structure for the binder list. |
Method Summary | |
---|---|
void |
bindFc(java.lang.String s,
java.lang.Object o)
|
boolean |
codingSupported(int codingtype)
|
org.objectweb.jorm.naming.api.PName |
decode(byte[] en)
|
org.objectweb.jorm.naming.api.PName |
decodeAbstract(java.lang.Object oid,
java.lang.Object context)
|
org.objectweb.jorm.naming.api.PName |
decodeBigDecimal(java.math.BigDecimal en)
|
org.objectweb.jorm.naming.api.PName |
decodeBigInteger(java.math.BigInteger en)
|
org.objectweb.jorm.naming.api.PName |
decodeByte(byte en)
|
org.objectweb.jorm.naming.api.PName |
decodeChar(char en)
|
org.objectweb.jorm.naming.api.PName |
decodeCharArray(char[] en)
|
org.objectweb.jorm.naming.api.PName |
decodeDate(java.util.Date en)
|
org.objectweb.jorm.naming.api.PName |
decodeInt(int en)
|
org.objectweb.jorm.naming.api.PName |
decodeLong(long en)
|
org.objectweb.jorm.naming.api.PName |
decodeObyte(java.lang.Byte en)
|
org.objectweb.jorm.naming.api.PName |
decodeOchar(java.lang.Character en)
|
org.objectweb.jorm.naming.api.PName |
decodeOint(java.lang.Integer en)
|
org.objectweb.jorm.naming.api.PName |
decodeOlong(java.lang.Long en)
|
org.objectweb.jorm.naming.api.PName |
decodeOshort(java.lang.Short en)
|
org.objectweb.jorm.naming.api.PName |
decodeShort(short en)
|
org.objectweb.jorm.naming.api.PName |
decodeString(java.lang.String en)
|
byte[] |
encode(org.objectweb.jorm.naming.api.PName pn)
|
java.lang.Object |
encodeAbstract(org.objectweb.jorm.naming.api.PName pn)
|
java.math.BigDecimal |
encodeBigDecimal(org.objectweb.jorm.naming.api.PName pn)
|
java.math.BigInteger |
encodeBigInteger(org.objectweb.jorm.naming.api.PName pn)
|
byte |
encodeByte(org.objectweb.jorm.naming.api.PName pn)
|
char |
encodeChar(org.objectweb.jorm.naming.api.PName pn)
|
char[] |
encodeCharArray(org.objectweb.jorm.naming.api.PName pn)
|
java.util.Date |
encodeDate(org.objectweb.jorm.naming.api.PName pn)
|
int |
encodeInt(org.objectweb.jorm.naming.api.PName pn)
|
long |
encodeLong(org.objectweb.jorm.naming.api.PName pn)
|
java.lang.Byte |
encodeObyte(org.objectweb.jorm.naming.api.PName pn)
|
java.lang.Character |
encodeOchar(org.objectweb.jorm.naming.api.PName pn)
|
java.lang.Integer |
encodeOint(org.objectweb.jorm.naming.api.PName pn)
|
java.lang.Long |
encodeOlong(org.objectweb.jorm.naming.api.PName pn)
|
java.lang.Short |
encodeOshort(org.objectweb.jorm.naming.api.PName pn)
|
short |
encodeShort(org.objectweb.jorm.naming.api.PName pn)
|
java.lang.String |
encodeString(org.objectweb.jorm.naming.api.PName pn)
|
org.objectweb.jorm.naming.api.PBinder |
findPBinder(java.lang.String className,
java.lang.ClassLoader classLoader,
java.lang.String hints)
Retrieves a PBinder managing a given persistent class. |
protected org.objectweb.jorm.naming.api.PNameManager |
findPNameManager(java.lang.String className,
java.lang.ClassLoader classLoader,
org.objectweb.jorm.api.PClassMapping pcm,
java.lang.String hints)
Retrieves a PNameManager managing a given persistent class and its sub classes. |
java.lang.ClassLoader |
getClassLoader(java.lang.String className)
Retrieves the classloader of a class if the class has been already mapped. |
java.lang.String |
getFcState()
|
protected java.lang.String |
getGCMClassName(java.lang.String mapperName)
Retrieves the class name of the PClassMapping implementation for the generic class for a given mapper name. |
org.objectweb.jorm.api.PClassMapping |
getGenClassMapping(java.lang.String path)
Retrieve the PClassMapping of a gen class since its path |
boolean |
getMappingOnClassRegistration()
Indicates if during the class registration, the persistent classes have to be mapped. |
byte |
getMappingStructureRule()
|
org.objectweb.jorm.naming.api.PName |
getNull()
|
org.objectweb.jorm.naming.api.PBinder |
getPBinder(java.lang.Class clazz)
Retrieve the Binder managing the persistent class (Not a Generic class). |
org.objectweb.jorm.naming.api.PBinder |
getPBinder(java.lang.String classname,
java.lang.ClassLoader cl)
Retrieve the Binder managing the persistent class (Not a Generic class). |
org.objectweb.jorm.api.PClassMapping |
getPClassMapping(java.lang.Class clazz)
Retrieves a PClassMapping instance managing a jorm class. |
org.objectweb.jorm.api.PClassMapping |
getPClassMapping(java.lang.String className,
java.lang.ClassLoader classLoader)
This method is the real implementation of the getPClassMapping methods from the JormFactory interface. |
org.objectweb.jorm.naming.api.PNamingContext |
getPNamingContext(java.lang.Class clazz)
Retrieve the PNamingcontext managing the persistent class (Not a Generic class) and its sub classes. |
org.objectweb.jorm.naming.api.PNamingContext |
getPNamingContext(java.lang.String classname,
java.lang.ClassLoader cl)
This Method is a shortcut to the getPNamingContext(SpeedoProxy) method. |
org.objectweb.jorm.type.api.PType |
getPType()
|
java.util.Properties |
getSpeedoProperties()
Returns speedo properties used to configure each home (caching, ...) |
java.lang.String[] |
listFc()
|
java.lang.Object |
lookupFc(java.lang.String s)
|
void |
registerClass(javax.jdo.spi.RegisterClassEvent event)
Automatic mechanism for persistent clas registration. |
void |
setMappingOnClassRegistration(boolean val)
|
void |
setMappingStructureRule(byte rule)
|
void |
setNullPName(java.lang.Object o)
|
void |
setPType(org.objectweb.jorm.type.api.PType pt)
|
void |
setSpeedoProperties(java.util.Properties p)
Assignes speedo properties which permits to configure each home (caching, ...) |
void |
startFc()
|
void |
stopFc()
|
boolean |
supportCompositeField(java.lang.String fn,
org.objectweb.jorm.type.api.PType ft)
|
boolean |
supportDynamicComposite()
|
boolean |
supportStaticComposite()
|
void |
unbindFc(java.lang.String s)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String MAPPER_BINDING
public static final java.lang.String CACHE_MANAGER_BINDING
public static final java.lang.String TPM_BINDING
public static final java.lang.String PMF_BINDING
protected org.objectweb.perseus.persistence.api.TransactionalPersistenceManager tpm
protected ProxyManagerFactory pmf
protected org.objectweb.jorm.api.PMapper mapper
protected org.objectweb.perseus.cache.api.CacheManager cache
protected java.util.Map binders
protected java.util.Map pnamingContexts
protected java.util.Map cn2pcm
protected org.objectweb.util.monolog.api.Logger logger
Constructor Detail |
public BasicJormFactory()
Method Detail |
public byte getMappingStructureRule()
getMappingStructureRule
in interface JormFactory
JormFactoryAttributes
public void setMappingStructureRule(byte rule)
setMappingStructureRule
in interface JormFactoryAttributes
rule
- is the default mapping structure rule to apply during the map
operation of the persistent classes.public boolean getMappingOnClassRegistration()
JormFactoryAttributes
getMappingOnClassRegistration
in interface JormFactoryAttributes
public void setMappingOnClassRegistration(boolean val)
setMappingOnClassRegistration
in interface JormFactoryAttributes
val
- is a boolean value Indicating if during the class
registration, the persistent classes have to be mapped.
True : the class are mapped at class registration time
False: nothing is done.public java.lang.String[] listFc()
listFc
in interface org.objectweb.fractal.api.control.BindingController
public java.lang.Object lookupFc(java.lang.String s)
lookupFc
in interface org.objectweb.fractal.api.control.BindingController
public void bindFc(java.lang.String s, java.lang.Object o)
bindFc
in interface org.objectweb.fractal.api.control.BindingController
public void unbindFc(java.lang.String s)
unbindFc
in interface org.objectweb.fractal.api.control.BindingController
public java.lang.String getFcState()
getFcState
in interface org.objectweb.fractal.api.control.LifeCycleController
public void startFc() throws org.objectweb.fractal.api.control.IllegalLifeCycleException
startFc
in interface org.objectweb.fractal.api.control.LifeCycleController
org.objectweb.fractal.api.control.IllegalLifeCycleException
public void stopFc() throws org.objectweb.fractal.api.control.IllegalLifeCycleException
stopFc
in interface org.objectweb.fractal.api.control.LifeCycleController
org.objectweb.fractal.api.control.IllegalLifeCycleException
public org.objectweb.jorm.naming.api.PBinder getPBinder(java.lang.Class clazz) throws org.objectweb.jorm.api.PException
JormFactory
getPBinder
in interface JormFactory
clazz
- the Jorm class name managed which the PBinder is asked
org.objectweb.jorm.api.PException
public org.objectweb.jorm.naming.api.PBinder getPBinder(java.lang.String classname, java.lang.ClassLoader cl) throws org.objectweb.jorm.api.PException
JormFactory
getPBinder
in interface JormFactory
classname
- is the class name of the jorm class which the
PBinder is requiredcl
- is the classloader where to find/load the class
org.objectweb.jorm.api.PException
public java.lang.ClassLoader getClassLoader(java.lang.String className)
JormFactory
getClassLoader
in interface JormFactory
public org.objectweb.jorm.api.PClassMapping getGenClassMapping(java.lang.String path)
JormFactory
getGenClassMapping
in interface JormFactory
path
- is the path representing the way to access the
GenClassMappingpublic org.objectweb.jorm.api.PClassMapping getPClassMapping(java.lang.Class clazz) throws org.objectweb.jorm.api.PException
JormFactory
getPClassMapping
in interface JormFactory
clazz
- is the class of the jorm class which the
PClassMapping is required
org.objectweb.jorm.api.PException
public org.objectweb.jorm.naming.api.PNamingContext getPNamingContext(java.lang.String classname, java.lang.ClassLoader cl) throws org.objectweb.jorm.api.PException
getPNamingContext
in interface JormFactory
classname
- the Jorm class name managed by the wanted PNamingContext
org.objectweb.jorm.api.PException
JormFactory.getPNamingContext(Class)
public org.objectweb.jorm.naming.api.PNamingContext getPNamingContext(java.lang.Class clazz) throws org.objectweb.jorm.api.PException
JormFactory
getPNamingContext
in interface JormFactory
clazz
- the Jorm class name managed which the PNamingContext is asked
org.objectweb.jorm.api.PException
public java.util.Properties getSpeedoProperties()
JormFactoryAttributes
getSpeedoProperties
in interface JormFactoryAttributes
public void setSpeedoProperties(java.util.Properties p)
JormFactoryAttributes
setSpeedoProperties
in interface JormFactoryAttributes
public void registerClass(javax.jdo.spi.RegisterClassEvent event)
registerClass
in interface javax.jdo.spi.RegisterClassListener
public boolean codingSupported(int codingtype)
codingSupported
in interface org.objectweb.jorm.naming.api.PNameCoder
public org.objectweb.jorm.naming.api.PName decode(byte[] en) throws org.objectweb.jorm.naming.api.PExceptionNaming
decode
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
public org.objectweb.jorm.naming.api.PName decodeAbstract(java.lang.Object oid, java.lang.Object context) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
decodeAbstract
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public org.objectweb.jorm.naming.api.PName decodeByte(byte en) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
decodeByte
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public org.objectweb.jorm.naming.api.PName decodeObyte(java.lang.Byte en) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
decodeObyte
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public org.objectweb.jorm.naming.api.PName decodeChar(char en) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
decodeChar
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public org.objectweb.jorm.naming.api.PName decodeOchar(java.lang.Character en) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
decodeOchar
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public org.objectweb.jorm.naming.api.PName decodeInt(int en) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
decodeInt
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public org.objectweb.jorm.naming.api.PName decodeOint(java.lang.Integer en) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
decodeOint
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public org.objectweb.jorm.naming.api.PName decodeLong(long en) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
decodeLong
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public org.objectweb.jorm.naming.api.PName decodeOlong(java.lang.Long en) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
decodeOlong
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public org.objectweb.jorm.naming.api.PName decodeShort(short en) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
decodeShort
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public org.objectweb.jorm.naming.api.PName decodeOshort(java.lang.Short en) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
decodeOshort
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public org.objectweb.jorm.naming.api.PName decodeString(java.lang.String en) throws org.objectweb.jorm.naming.api.PExceptionNaming
decodeString
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
public org.objectweb.jorm.naming.api.PName decodeCharArray(char[] en) throws org.objectweb.jorm.naming.api.PExceptionNaming
decodeCharArray
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
public org.objectweb.jorm.naming.api.PName decodeDate(java.util.Date en) throws org.objectweb.jorm.naming.api.PExceptionNaming
decodeDate
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
public org.objectweb.jorm.naming.api.PName decodeBigInteger(java.math.BigInteger en) throws org.objectweb.jorm.naming.api.PExceptionNaming
decodeBigInteger
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
public org.objectweb.jorm.naming.api.PName decodeBigDecimal(java.math.BigDecimal en) throws org.objectweb.jorm.naming.api.PExceptionNaming
decodeBigDecimal
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
public byte[] encode(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.naming.api.PExceptionNaming
encode
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
public java.lang.Object encodeAbstract(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
encodeAbstract
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public byte encodeByte(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
encodeByte
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Byte encodeObyte(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
encodeObyte
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public char encodeChar(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
encodeChar
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Character encodeOchar(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
encodeOchar
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public int encodeInt(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
encodeInt
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Integer encodeOint(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
encodeOint
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public long encodeLong(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
encodeLong
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Long encodeOlong(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
encodeOlong
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public short encodeShort(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
encodeShort
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.Short encodeOshort(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.naming.api.PExceptionNaming, java.lang.UnsupportedOperationException
encodeOshort
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
java.lang.UnsupportedOperationException
public java.lang.String encodeString(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.naming.api.PExceptionNaming
encodeString
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
public char[] encodeCharArray(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.naming.api.PExceptionNaming
encodeCharArray
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
public java.util.Date encodeDate(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.naming.api.PExceptionNaming
encodeDate
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
public java.math.BigInteger encodeBigInteger(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.naming.api.PExceptionNaming
encodeBigInteger
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
public java.math.BigDecimal encodeBigDecimal(org.objectweb.jorm.naming.api.PName pn) throws org.objectweb.jorm.naming.api.PExceptionNaming
encodeBigDecimal
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.naming.api.PExceptionNaming
public org.objectweb.jorm.naming.api.PName getNull()
getNull
in interface org.objectweb.jorm.naming.api.PNameCoder
public void setNullPName(java.lang.Object o) throws org.objectweb.jorm.api.PException
setNullPName
in interface org.objectweb.jorm.naming.api.PNameCoder
org.objectweb.jorm.api.PException
public boolean supportDynamicComposite()
supportDynamicComposite
in interface org.objectweb.jorm.naming.api.PNameCoder
public boolean supportCompositeField(java.lang.String fn, org.objectweb.jorm.type.api.PType ft)
supportCompositeField
in interface org.objectweb.jorm.naming.api.PNameCoder
public boolean supportStaticComposite()
supportStaticComposite
in interface org.objectweb.jorm.naming.api.PNameCoder
public org.objectweb.jorm.type.api.PType getPType()
getPType
in interface org.objectweb.jorm.naming.api.PNameCoder
public void setPType(org.objectweb.jorm.type.api.PType pt)
setPType
in interface org.objectweb.jorm.naming.api.PNameCoder
public org.objectweb.jorm.api.PClassMapping getPClassMapping(java.lang.String className, java.lang.ClassLoader classLoader) throws org.objectweb.jorm.api.PException
getPClassMapping
in interface JormFactory
className
- is the class name of the persistent class which the
PClasMapping is askedclassLoader
- is the classloader for the persistent class. It
assumes that the classloader contains the Speedo/Jorm classes about the
persistent class (PClassMapping, PAccessor, PName, PBinder, PNG, ...)
org.objectweb.jorm.api.PException
public org.objectweb.jorm.naming.api.PBinder findPBinder(java.lang.String className, java.lang.ClassLoader classLoader, java.lang.String hints) throws org.objectweb.jorm.api.PException
className
- is the name of the persistent class which the asked
PBinder must managedclassLoader
- is the classloader for the persistent class. It
assumes that the classloader contains the Speedo/Jorm classes about the
persistent class (PClassMapping, PAccessor, PName, PBinder, PNG, ...)hints
- is a string data permitting to allocate and to configure
the PBinder.
org.objectweb.jorm.api.PException
NamingManager
protected org.objectweb.jorm.naming.api.PNameManager findPNameManager(java.lang.String className, java.lang.ClassLoader classLoader, org.objectweb.jorm.api.PClassMapping pcm, java.lang.String hints) throws org.objectweb.jorm.api.PException
className
- is the name of the persistent class which the asked
PNameManager must managed (non null value is required)classLoader
- is the classloader for the persistent class. It
assumes that the classloader contains the Speedo/Jorm classes about the
persistent class (PClassMapping, PAccessor, PName, PBinder, PNG, ...)
(non null value is required)hints
- is a string data permitting to allocate and to configure
the PNameManager. (non null value is required)
org.objectweb.jorm.api.PException
NamingManager
protected java.lang.String getGCMClassName(java.lang.String mapperName)
mapperName
- is a name of a Jorm Mapper (rdb, rdb.postgres, fos, ..)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |