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


java.lang.Object
   org.xorm.ObjectState
      org.xorm.InterfaceInvocationHandler

InterfaceInvocationHandler
public class InterfaceInvocationHandler extends ObjectState implements MethodInterceptor(Code)
Handles calls to an interface of the object model. The interface may be defined as a Java interface or a Java abstract class. This class ties the notion of an object with state (ObjectState) with the concept of the XORM Datastore Row.



Constructor Summary
public  InterfaceInvocationHandler(InterfaceManagerFactory factory, ClassMapping mapping, Row row)
    

Method Summary
public  intcompareTo(InterfaceInvocationHandler other)
    
public  booleandependsOn(InterfaceInvocationHandler other)
     Returns true if any of the references from this object resolve to the object supplied as a parameter.
public  voidenterTransaction(TransactionImpl txn)
     This is the only method where the txn field gets set. All reachable collection references become transactional under the same transaction.
public  booleanexitTransaction(boolean commit)
    
public  ClassMappinggetClassMapping()
     The ClassMapping that describes how the proxy data translates into the datastore Row.
 InterfaceManagerFactorygetFactory()
     Accessor for persistence manager factory.
public static  InterfaceInvocationHandlergetHandler(Object object)
     Gets the InterfaceInvocationHandler associated with the object.
public  InterfaceManagergetInterfaceManager()
     The InterfaceManager that is managing this proxy.
public  ObjectgetObjectId()
    
public  RowgetRow()
     Initializes or retrieves the working Row.
public  Objectintercept(Object proxy, Method method, Object[] args, MethodProxy methodProxy)
     This method is invoked after execution, or in the case of abstract or interface methods, instead of.
public  ObjectinvokeGet(String field, ClassMapping returnTypeMapping, Class returnType)
     Returns the object associated with the given field that is of the given return type.
public  voidmakeDirty()
    
public  voidmakePersistent(InterfaceManager mgr)
     Marks this object and all the objects it contains as persistent (persistence by reachability).
 voidmakeTransactional(InterfaceManager mgr)
    
 ObjectnewProxy()
     Constructs a new proxy instance for the specified interface.
public  voidnotifyIDChanged(Object oldID, Object newID)
    
public  voidrefresh(InterfaceManager mgr)
    
public  voidrefreshObjectId()
    
 voidresetRow(Row row)
     Called during a refresh operation.
public  voidsetRow(Row newRow)
     Sets the working Row.
public  voidsnapshot()
     Clones the current backing row for use in case of rollback.
public  StringtoString()
    


Constructor Detail
InterfaceInvocationHandler
public InterfaceInvocationHandler(InterfaceManagerFactory factory, ClassMapping mapping, Row row)(Code)




Method Detail
compareTo
public int compareTo(InterfaceInvocationHandler other)(Code)



dependsOn
public boolean dependsOn(InterfaceInvocationHandler other)(Code)
Returns true if any of the references from this object resolve to the object supplied as a parameter.



enterTransaction
public void enterTransaction(TransactionImpl txn)(Code)
This is the only method where the txn field gets set. All reachable collection references become transactional under the same transaction. Additionally, persistent-non-transactional objects become persistent-clean.



exitTransaction
public boolean exitTransaction(boolean commit)(Code)
true if the handler should be detached from the transaction.



getClassMapping
public ClassMapping getClassMapping()(Code)
The ClassMapping that describes how the proxy data translates into the datastore Row.



getFactory
InterfaceManagerFactory getFactory()(Code)
Accessor for persistence manager factory.



getHandler
public static InterfaceInvocationHandler getHandler(Object object)(Code)
Gets the InterfaceInvocationHandler associated with the object.



getInterfaceManager
public InterfaceManager getInterfaceManager()(Code)
The InterfaceManager that is managing this proxy.



getObjectId
public Object getObjectId()(Code)



getRow
public Row getRow()(Code)
Initializes or retrieves the working Row.



intercept
public Object intercept(Object proxy, Method method, Object[] args, MethodProxy methodProxy) throws Throwable(Code)
This method is invoked after execution, or in the case of abstract or interface methods, instead of.
Parameters:
  proxy - this
Parameters:
  method - Method
Parameters:
  args - Arg array
Parameters:
  methodProxy - the MethodProxy
throws:
  Throwable - any exception value to return from generated method



invokeGet
public Object invokeGet(String field, ClassMapping returnTypeMapping, Class returnType)(Code)
Returns the object associated with the given field that is of the given return type.



makeDirty
public void makeDirty()(Code)



makePersistent
public void makePersistent(InterfaceManager mgr)(Code)
Marks this object and all the objects it contains as persistent (persistence by reachability). Any newly persistent objects will be inserted into the database when the transaction is committed.



makeTransactional
void makeTransactional(InterfaceManager mgr)(Code)
Called only from InterfaceManager.makeTransactional(obj)



newProxy
Object newProxy()(Code)
Constructs a new proxy instance for the specified interface. The proxy will implement or extend the specified class and also implement javax.jdo.spi.PersistenceCapable.



notifyIDChanged
public void notifyIDChanged(Object oldID, Object newID)(Code)



refresh
public void refresh(InterfaceManager mgr)(Code)



refreshObjectId
public void refreshObjectId()(Code)



resetRow
void resetRow(Row row)(Code)
Called during a refresh operation.



setRow
public void setRow(Row newRow)(Code)
Sets the working Row.



snapshot
public void snapshot()(Code)
Clones the current backing row for use in case of rollback.



toString
public String toString()(Code)
Returns a debug representation of this handler, in the format [org.xorm.InterfaceInvocationHandler@xxxxxx; interface com.xyz.model.MyClass, primaryKey: {id}, status: PERSISTENT_CLEAN]



Fields inherited from org.xorm.ObjectState
final public static byte STATUS_DELETED(Code)(Java Doc)
final public static byte STATUS_DIRTY(Code)(Java Doc)
final public static byte STATUS_HOLLOW(Code)(Java Doc)
final public static byte STATUS_NEW(Code)(Java Doc)
final public static byte STATUS_PERSISTENT(Code)(Java Doc)
final public static byte STATUS_PERSISTENT_CLEAN(Code)(Java Doc)
final public static byte STATUS_PERSISTENT_DELETED(Code)(Java Doc)
final public static byte STATUS_PERSISTENT_DIRTY(Code)(Java Doc)
final public static byte STATUS_PERSISTENT_NEW(Code)(Java Doc)
final public static byte STATUS_PERSISTENT_NEW_DELETED(Code)(Java Doc)
final public static byte STATUS_PERSISTENT_NONTRANSACTIONAL(Code)(Java Doc)
final public static byte STATUS_TRANSACTIONAL(Code)(Java Doc)
final public static byte STATUS_TRANSIENT(Code)(Java Doc)
final public static byte STATUS_TRANSIENT_CLEAN(Code)(Java Doc)
final public static byte STATUS_TRANSIENT_DIRTY(Code)(Java Doc)
protected Object proxy(Code)(Java Doc)
protected byte status(Code)(Java Doc)

Methods inherited from org.xorm.ObjectState
static Object defaultValue(Class type)(Code)(Java Doc)
public Object getProxy()(Code)(Java Doc)
public byte getStatus()(Code)(Java Doc)
final public String getStatusName()(Code)(Java Doc)
public boolean isDeleted()(Code)(Java Doc)
public boolean isDirty()(Code)(Java Doc)
public boolean isHollow()(Code)(Java Doc)
public boolean isNew()(Code)(Java Doc)
public boolean isPersistent()(Code)(Java Doc)
public boolean isTransactional()(Code)(Java Doc)
public void setDeleted(boolean value)(Code)(Java Doc)
public void setDirty(boolean value)(Code)(Java Doc)
public void setHollow(boolean value)(Code)(Java Doc)
public void setNew(boolean value)(Code)(Java Doc)
public void setPersistent(boolean value)(Code)(Java Doc)
public void setProxy(Object proxy)(Code)(Java Doc)
public void setStatus(byte status)(Code)(Java Doc)
public void setTransactional(boolean value)(Code)(Java Doc)

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.