Java Doc for BasicJormFactory.java in  » Database-ORM » Speedo_1.4.5 » org » objectweb » speedo » mapper » lib » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » Speedo_1.4.5 » org.objectweb.speedo.mapper.lib 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.speedo.mapper.lib.BasicJormFactory

BasicJormFactory
public class BasicJormFactory implements JormFactory,PNameCoder,BindingController,LifeCycleController,JormFactoryAttributes(Code)
This class manages the initialization and the naming, of persistent class. The type of naming supported depends on the NamingManager registered into the NamingManagerFactory
See Also:   org.objectweb.speedo.naming.api.NamingManager
author:
   S.Chassande-Barrioz


Field Summary
final public static  StringCACHE_MANAGER_BINDING
    
final public static  StringMAPPER_BINDING
    
final public static  StringNMF_BINDING
    
final public static  StringPMF_BINDING
    
final public static  StringTPM_BINDING
    
protected  Mapbinders
    
protected  CacheManagercache
    
protected  Mapcn2pcm
    
 ClassPropertiesManagercpm
    
protected  Loggerlogger
    
protected  PMappermapper
     The mapper is used to map and find the Jorm classes.
 Personalitypersonality
    
protected  POManagerFactoryItfpmf
    
protected  MappnamingContexts
    
protected  TransactionalPersistenceManagertpm
    

Constructor Summary
public  BasicJormFactory()
     builds the BasicJormFactory and the hosting structure for the binder list.

Method Summary
public  voidbindFc(String s, Object o)
    
public  voidclean()
    
public  booleancodingSupported(int codingtype)
    
public  PNamedecode(byte[] en)
    
public  PNamedecodeAbstract(Object oid, Object context)
    
public  PNamedecodeBigDecimal(BigDecimal en)
    
public  PNamedecodeBigInteger(BigInteger en)
    
public  PNamedecodeByte(byte en)
    
public  PNamedecodeChar(char en)
    
public  PNamedecodeCharArray(char[] en)
    
public  PNamedecodeDate(Date en)
    
public  PNamedecodeInt(int en)
    
public  PNamedecodeLong(long en)
    
public  PNamedecodeObyte(Byte en)
    
public  PNamedecodeOchar(Character en)
    
public  PNamedecodeOint(Integer en)
    
public  PNamedecodeOlong(Long en)
    
public  PNamedecodeOshort(Short en)
    
public  PNamedecodeShort(short en)
    
public  PNamedecodeString(String en)
    
public  byte[]encode(PName pn)
    
public  ObjectencodeAbstract(PName pn)
    
public  BigDecimalencodeBigDecimal(PName pn)
    
public  BigIntegerencodeBigInteger(PName pn)
    
public  byteencodeByte(PName pn)
    
public  charencodeChar(PName pn)
    
public  char[]encodeCharArray(PName pn)
    
public  DateencodeDate(PName pn)
    
public  intencodeInt(PName pn)
    
public  longencodeLong(PName pn)
    
public  ByteencodeObyte(PName pn)
    
public  CharacterencodeOchar(PName pn)
    
public  IntegerencodeOint(PName pn)
    
public  LongencodeOlong(PName pn)
    
public  ShortencodeOshort(PName pn)
    
public  shortencodeShort(PName pn)
    
public  StringencodeString(PName pn)
    
public synchronized  PBinderfindPBinder(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  PNameManagerfindPNameManager(String className, ClassLoader classLoader, PClassMapping pcm, String hints)
     Retrieves a PNameManager managing a given persistent class and its sub classes.
public  ClassLoadergetClassLoader(String className)
    
public  StringgetFcState()
    
protected  StringgetGCMClassName(String mapperName)
     Retrieves the class name of the PClassMapping implementation for the generic class for a given mapper name.
public  PClassMappinggetGenClassMapping(String path)
    
public  bytegetMappingStructureRule()
    
public  PNamegetNull()
    
public  PBindergetPBinder(Class clazz)
    
public  PBindergetPBinder(String classname, ClassLoader cl)
    
public  PClassMappinggetPClassMapping(Class clazz)
    
public synchronized  PClassMappinggetPClassMapping(String className, ClassLoader classLoader)
     This method is the real implementation of the getPClassMapping methods from the JormFactory interface.
public  PNamingContextgetPNamingContext(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  PNamingContextgetPNamingContext(Class clazz)
    
public  PTypegetPType()
    
public  PersonalitygetPersonality()
    
public  PropertiesgetSpeedoProperties()
    
public  String[]listFc()
    
public  ObjectlookupFc(String s)
    
 HomeItfnewGenClassHome(PClassMapping _pcm, TransactionalPersistenceManager _tpm, POManagerFactoryItf _pmf, String path)
     Instanciates a new home for a generic class.
public  voidsetMappingStructureRule(byte rule)
    
public  voidsetNullPName(Object o)
    
public  voidsetPType(PType pt)
    
public  voidsetPersonality(Personality p)
    
public  voidsetSpeedoProperties(Properties p)
    
public  voidsetSpeedoProperty(String[] name_n_value)
    
public  voidstartFc()
    
public  voidstopFc()
    
public  booleansupportCompositeField(String fn, PType ft)
    
public  booleansupportDynamicComposite()
    
public  booleansupportStaticComposite()
    
public  voidunbindFc(String s)
    

Field Detail
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



NMF_BINDING
final public static String NMF_BINDING(Code)



PMF_BINDING
final public static String PMF_BINDING(Code)



TPM_BINDING
final public static String TPM_BINDING(Code)



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



cpm
ClassPropertiesManager cpm(Code)



logger
protected Logger logger(Code)



mapper
protected PMapper mapper(Code)
The mapper is used to map and find the Jorm classes.



personality
Personality personality(Code)



pmf
protected POManagerFactoryItf pmf(Code)



pnamingContexts
protected Map pnamingContexts(Code)
key = String class name value = PNamingContext pnc of the class



tpm
protected TransactionalPersistenceManager tpm(Code)




Constructor Detail
BasicJormFactory
public BasicJormFactory()(Code)
builds the BasicJormFactory and the hosting structure for the binder list.




Method Detail
bindFc
public void bindFc(String s, Object o)(Code)



clean
public void clean() throws PException(Code)



codingSupported
public boolean codingSupported(int codingtype)(Code)



decode
public PName decode(byte[] en) throws PExceptionNaming(Code)



decodeAbstract
public PName decodeAbstract(Object oid, Object context) throws PExceptionNaming, UnsupportedOperationException(Code)



decodeBigDecimal
public PName decodeBigDecimal(BigDecimal en) throws PExceptionNaming(Code)



decodeBigInteger
public PName decodeBigInteger(BigInteger en) throws PExceptionNaming(Code)



decodeByte
public PName decodeByte(byte en) throws PExceptionNaming, UnsupportedOperationException(Code)



decodeChar
public PName decodeChar(char en) throws PExceptionNaming, UnsupportedOperationException(Code)



decodeCharArray
public PName decodeCharArray(char[] en) throws PExceptionNaming(Code)



decodeDate
public PName decodeDate(Date en) throws PExceptionNaming(Code)



decodeInt
public PName decodeInt(int en) throws PExceptionNaming, UnsupportedOperationException(Code)



decodeLong
public PName decodeLong(long en) throws PExceptionNaming, UnsupportedOperationException(Code)



decodeObyte
public PName decodeObyte(Byte en) throws PExceptionNaming, UnsupportedOperationException(Code)



decodeOchar
public PName decodeOchar(Character en) throws PExceptionNaming, UnsupportedOperationException(Code)



decodeOint
public PName decodeOint(Integer en) throws PExceptionNaming, UnsupportedOperationException(Code)



decodeOlong
public PName decodeOlong(Long en) throws PExceptionNaming, UnsupportedOperationException(Code)



decodeOshort
public PName decodeOshort(Short en) throws PExceptionNaming, UnsupportedOperationException(Code)



decodeShort
public PName decodeShort(short en) throws PExceptionNaming, UnsupportedOperationException(Code)



decodeString
public PName decodeString(String en) throws PExceptionNaming(Code)



encode
public byte[] encode(PName pn) throws PExceptionNaming(Code)



encodeAbstract
public Object encodeAbstract(PName pn) throws PExceptionNaming, UnsupportedOperationException(Code)



encodeBigDecimal
public BigDecimal encodeBigDecimal(PName pn) throws PExceptionNaming(Code)



encodeBigInteger
public BigInteger encodeBigInteger(PName pn) throws PExceptionNaming(Code)



encodeByte
public byte encodeByte(PName pn) throws PExceptionNaming, UnsupportedOperationException(Code)



encodeChar
public char encodeChar(PName pn) throws PExceptionNaming, UnsupportedOperationException(Code)



encodeCharArray
public char[] encodeCharArray(PName pn) throws PExceptionNaming(Code)



encodeDate
public Date encodeDate(PName pn) throws PExceptionNaming(Code)



encodeInt
public int encodeInt(PName pn) throws PExceptionNaming, UnsupportedOperationException(Code)



encodeLong
public long encodeLong(PName pn) throws PExceptionNaming, UnsupportedOperationException(Code)



encodeObyte
public Byte encodeObyte(PName pn) throws PExceptionNaming, UnsupportedOperationException(Code)



encodeOchar
public Character encodeOchar(PName pn) throws PExceptionNaming, UnsupportedOperationException(Code)



encodeOint
public Integer encodeOint(PName pn) throws PExceptionNaming, UnsupportedOperationException(Code)



encodeOlong
public Long encodeOlong(PName pn) throws PExceptionNaming, UnsupportedOperationException(Code)



encodeOshort
public Short encodeOshort(PName pn) throws PExceptionNaming, UnsupportedOperationException(Code)



encodeShort
public short encodeShort(PName pn) throws PExceptionNaming, UnsupportedOperationException(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.



getClassLoader
public ClassLoader getClassLoader(String className)(Code)



getFcState
public String getFcState()(Code)



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)



getPBinder
public PBinder getPBinder(String classname, ClassLoader cl) 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)



getPersonality
public Personality getPersonality()(Code)



getSpeedoProperties
public Properties getSpeedoProperties()(Code)



listFc
public String[] listFc()(Code)



lookupFc
public Object lookupFc(String s)(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)



setPersonality
public void setPersonality(Personality p)(Code)



setSpeedoProperties
public void setSpeedoProperties(Properties p)(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)



unbindFc
public void unbindFc(String s)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.