Java Doc for MetaDataUtils.java in  » Testing » PolePosition-0.20 » com » versant » core » metadata » 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 » Testing » PolePosition 0.20 » com.versant.core.metadata 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.versant.core.metadata.MetaDataUtils

MetaDataUtils
final public class MetaDataUtils (Code)
This knows how to analyze types to detirmine default persistence information e.g. persistence-modifier, default-fetch-group and so on. This is used by the runtime meta data building code and the workbench.
See Also:   MetaDataBuilder


Field Summary
protected static  SetBASIC_TYPES
    
final protected  HashSetDFG_TYPES
     Field types in this set default to the default fetch group.
final protected  HashSetEMBEDDED_ARRAY_TYPES
     Arrays of types in this set are embedded by default.
final protected  HashSetPM_PERSISTENT_TYPES
     Fields with types in this set are persistent by default.
protected  HashSetexternalizedTypes
    
protected  HashSetstoreTypes
    

Constructor Summary
public  MetaDataUtils()
    

Method Summary
public  voidclear()
     Clear the set of classId's generated so far and any other statefull information.
public  intgenerateClassId(String qname)
     Generate the classId for the class.
public  intgetFieldCategory(int persistenceModifier, Class type, Map classMap)
    
public static  ClassgetGenericElementType(Field field)
     Get the element type for a Collection if possible using the JDK 1.5 generics API or null if not possible.
public static  ClassgetGenericKeyType(Field field)
     Get the key type for a Map if possible using the JDK 1.5 generics API or null if not possible.
public static  ClassgetGenericValueType(Field field)
     Get the value type for a Map if possible using the JDK 1.5 generics API or null if not possible.
public  booleanisBasicType(Class t)
     If this is a Basic type as defined by ejb3 spec.
public  booleanisDefaultFetchGroupType(Class type)
    
public  booleanisDefaultPersistentField(ClassMetaData.FieldInfo f, Map classMap)
    
public  booleanisDefaultPersistentField(Field f, Map classMap)
    
public  booleanisDefaultPersistentModifiers(int modifiers)
    
public  booleanisDefaultPersistentType(Class type, Map classMap)
    
public  booleanisEmbeddedType(Class type)
    
public  booleanisEnhancerAddedField(String fieldName)
    
public  booleanisMutableType(Class type)
     Is type a mutable type e.g.
public  booleanisPersistableField(Field f, Map classMap)
    
public  booleanisPersistableOnlyUsingExternalization(Class type, Map classMap)
    
public  booleanisPersistentField(Class type, int modifiers, Map classMap)
    
public  booleanisPersistentModifiers(int modifiers)
    
public  booleanisPersistentType(Class type, Map classMap)
    
public  booleanisTypeRegistered(Class type)
    
public  voidregisterExternalizedType(Class t)
     Register a type that is persisted using an externalizer.
public  voidregisterStoreType(Class type)
     Register a store specific persistent type.

Field Detail
BASIC_TYPES
protected static Set BASIC_TYPES(Code)



DFG_TYPES
final protected HashSet DFG_TYPES(Code)
Field types in this set default to the default fetch group.



EMBEDDED_ARRAY_TYPES
final protected HashSet EMBEDDED_ARRAY_TYPES(Code)
Arrays of types in this set are embedded by default.



PM_PERSISTENT_TYPES
final protected HashSet PM_PERSISTENT_TYPES(Code)
Fields with types in this set are persistent by default.



externalizedTypes
protected HashSet externalizedTypes(Code)



storeTypes
protected HashSet storeTypes(Code)




Constructor Detail
MetaDataUtils
public MetaDataUtils()(Code)




Method Detail
clear
public void clear()(Code)
Clear the set of classId's generated so far and any other statefull information.



generateClassId
public int generateClassId(String qname)(Code)
Generate the classId for the class. This is a positive int computed from a hash of the class name with duplicates resolved by incrementing the id.



getFieldCategory
public int getFieldCategory(int persistenceModifier, Class type, Map classMap)(Code)
What category does a field with the supplied attributes belong to?
Parameters:
  persistenceModifier - Transactional fields are CATEGORY_TRANSACTIONAL
Parameters:
  type - Type of field
Parameters:
  classMap - Map with all persistent classes as keys One of the MDStatics.CATEGORY_xxx constants
See Also:   MDStatics



getGenericElementType
public static Class getGenericElementType(Field field)(Code)
Get the element type for a Collection if possible using the JDK 1.5 generics API or null if not possible.



getGenericKeyType
public static Class getGenericKeyType(Field field)(Code)
Get the key type for a Map if possible using the JDK 1.5 generics API or null if not possible.



getGenericValueType
public static Class getGenericValueType(Field field)(Code)
Get the value type for a Map if possible using the JDK 1.5 generics API or null if not possible.



isBasicType
public boolean isBasicType(Class t)(Code)
If this is a Basic type as defined by ejb3 spec.



isDefaultFetchGroupType
public boolean isDefaultFetchGroupType(Class type)(Code)
Should this field be part of the default fetch group by default?



isDefaultPersistentField
public boolean isDefaultPersistentField(ClassMetaData.FieldInfo f, Map classMap)(Code)
Should f be considered persistent by default?



isDefaultPersistentField
public boolean isDefaultPersistentField(Field f, Map classMap)(Code)
Should f be considered persistent by default?



isDefaultPersistentModifiers
public boolean isDefaultPersistentModifiers(int modifiers)(Code)
Do the modifiers indicate a field that is persistent by default?



isDefaultPersistentType
public boolean isDefaultPersistentType(Class type, Map classMap)(Code)
Is a field of type that should be persistent by default?
Parameters:
  type - Type to check
Parameters:
  classMap - Map with all persistent classes as keys



isEmbeddedType
public boolean isEmbeddedType(Class type)(Code)
Should a field of type be embedded by default?



isEnhancerAddedField
public boolean isEnhancerAddedField(String fieldName)(Code)
Is the field of of those added by the enhancer?



isMutableType
public boolean isMutableType(Class type)(Code)
Is type a mutable type e.g. java.util.Date etc?



isPersistableField
public boolean isPersistableField(Field f, Map classMap)(Code)
Can f be persisted?



isPersistableOnlyUsingExternalization
public boolean isPersistableOnlyUsingExternalization(Class type, Map classMap)(Code)
Is a field of a type that can only be persisted through externalization?



isPersistentField
public boolean isPersistentField(Class type, int modifiers, Map classMap)(Code)
Can a field of type with modifiers be considered persistent?
Parameters:
  type - Type to check
Parameters:
  modifiers - Field modifiers
Parameters:
  classMap - Map with all persistent classes as keys



isPersistentModifiers
public boolean isPersistentModifiers(int modifiers)(Code)
Do the modifiers indicate a field can be persistent?



isPersistentType
public boolean isPersistentType(Class type, Map classMap)(Code)
Is a field of type that can be persistent?
Parameters:
  type - Type to check
Parameters:
  classMap - Map with all persistent classes as keys



isTypeRegistered
public boolean isTypeRegistered(Class type)(Code)
Has a store specific persistent type been registered?



registerExternalizedType
public void registerExternalizedType(Class t)(Code)
Register a type that is persisted using an externalizer.



registerStoreType
public void registerStoreType(Class type)(Code)
Register a store specific persistent type.



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.