Java Doc for ClassTracker.java in  » Database-ORM » beankeeper » hu » netmind » persistence » 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 » beankeeper » hu.netmind.persistence 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   hu.netmind.persistence.ClassTracker

ClassTracker
public class ClassTracker implements TransactionListener(Code)
This class keeps track of different classes and objects. It's main purpose is to implement object reflection based logic, and provide type information.
author:
   Brautigam Robert
version:
   Revision: $Revision$


Field Summary
final public static  intTYPE_HANDLED
    
final public static  intTYPE_JAVA
    
final public static  intTYPE_NONE
    
final public static  intTYPE_OBJECT
    
final public static  intTYPE_PRIMITIVE
    
final public static  intTYPE_RESERVED
    

Constructor Summary
public  ClassTracker(StoreContext context)
    

Method Summary
public  ClassInfogetClassInfo(ClassEntry entry)
     Get class info for a class entry.
public  ClassInfogetClassInfo(Class clazz, Object obj)
     Get class info for an object and it's class.
public  ClassInfogetClassInfo(String className, String dynamicName)
     Get class info from a string.
public  ClassInfogetClassInfo(Class clazz, String dynamicName)
     Get class information object of given class.
public  ClassInfogetMatchingClassInfo(String postfix)
     Get a Class instance for a class name postfix.
public  ListgetRelatedClassEntries(ClassEntry entry)
     Get all related classes to the given entry.
public  ListgetStorableRootClassEntries(ClassEntry entry)
     Get all storable roots for given entry.
public  ListgetSubClasses(ClassEntry entry)
     Get all subclasses of given entry, including itself.
public  ClassInfogetTableClassInfo(String tableName)
     Get the class info for a given table name.
public  intgetType(Class clazz)
     Get the type id of given class.
public  booleanisDynamicCanidate(Class clazz)
     Return whether given class can be dynamic.
public static  booleanisPrimitive(Class clazz)
     Return whether the given class is a primitive type.
public  voidtransactionCommited(Transaction transaction)
     Activate table names added in the transaction.
public  voidtransactionRolledback(Transaction transaction)
     Discard table names added in the transaction.

Field Detail
TYPE_HANDLED
final public static int TYPE_HANDLED(Code)



TYPE_JAVA
final public static int TYPE_JAVA(Code)



TYPE_NONE
final public static int TYPE_NONE(Code)



TYPE_OBJECT
final public static int TYPE_OBJECT(Code)



TYPE_PRIMITIVE
final public static int TYPE_PRIMITIVE(Code)



TYPE_RESERVED
final public static int TYPE_RESERVED(Code)




Constructor Detail
ClassTracker
public ClassTracker(StoreContext context)(Code)




Method Detail
getClassInfo
public ClassInfo getClassInfo(ClassEntry entry)(Code)
Get class info for a class entry.



getClassInfo
public ClassInfo getClassInfo(Class clazz, Object obj)(Code)
Get class info for an object and it's class.



getClassInfo
public ClassInfo getClassInfo(String className, String dynamicName)(Code)
Get class info from a string.



getClassInfo
public ClassInfo getClassInfo(Class clazz, String dynamicName)(Code)
Get class information object of given class. Also, if class information does not exist, it will be created.



getMatchingClassInfo
public ClassInfo getMatchingClassInfo(String postfix)(Code)
Get a Class instance for a class name postfix. The given parameter is treated as a postfix for a fully qualified class name. The postfix is considered matching, when it contains whole class of package qualifiers. For example: "book" matches "hu.netmind.persistence.Book" class, but does not match "hu.netmind.persistence.CookBook". Also "persistence.book" matches "hu.netmind.persistence.Book", but "tence.book" does not match to previous class.
If no classes are found null is returned. If more than one matching class is present, then one of them is returned (no guarantees which one is picked).
Parameters:
  postfix - The class name postfix. The class info for which the postfix applies, or null.



getRelatedClassEntries
public List getRelatedClassEntries(ClassEntry entry)(Code)
Get all related classes to the given entry. Related class entries are all given class' super- and sub-classes which are all storable. Calling this method on non-storable entry will result in an undefined result.



getStorableRootClassEntries
public List getStorableRootClassEntries(ClassEntry entry)(Code)
Get all storable roots for given entry. A storable root for a storable entry is itself. A non-storable entry (such as java.lang.Object) will have potentially a lot of storable roots: All classes in the class hierarchy which are storable, but have non-storable superclasses. So, storable roots are the first storable entry in a class hierarchy path (roots of the storable sub-forest). When a query is received for a non-stored class, the query will split into queries for all storable roots.



getSubClasses
public List getSubClasses(ClassEntry entry)(Code)
Get all subclasses of given entry, including itself.



getTableClassInfo
public ClassInfo getTableClassInfo(String tableName)(Code)
Get the class info for a given table name.



getType
public int getType(Class clazz)(Code)
Get the type id of given class.



isDynamicCanidate
public boolean isDynamicCanidate(Class clazz)(Code)
Return whether given class can be dynamic.



isPrimitive
public static boolean isPrimitive(Class clazz)(Code)
Return whether the given class is a primitive type.



transactionCommited
public void transactionCommited(Transaction transaction)(Code)
Activate table names added in the transaction.



transactionRolledback
public void transactionRolledback(Transaction transaction)(Code)
Discard table names added in the transaction.



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.