| java.lang.Object org.objectweb.speedo.mapper.lib.BasicJormFactory
Constructor Summary | |
public | BasicJormFactory() builds the BasicJormFactory
and the hosting structure for the binder list. |
Method Summary | |
public void | bindFc(String s, Object o) | public void | clean() | public boolean | codingSupported(int codingtype) | public PName | decode(byte[] en) | public PName | decodeAbstract(Object oid, Object context) | public PName | decodeBigDecimal(BigDecimal en) | public PName | decodeBigInteger(BigInteger en) | public PName | decodeByte(byte en) | public PName | decodeChar(char en) | public PName | decodeCharArray(char[] en) | public PName | decodeDate(Date en) | public PName | decodeInt(int en) | public PName | decodeLong(long en) | public PName | decodeObyte(Byte en) | public PName | decodeOchar(Character en) | public PName | decodeOint(Integer en) | public PName | decodeOlong(Long en) | public PName | decodeOshort(Short en) | public PName | decodeShort(short en) | public PName | decodeString(String en) | public byte[] | encode(PName pn) | public Object | encodeAbstract(PName pn) | public BigDecimal | encodeBigDecimal(PName pn) | public BigInteger | encodeBigInteger(PName pn) | public byte | encodeByte(PName pn) | public char | encodeChar(PName pn) | public char[] | encodeCharArray(PName pn) | public Date | encodeDate(PName pn) | public int | encodeInt(PName pn) | public long | encodeLong(PName pn) | public Byte | encodeObyte(PName pn) | public Character | encodeOchar(PName pn) | public Integer | encodeOint(PName pn) | public Long | encodeOlong(PName pn) | public Short | encodeOshort(PName pn) | public short | encodeShort(PName pn) | public String | encodeString(PName pn) | public synchronized PBinder | findPBinder(String className, ClassLoader classLoader, String hints) Retrieves a PBinder managing a given persistent class.
This implementation delegates the PBinder allocation to NamingManager.
See Also: org.objectweb.speedo.naming.api.NamingManager Parameters: className - is the name of the persistent class which the askedPBinder must managed Parameters: classLoader - is the classloader for the persistent class. | protected synchronized PNameManager | findPNameManager(String className, ClassLoader classLoader, PClassMapping pcm, String hints) Retrieves a PNameManager managing a given persistent class and its sub
classes. | public ClassLoader | getClassLoader(String className) | public String | getFcState() | protected String | getGCMClassName(String mapperName) Retrieves the class name of the PClassMapping implementation for the
generic class for a given mapper name. | public PClassMapping | getGenClassMapping(String path) | public byte | getMappingStructureRule() | public PName | getNull() | public PBinder | getPBinder(Class clazz) | public PBinder | getPBinder(String classname, ClassLoader cl) | public PClassMapping | getPClassMapping(Class clazz) | public synchronized PClassMapping | getPClassMapping(String className, ClassLoader classLoader) This method is the real implementation of the getPClassMapping methods
from the JormFactory interface. | public PNamingContext | getPNamingContext(String classname, ClassLoader cl) This Method is a shortcut to the getPNamingContext(PersistentObjectItf) method.
It only does the instanciation of the classname
(Class.ForName(classsName).newInstance()) and call the
getPNamingContext(PersistentObjectItf) method with the created instance. | public PNamingContext | getPNamingContext(Class clazz) | public PType | getPType() | public Personality | getPersonality() | public Properties | getSpeedoProperties() | public String[] | listFc() | public Object | lookupFc(String s) | HomeItf | newGenClassHome(PClassMapping _pcm, TransactionalPersistenceManager _tpm, POManagerFactoryItf _pmf, String path) Instanciates a new home for a generic class. | public void | setMappingStructureRule(byte rule) | public void | setNullPName(Object o) | public void | setPType(PType pt) | public void | setPersonality(Personality p) | public void | setSpeedoProperties(Properties p) | public void | setSpeedoProperty(String[] name_n_value) | public void | startFc() | public void | stopFc() | public boolean | supportCompositeField(String fn, PType ft) | public boolean | supportDynamicComposite() | public boolean | supportStaticComposite() | public void | unbindFc(String s) |
CACHE_MANAGER_BINDING | final public static String CACHE_MANAGER_BINDING(Code) | | fractal binding name to the cache manager
|
MAPPER_BINDING | final public static String MAPPER_BINDING(Code) | | fractal binding name to the mapper
|
binders | protected Map binders(Code) | | key = String class name
value = PBinder binder of the class
|
cache | protected CacheManager cache(Code) | | The cache to assign to the binders
|
cn2pcm | protected Map cn2pcm(Code) | | temporaly variable use in the recursive algorithm
|
logger | protected Logger logger(Code) | | |
mapper | protected PMapper mapper(Code) | | The mapper is used to map and find the Jorm classes.
|
pnamingContexts | protected Map pnamingContexts(Code) | | key = String class name
value = PNamingContext pnc of the class
|
tpm | protected TransactionalPersistenceManager tpm(Code) | | |
BasicJormFactory | public BasicJormFactory()(Code) | | builds the BasicJormFactory
and the hosting structure for the binder list.
|
clean | public void clean() throws PException(Code) | | |
codingSupported | public boolean codingSupported(int codingtype)(Code) | | |
decode | public PName decode(byte[] en) throws PExceptionNaming(Code) | | |
decodeBigDecimal | public PName decodeBigDecimal(BigDecimal en) throws PExceptionNaming(Code) | | |
decodeBigInteger | public PName decodeBigInteger(BigInteger en) throws PExceptionNaming(Code) | | |
decodeCharArray | public PName decodeCharArray(char[] en) throws PExceptionNaming(Code) | | |
decodeDate | public PName decodeDate(Date en) throws PExceptionNaming(Code) | | |
decodeString | public PName decodeString(String en) throws PExceptionNaming(Code) | | |
encode | public byte[] encode(PName pn) throws PExceptionNaming(Code) | | |
encodeBigDecimal | public BigDecimal encodeBigDecimal(PName pn) throws PExceptionNaming(Code) | | |
encodeBigInteger | public BigInteger encodeBigInteger(PName pn) throws PExceptionNaming(Code) | | |
encodeCharArray | public char[] encodeCharArray(PName pn) throws PExceptionNaming(Code) | | |
encodeDate | public Date encodeDate(PName pn) throws PExceptionNaming(Code) | | |
encodeString | public String encodeString(PName pn) throws PExceptionNaming(Code) | | |
findPBinder | public synchronized PBinder findPBinder(String className, ClassLoader classLoader, String hints) throws PException(Code) | | Retrieves a PBinder managing a given persistent class.
This implementation delegates the PBinder allocation to NamingManager.
See Also: org.objectweb.speedo.naming.api.NamingManager Parameters: className - is the name of the persistent class which the askedPBinder must managed Parameters: classLoader - is the classloader for the persistent class. Itassumes that the classloader contains the Speedo/Jorm classes about thepersistent class (PClassMapping, PAccessor, PName, PBinder, PNG, ...) Parameters: hints - is a string data permitting to allocate and to configurethe PBinder. the PBinder managing the given persistent class. |
findPNameManager | protected synchronized PNameManager findPNameManager(String className, ClassLoader classLoader, PClassMapping pcm, String hints) throws PException(Code) | | Retrieves a PNameManager managing a given persistent class and its sub
classes. This implementation delegates the PNameManager allocation to
NamingManager.
See Also: org.objectweb.speedo.naming.api.NamingManager Parameters: className - is the name of the persistent class which the askedPNameManager must managed (non null value is required) Parameters: classLoader - is the classloader for the persistent class. Itassumes that the classloader contains the Speedo/Jorm classes about thepersistent class (PClassMapping, PAccessor, PName, PBinder, PNG, ...)(non null value is required) Parameters: hints - is a string data permitting to allocate and to configurethe PNameManager. (non null value is required) the PNameManager managing the given persistent class and itssub classes. |
getGCMClassName | protected String getGCMClassName(String mapperName)(Code) | | Retrieves the class name of the PClassMapping implementation for the
generic class for a given mapper name.
Parameters: mapperName - is a name of a Jorm Mapper (rdb, rdb.postgres, fos, ..) |
getGenClassMapping | public PClassMapping getGenClassMapping(String path)(Code) | | |
getMappingStructureRule | public byte getMappingStructureRule()(Code) | | |
getNull | public PName getNull()(Code) | | |
getPBinder | public PBinder getPBinder(Class clazz) throws PException(Code) | | |
getPClassMapping | public PClassMapping getPClassMapping(Class clazz) throws PException(Code) | | |
getPClassMapping | public synchronized PClassMapping getPClassMapping(String className, ClassLoader classLoader) throws PException(Code) | | This method is the real implementation of the getPClassMapping methods
from the JormFactory interface. It instanciates and configure a
persistent class. That represents
- the instanciation of the PClassMapping
- its configuration: fetching PNamingContext instances for each reference
and allocating GenClassMapping for each gen class reference (collection).
- the mapping of class (map operation on the mapper)
- the management of data strucutre for the cluster (creation table)
Parameters: className - is the class name of the persistent class which thePClasMapping is asked Parameters: classLoader - is the classloader for the persistent class. Itassumes that the classloader contains the Speedo/Jorm classes about thepersistent class (PClassMapping, PAccessor, PName, PBinder, PNG, ...) The PClassMapping of the persistent class throws: PException - |
getPNamingContext | public PNamingContext getPNamingContext(String classname, ClassLoader cl) throws PException(Code) | | This Method is a shortcut to the getPNamingContext(PersistentObjectItf) method.
It only does the instanciation of the classname
(Class.ForName(classsName).newInstance()) and call the
getPNamingContext(PersistentObjectItf) method with the created instance. Then if
an instance is availlable it is better to use the other method.
Parameters: classname - the Jorm class name managed by the wanted PNamingContext the PNamingContext instance to use for the given jorm class name throws: org.objectweb.jorm.api.PException - |
getPNamingContext | public PNamingContext getPNamingContext(Class clazz) throws PException(Code) | | |
getPType | public PType getPType()(Code) | | |
newGenClassHome | HomeItf newGenClassHome(PClassMapping _pcm, TransactionalPersistenceManager _tpm, POManagerFactoryItf _pmf, String path)(Code) | | Instanciates a new home for a generic class. The used class depends
on the Personality.
Parameters: _pcm - is the real pcm to link to the home Parameters: _tpm - is the transactional persistence manager to link to the home Parameters: _pmf - is the PO manager factory to link to the home Parameters: path - is the path identifing the genclass. a new instance of HomeItf managing a genclass |
setMappingStructureRule | public void setMappingStructureRule(byte rule)(Code) | | |
setNullPName | public void setNullPName(Object o) throws PException(Code) | | |
setPType | public void setPType(PType pt)(Code) | | |
setSpeedoProperty | public void setSpeedoProperty(String[] name_n_value)(Code) | | |
startFc | public void startFc() throws IllegalLifeCycleException(Code) | | |
stopFc | public void stopFc() throws IllegalLifeCycleException(Code) | | |
supportCompositeField | public boolean supportCompositeField(String fn, PType ft)(Code) | | |
supportDynamicComposite | public boolean supportDynamicComposite()(Code) | | |
supportStaticComposite | public boolean supportStaticComposite()(Code) | | |
|
|