Java Doc for TypeManager.java in  » Database-ORM » JPOX » org » jpox » 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 » JPOX » org.jpox 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jpox.TypeManager

TypeManager
public class TypeManager (Code)
Registry of type support within JPOX. The plugin mechanism provides the registration of supported types, so that users can register support for their own types and these are loaded when the TypeManager is constructed.
version:
   $Revision: 1.49 $

Inner Class :static class JPOXType

Field Summary
final protected  ApiAdapterapi
    
final protected  ClassLoaderResolverclr
    
 Maptypes
     The types, keyed by the class name.

Constructor Summary
public  TypeManager(ApiAdapter api, PluginManager mgr, ClassLoaderResolver clr)
     Constructor, loading JPOX's support for type mappings using the plugin mechanism.

Method Summary
protected  JPOXTypefindJPOXTypeForClass(Class cls)
    
final public  FieldPersistenceModifiergetDefaultFieldPersistenceModifier(Class c, int modifier, boolean isPCclass)
     Accessor for the default "persistence-modifier" for a field given the class, its modifier and whether it is a PersistentCapable class.
Parameters:
  c - The class
Parameters:
  modifier - The modifiers for the field
Parameters:
  isPCclass - Whether it is persistence capable.
public  ClassgetMappingType(String className)
     Accessor for the Java Mapping type class for the supplied class.
public  ClassgetSecondClassWrapper(String className)
     Accessor for the Second Class Wrapper class for the supplied class.
public  ClassgetSecondClassWrapperSimple(String className)
     Accessor for the SCO "simple" wrapper class for the supplied class.
public  SetgetSupportedTypes()
     Accessor for the Supported Types.
protected  JPOXTypegetType(String className)
    
public  booleanisDefaultEmbeddedType(Class c)
     Utility to return whether a type defaults to embedded or not. See JDO 2 Section 18.14 <field> for definition.
public  booleanisDefaultFetchGroup(Class c)
     Accessor for whether the class is by default in the default fetch group.
public  booleanisReferenceType(Class cls)
     Convenience method returning whether the passed type is a reference type.
public  booleanisSCOList(Class c)
     Accessor for whether the type is a List type that uses a SCOList wrapper type.
public  booleanisSCOMap(Class c)
     Accessor for whether the type is a Map type that uses a SCOMap wrapper type.
public  booleanisSecondClassMutableType(String class_name)
    
public  booleanisSecondClassWrapper(String className)
     Accessor for whether a class is a Second Class Wrapper type.
public  booleanisSupportedType(String className)
     Accessor for whether a class is supported.

Field Detail
api
final protected ApiAdapter api(Code)



clr
final protected ClassLoaderResolver clr(Code)



types
Map types(Code)
The types, keyed by the class name.




Constructor Detail
TypeManager
public TypeManager(ApiAdapter api, PluginManager mgr, ClassLoaderResolver clr)(Code)
Constructor, loading JPOX's support for type mappings using the plugin mechanism.
Parameters:
  api - The API in use
Parameters:
  clr - the ClassLoader Resolver
Parameters:
  mgr - the PluginManager




Method Detail
findJPOXTypeForClass
protected JPOXType findJPOXTypeForClass(Class cls)(Code)



getDefaultFieldPersistenceModifier
final public FieldPersistenceModifier getDefaultFieldPersistenceModifier(Class c, int modifier, boolean isPCclass)(Code)
Accessor for the default "persistence-modifier" for a field given the class, its modifier and whether it is a PersistentCapable class.
Parameters:
  c - The class
Parameters:
  modifier - The modifiers for the field
Parameters:
  isPCclass - Whether it is persistence capable. The default field PersistenceModifier.



getMappingType
public Class getMappingType(String className)(Code)
Accessor for the Java Mapping type class for the supplied class.
Parameters:
  className - The class name The Java mapping type



getSecondClassWrapper
public Class getSecondClassWrapper(String className)(Code)
Accessor for the Second Class Wrapper class for the supplied class. A type will have a SCO wrapper if it is SCO supported and is mutable.
Parameters:
  className - The class name The second class wrapper



getSecondClassWrapperSimple
public Class getSecondClassWrapperSimple(String className)(Code)
Accessor for the SCO "simple" wrapper class for the supplied class. A type will have a SCO wrapper if it is SCO supported and is mutable. The "simple" wrapper provides simple wrapping of operations and dirty detection only.
Parameters:
  className - The class name The second class wrapper



getSupportedTypes
public Set getSupportedTypes()(Code)
Accessor for the Supported Types. Set of supported types (containing the fully qualified class names (String)).



getType
protected JPOXType getType(String className)(Code)
Utility class to retrieve a supported type
Parameters:
  className - The class name The internal type information for the class



isDefaultEmbeddedType
public boolean isDefaultEmbeddedType(Class c)(Code)
Utility to return whether a type defaults to embedded or not. See JDO 2 Section 18.14 <field> for definition. This only provides for the basic types, and ignores arrays/collections.
Parameters:
  c - The type Whether it defaults to embedded or not.



isDefaultFetchGroup
public boolean isDefaultFetchGroup(Class c)(Code)
Accessor for whether the class is by default in the default fetch group.
Parameters:
  c - The class return true if is part of default fetch group by default



isReferenceType
public boolean isReferenceType(Class cls)(Code)
Convenience method returning whether the passed type is a reference type. This typically means whether it is an interface or java.lang.Object.
Parameters:
  cls - The class Whether it is a reference type



isSCOList
public boolean isSCOList(Class c)(Code)
Accessor for whether the type is a List type that uses a SCOList wrapper type.
Parameters:
  c - The class if c is a List type



isSCOMap
public boolean isSCOMap(Class c)(Code)
Accessor for whether the type is a Map type that uses a SCOMap wrapper type.
Parameters:
  c - The class true if c is a Map type



isSecondClassMutableType
public boolean isSecondClassMutableType(String class_name)(Code)
Accessor for whether a class is a supported second class mutable type
Parameters:
  class_name - The class name Whether it is a second class mutable type



isSecondClassWrapper
public boolean isSecondClassWrapper(String className)(Code)
Accessor for whether a class is a Second Class Wrapper type.
Parameters:
  className - The name of the class Whether it is a second class wrapper type



isSupportedType
public boolean isSupportedType(String className)(Code)
Accessor for whether a class is supported.
Parameters:
  className - The class name Whether the class is supported (to some degree)



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.