Java Doc for NamingManager.java in  » Database-ORM » Speedo_1.4.5 » org » objectweb » speedo » naming » api » 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.naming.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.objectweb.speedo.naming.api.NamingManager

All known Subclasses:   org.objectweb.speedo.naming.lib.RdbSequenceNamingManager,  org.objectweb.speedo.naming.lib.NamingManagerHelper,  org.objectweb.speedo.naming.lib.UserIdCompositeNamingManager,  org.objectweb.speedo.naming.lib.UserIdSingleNamingManager,  org.objectweb.speedo.naming.lib.PolymorphIdNamingManager,
NamingManager
public interface NamingManager (Code)
It defines a manager of a type of naming. This interface covers needs at compile time and at run time. In particular a naming manager is able to fill the Speedo meta information with the particularity of the a naming.
author:
   S.Chassande-Barrioz

Inner Class :public class NamingField

Field Summary
 IntegerPNH_NULL_VALUE
    
 IntegerPNH_PFIELD
    
 IntegerPNH_REF_STATE
    
 StringSEP
    


Method Summary
 booleancanManage(SpeedoClass sc)
     Indicates if the naming manager is able to manage the identifier of a persistent class.
 booleancanProvidePBinder(Object hints, ClassLoader classLoader)
    
 booleancanProvidePNamingContext(Object hints, ClassLoader classLoader)
    
 PNamedecode(PNameCoder pnc, Object oid, java.lang.Class clazz, JormFactory jf)
     Decodes an object identifier into a PName.
Parameters:
  pnc - is the PNameCoder instance to use for the decoding the objectidentifier.
 voiddefineClassIdentifierNameDef(NameDef nd, Class jc, SpeedoClass sc, ClassMapping cm, MIBuilderHelper mibh, JormMIMappingBuilder mb, Collection createdMOs)
     Fill the name def of a class identifier
Parameters:
  nd - is the name def to fill
Parameters:
  sc - is the speedo meta object representing the class.
Parameters:
  jc - is the jorm meta object representing the class.
Parameters:
  cm - if the mapping structure hosting the mapping of the class.
Parameters:
  mibh - is a helper for the management of the JORM meta info
Parameters:
  mb - is the mapping builder permitting the creation of the mappingobjects.
Parameters:
  createdMOs - is a result paramter.
 voiddefineClassReferenceNameDef(NameDef nd, ClassRef cr, SpeedoField sf, SpeedoClass currentClass, ClassMapping cm, MIBuilderHelper mibh, JormMIMappingBuilder mb)
    
 voiddefineClassReferenceNameDef(NameDef nd, ClassRef cr, SpeedoField sf, SpeedoClass currentClass, GenClassMapping gcm, MIBuilderHelper mibh, JormMIMappingBuilder mb)
     Fill the name def of the class reference from a generic class
Parameters:
  nd - is the name def to fill
Parameters:
  cr - is the speedo meta object representing the class.
Parameters:
  sf - is the speedo meta object representing the persistent reference to a class.
Parameters:
  currentClass - is the class mapping the field
Parameters:
  gcm - if the mapping structure hosting the mapping of the class.
Parameters:
  mibh - is a helper for the management of the JORM meta info
Parameters:
  mb - is the mapping builder permitting the creation of the mappingobjects.
Parameters:
  createdMOs - is a result paramter.
 voiddefineGenClassIdentifierNameDef(NameDef nd, GenClassRef gcr, SpeedoField sf, SpeedoClass currentClass, GenClassMapping gcm, MIBuilderHelper mibh, JormMIMappingBuilder mb)
    
 voiddefineGenClassReferenceNameDef(NameDef nd, GenClassRef gcr, SpeedoField sf, SpeedoClass currentClass, ClassMapping cm, MIBuilderHelper mibh, JormMIMappingBuilder mb)
    
 Objectencode(PName pn)
    
 SpeedoColumn[]getDefaultColumn(SpeedoClass sc)
    
 StringgetGCPNameHints(SpeedoClass sc, NameDef nd)
    
 voidgetJormNamingConfig(NameDef nd, SpeedoClass targetClass, MetaObject sourceMO, String key, Properties result)
     computes the naming configuration information for a class or a reference. This information is store as a String.
 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.
 PBindergetPBinder(String className, String hints, ClassLoader classLoader, byte mappingStructureRule, Map cn2binder, Map cn2pnc)
     Build a PBinder instance for this hints parameter specified
Parameters:
  hints - is the helper of the PBinder building.
 StringgetPNameHints(SpeedoClass sc, NameDef nd)
    
 Object[]getPNameHints2(SpeedoClass sc, NameDef nd)
    
 PNamingContextgetPNamingContext(String className, String hints, ClassLoader classLoader, byte mappingStructureRule, Map cn2binder, Map cn2pnc, Manager miManager, PClassMapping pcm)
     Build a PNamingContext instance for this hints parameter specified
Parameters:
  hints - is the helper of the PBinder building.
 booleanneedInheritanceDiscriminator(SpeedoClass sc)
    
 voidsetCache(CacheManager cache)
    
 voidsetLogger(Logger logger)
    
 voidsetPMapper(PMapper mapper)
    
 voidsetPmf(POManagerFactoryItf pmf)
    
 booleansupportPNamingcontext()
     indicates if the use of PNamingContext is support by this mapping.

Field Detail
PNH_NULL_VALUE
Integer PNH_NULL_VALUE(Code)



PNH_PFIELD
Integer PNH_PFIELD(Code)



PNH_REF_STATE
Integer PNH_REF_STATE(Code)



SEP
String SEP(Code)





Method Detail
canManage
boolean canManage(SpeedoClass sc)(Code)
Indicates if the naming manager is able to manage the identifier of a persistent class.
Parameters:
  sc - The speedo meta object representing the persistent class



canProvidePBinder
boolean canProvidePBinder(Object hints, ClassLoader classLoader)(Code)
indicates if the naming manager is able to build a PBinder instance for this hints parameter specified
Parameters:
  hints - is the helper of the PBinder building
Parameters:
  classLoader - is the classloader to use for instanciate the PBinder



canProvidePNamingContext
boolean canProvidePNamingContext(Object hints, ClassLoader classLoader)(Code)
indicates if the naming manager is able to build a PNC instance for this hints parameter specified
Parameters:
  hints - is the helper of the PNC building
Parameters:
  classLoader - is the classloader to use for instanciate the PNC



decode
PName decode(PNameCoder pnc, Object oid, java.lang.Class clazz, JormFactory jf) throws PException(Code)
Decodes an object identifier into a PName.
Parameters:
  pnc - is the PNameCoder instance to use for the decoding the objectidentifier. The pnc parameter can be null. In this case the oid must
Parameters:
  oid - is the object identifier
Parameters:
  clazz - is the java.lang.Class of the persistent class identified bythe oid
Parameters:
  jf - is the JormFactory instance. It permits to the object identifier decode as PName
throws:
  PException -



defineClassIdentifierNameDef
void defineClassIdentifierNameDef(NameDef nd, Class jc, SpeedoClass sc, ClassMapping cm, MIBuilderHelper mibh, JormMIMappingBuilder mb, Collection createdMOs) throws SpeedoException, PException(Code)
Fill the name def of a class identifier
Parameters:
  nd - is the name def to fill
Parameters:
  sc - is the speedo meta object representing the class.
Parameters:
  jc - is the jorm meta object representing the class.
Parameters:
  cm - if the mapping structure hosting the mapping of the class.
Parameters:
  mibh - is a helper for the management of the JORM meta info
Parameters:
  mb - is the mapping builder permitting the creation of the mappingobjects.
Parameters:
  createdMOs - is a result paramter. This collection must be fill withthe created Jorm Meta objects representing a class or a composite name.Here only the new composite names have to be added.
throws:
  SpeedoException - if the speedo meta information is not completlydefined.



defineClassReferenceNameDef
void defineClassReferenceNameDef(NameDef nd, ClassRef cr, SpeedoField sf, SpeedoClass currentClass, ClassMapping cm, MIBuilderHelper mibh, JormMIMappingBuilder mb) throws SpeedoException, PException(Code)
Fill the name def of the class reference from a class
Parameters:
  nd - is the name def to fill
Parameters:
  cr - is the speedo meta object representing the class.
Parameters:
  sf - is the speedo meta object representing the persistent reference to a class.
Parameters:
  currentClass - is the class mapping the field
Parameters:
  cm - if the mapping structure hosting the mapping of the class.
Parameters:
  mibh - is a helper for the management of the JORM meta info
Parameters:
  mb - is the mapping builder permitting the creation of the mappingobjects.
throws:
  SpeedoException - if the speedo meta information is not completlydefined.



defineClassReferenceNameDef
void defineClassReferenceNameDef(NameDef nd, ClassRef cr, SpeedoField sf, SpeedoClass currentClass, GenClassMapping gcm, MIBuilderHelper mibh, JormMIMappingBuilder mb) throws SpeedoException, PException(Code)
Fill the name def of the class reference from a generic class
Parameters:
  nd - is the name def to fill
Parameters:
  cr - is the speedo meta object representing the class.
Parameters:
  sf - is the speedo meta object representing the persistent reference to a class.
Parameters:
  currentClass - is the class mapping the field
Parameters:
  gcm - if the mapping structure hosting the mapping of the class.
Parameters:
  mibh - is a helper for the management of the JORM meta info
Parameters:
  mb - is the mapping builder permitting the creation of the mappingobjects.
Parameters:
  createdMOs - is a result paramter. This collection must be fill withthe created Jorm Meta objects representing a class or a composite name.Here only the new composite names have to be added.
throws:
  SpeedoException - if the speedo meta information is not completlydefined.



defineGenClassIdentifierNameDef
void defineGenClassIdentifierNameDef(NameDef nd, GenClassRef gcr, SpeedoField sf, SpeedoClass currentClass, GenClassMapping gcm, MIBuilderHelper mibh, JormMIMappingBuilder mb) throws SpeedoException, PException(Code)
Fill the name def of the gen class identifier
Parameters:
  nd - is the name def to fill
Parameters:
  gcr - is the JORM meta object representing the generic class reference.
Parameters:
  sf - is the speedo meta object representing the persistent reference to a generic class.
Parameters:
  currentClass - is the class mapping the field
Parameters:
  gcm - if the mapping structure hosting the mapping of the generic class.
Parameters:
  mibh - is a helper for the management of the JORM meta info
Parameters:
  mb - is the mapping builder permitting the creation of the mappingobjects.
throws:
  SpeedoException - if the speedo meta information is not completlydefined.



defineGenClassReferenceNameDef
void defineGenClassReferenceNameDef(NameDef nd, GenClassRef gcr, SpeedoField sf, SpeedoClass currentClass, ClassMapping cm, MIBuilderHelper mibh, JormMIMappingBuilder mb) throws SpeedoException, PException(Code)
Fill the name def of the generic class reference from a class
Parameters:
  nd - is the name def to fill
Parameters:
  gcr - is the speedo meta object representing the generic class.
Parameters:
  sf - is the speedo meta object representing the persistent reference to a generic class.
Parameters:
  currentClass - is the class mapping the field
Parameters:
  cm - if the mapping structure hosting the mapping of the class.
Parameters:
  mibh - is a helper for the management of the JORM meta info
Parameters:
  mb - is the mapping builder permitting the creation of the mappingobjects.
throws:
  SpeedoException - if the speedo meta information is not completlydefined.



encode
Object encode(PName pn) throws PException(Code)
Encode a PName into an object
Parameters:
  pn - is the pname to encode



getDefaultColumn
SpeedoColumn[] getDefaultColumn(SpeedoClass sc)(Code)



getGCPNameHints
String getGCPNameHints(SpeedoClass sc, NameDef nd)(Code)
compute a string value which permit to help the building of the genclass PName (export)
Parameters:
  sc - is the Speedo class which the hints must be specified
Parameters:
  nd - is the name def of the gen class



getJormNamingConfig
void getJormNamingConfig(NameDef nd, SpeedoClass targetClass, MetaObject sourceMO, String key, Properties result) throws SpeedoException(Code)
computes the naming configuration information for a class or a reference. This information is store as a String. The string value will be passed to the getPBinder and getPNamingContext methods as hints. This method is used at generation time.
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>

Parameters:
  targetClass - is the Speedo meta object representing the class whichis designates by the
Parameters:
  result - is the Properties which must be filled



getNamingfields
NamingField[] getNamingfields(SpeedoClass sc) throws PException(Code)
Retrieves the array of field used in the identifier of a persistent class and which values are not calculated by the application. The application field must be set at makePersistent time.
Parameters:
  sc - is the speedo meta object of the persistent class



getPBinder
PBinder getPBinder(String className, String hints, ClassLoader classLoader, byte mappingStructureRule, Map cn2binder, Map cn2pnc) throws PException(Code)
Build a PBinder instance for this hints parameter specified
Parameters:
  hints - is the helper of the PBinder building. This hints must bethe result of the getJormConfig call.
Parameters:
  classLoader - is the classloader to use for instanciate the PBinder
Parameters:
  mappingStructureRule - indicates the rule to apply concerning thedata strucuture. Indeed a PBinder building can require to read the datasupport.
Parameters:
  cn2binder - is the map of the existing PBinder instance(key = class name, value = PBinder instance)
Parameters:
  cn2pnc - is the map of the existing PNC instance(key = class name, value = PNC instance)



getPNameHints
String getPNameHints(SpeedoClass sc, NameDef nd)(Code)
compute a string value which permit to help the building of the class PName (export)
Parameters:
  sc - is the Speedo class which the hints must be specified
Parameters:
  nd - is the name def of the class



getPNameHints2
Object[] getPNameHints2(SpeedoClass sc, NameDef nd)(Code)



getPNamingContext
PNamingContext getPNamingContext(String className, String hints, ClassLoader classLoader, byte mappingStructureRule, Map cn2binder, Map cn2pnc, Manager miManager, PClassMapping pcm) throws PException(Code)
Build a PNamingContext instance for this hints parameter specified
Parameters:
  hints - is the helper of the PBinder building. This hints must bethe result of the getJormConfig call.
Parameters:
  classLoader - is the classloader to use for instanciate the PBinder
Parameters:
  mappingStructureRule - indicates the rule to apply concerning thedata strucuture. Indeed a PBinder building can require to read the datasupport.
Parameters:
  cn2binder - is the map of the existing PBinder instance(key = class name, value = PBinder instance)
Parameters:
  cn2pnc - is the map of the existing PNC instance(key = class name, value = PNC instance)



needInheritanceDiscriminator
boolean needInheritanceDiscriminator(SpeedoClass sc) throws SpeedoException(Code)



setCache
void setCache(CacheManager cache)(Code)



setLogger
void setLogger(Logger logger)(Code)



setPMapper
void setPMapper(PMapper mapper) throws PException(Code)



setPmf
void setPmf(POManagerFactoryItf pmf)(Code)



supportPNamingcontext
boolean supportPNamingcontext()(Code)
indicates if the use of PNamingContext is support by this mapping. If true then getPNamingContext method can be use, otherwise the getPBinder must be use instead. The case of PNamingContext are not supported, means the PBinder are used as PNameCoder by PBinding as reference coder.



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