Java Doc for XORM.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.XORM

XORM
public class XORM implements I15d(Code)
XORM helper class to instantiate objects and access XORM-specific features.


Field Summary
final public static  StringXORM_PROPERTIES
     The System property that the no-argument newPersistenceManagerFactory() method reads.


Method Summary
public static  voidclearCache(PersistenceManagerFactory factory)
     Clears all data from the factory-wide cache.
static  Objectcreate(InterfaceManagerFactory factory, Class clazz)
     Creates a new proxy object that implements the desired interface.
public static  ClassextractClass(Object objectId)
     Takes an object ID as returned by PersistenceManager.getObjectId() or JDOHelper.getObjectId() and returns the portion that refers to the class of the object.
public static  ObjectextractPrimaryKey(Object objectId)
     Takes an object ID as returned by PersistenceManager.getObjectId() or JDOHelper.getObjectId() and returns the portion that refers to the datastore primary key.
public static  intextractPrimaryKeyAsInt(Object objectId)
     Takes an object ID as returned by PersistenceManager.getObjectId() or JDOHelper.getObjectId() and returns the portion that refers to the datastore primary key.
public static  longextractPrimaryKeyAsLong(Object objectId)
     Takes an object ID as returned by PersistenceManager.getObjectId() or JDOHelper.getObjectId() and returns the portion that refers to the datastore primary key.
public static  DataSourcegetDataSource(PersistenceManagerFactory factory)
     Returns the data source in use by the PersistenceManagerFactory.
public static  FetchGroupManagergetFetchGroupManager(PersistenceManager mgr)
     Returns the FetchGroupManager associated with the given persistence manager.
public static  ModelMappinggetModelMapping(PersistenceManager mgr)
     Returns the ModelMapping associated with the given manager's factory.
public static  ModelMappinggetModelMapping(PersistenceManagerFactory factory)
     Returns the ModelMapping associated with the given factory.
public static  StringgetVersion()
    
public static  voidmain(String[] argv)
    
public static  ObjectnewInstance(PersistenceManager mgr, Class mappedClass)
     Creates a new instance managed by the given PersistenceManager and implementing the interface of the given interface class.
public static  ObjectnewInstance(PersistenceManagerFactory factory, Class mappedClass)
     Creates a new instance managed by the given PersistenceManager and implementing the interface of the given interface class.
public static  ObjectIdnewObjectId(Class mappedClass, int id)
     Creates an instance of a datastore identity that can be used in PersistenceManager.getObjectById().
public static  ObjectIdnewObjectId(Class mappedClass, long id)
     Creates an instance of a datastore identity that can be used in PersistenceManager.getObjectById().
public static  ObjectIdnewObjectId(Class mappedClass, Object id)
     Creates an instance of a datastore identity that can be used in PersistenceManager.getObjectById().
public static  PersistenceManagerFactorynewPersistenceManagerFactory()
     Construct a factory using the setting of the system property "xorm.properties" (the constant defined here as XORM_PROPERTIES) to reference a properties file.
public static  PersistenceManagerFactorynewPersistenceManagerFactory(ClassLoader loader)
     Construct a factory using the Java system property "xorm.properties" to find a properties file.
public static  PersistenceManagerFactorynewPersistenceManagerFactory(String propertiesFilename)
     Creates a PersistenceManagerFactory using the standard JDO properties.
public static  PersistenceManagerFactorynewPersistenceManagerFactory(String propertiesFilename, ClassLoader loader)
     Creates a PersistenceManagerFactory using the standard JDO properties and the specified ClassLoader.
public static  PersistenceManagerFactorynewPersistenceManagerFactory(InputStream propertiesInputStream)
     Creates a PersistenceManagerFactory using the standard JDO properties.
public static  PersistenceManagerFactorynewPersistenceManagerFactory(InputStream propertiesInputStream, ClassLoader loader)
     Creates a PersistenceManagerFactory using the standard JDO properties and the specified ClassLoader.
public static  PersistenceManagerFactorynewPersistenceManagerFactory(Properties properties)
     Creates a PersistenceManagerFactory using a passed in Properties object.
public static  PersistenceManagerFactorynewPersistenceManagerFactory(Properties properties, ClassLoader loader)
     Creates a PersistenceManagerFactory using a passed in Properties object and the specified ClassLoader.

Field Detail
XORM_PROPERTIES
final public static String XORM_PROPERTIES(Code)
The System property that the no-argument newPersistenceManagerFactory() method reads.





Method Detail
clearCache
public static void clearCache(PersistenceManagerFactory factory)(Code)
Clears all data from the factory-wide cache.



create
static Object create(InterfaceManagerFactory factory, Class clazz)(Code)
Creates a new proxy object that implements the desired interface. New instances are not automatically persistent and must be made so by calling mgr.makePersistent(Object).
exception:
  JDOUserException - if no mapping is found for the class



extractClass
public static Class extractClass(Object objectId)(Code)
Takes an object ID as returned by PersistenceManager.getObjectId() or JDOHelper.getObjectId() and returns the portion that refers to the class of the object. This is the inverse of the newObjectId() operation.



extractPrimaryKey
public static Object extractPrimaryKey(Object objectId)(Code)
Takes an object ID as returned by PersistenceManager.getObjectId() or JDOHelper.getObjectId() and returns the portion that refers to the datastore primary key. This is the inverse of the newObjectId() operation.



extractPrimaryKeyAsInt
public static int extractPrimaryKeyAsInt(Object objectId)(Code)
Takes an object ID as returned by PersistenceManager.getObjectId() or JDOHelper.getObjectId() and returns the portion that refers to the datastore primary key. This is the inverse of the newObjectId() operation.



extractPrimaryKeyAsLong
public static long extractPrimaryKeyAsLong(Object objectId)(Code)
Takes an object ID as returned by PersistenceManager.getObjectId() or JDOHelper.getObjectId() and returns the portion that refers to the datastore primary key. This is the inverse of the newObjectId() operation.



getDataSource
public static DataSource getDataSource(PersistenceManagerFactory factory)(Code)
Returns the data source in use by the PersistenceManagerFactory. This allows you to acquire native JDBC connections to use alongside JDO.



getFetchGroupManager
public static FetchGroupManager getFetchGroupManager(PersistenceManager mgr)(Code)
Returns the FetchGroupManager associated with the given persistence manager.



getModelMapping
public static ModelMapping getModelMapping(PersistenceManager mgr)(Code)
Returns the ModelMapping associated with the given manager's factory. Throws JDOFatalUserException if it is invoked on a non-XORM manager.



getModelMapping
public static ModelMapping getModelMapping(PersistenceManagerFactory factory)(Code)
Returns the ModelMapping associated with the given factory. Throws JDOFatalUserException if it is invoked on a non-XORM factory.



getVersion
public static String getVersion()(Code)



main
public static void main(String[] argv)(Code)



newInstance
public static Object newInstance(PersistenceManager mgr, Class mappedClass)(Code)
Creates a new instance managed by the given PersistenceManager and implementing the interface of the given interface class.



newInstance
public static Object newInstance(PersistenceManagerFactory factory, Class mappedClass)(Code)
Creates a new instance managed by the given PersistenceManager and implementing the interface of the given interface class.



newObjectId
public static ObjectId newObjectId(Class mappedClass, int id)(Code)
Creates an instance of a datastore identity that can be used in PersistenceManager.getObjectById().



newObjectId
public static ObjectId newObjectId(Class mappedClass, long id)(Code)
Creates an instance of a datastore identity that can be used in PersistenceManager.getObjectById().



newObjectId
public static ObjectId newObjectId(Class mappedClass, Object id)(Code)
Creates an instance of a datastore identity that can be used in PersistenceManager.getObjectById().



newPersistenceManagerFactory
public static PersistenceManagerFactory newPersistenceManagerFactory()(Code)
Construct a factory using the setting of the system property "xorm.properties" (the constant defined here as XORM_PROPERTIES) to reference a properties file. The current thread's ClassLoader is used.



newPersistenceManagerFactory
public static PersistenceManagerFactory newPersistenceManagerFactory(ClassLoader loader)(Code)
Construct a factory using the Java system property "xorm.properties" to find a properties file. It can refer to either a filename or a classpath resource.



newPersistenceManagerFactory
public static PersistenceManagerFactory newPersistenceManagerFactory(String propertiesFilename)(Code)
Creates a PersistenceManagerFactory using the standard JDO properties.



newPersistenceManagerFactory
public static PersistenceManagerFactory newPersistenceManagerFactory(String propertiesFilename, ClassLoader loader)(Code)
Creates a PersistenceManagerFactory using the standard JDO properties and the specified ClassLoader.



newPersistenceManagerFactory
public static PersistenceManagerFactory newPersistenceManagerFactory(InputStream propertiesInputStream)(Code)
Creates a PersistenceManagerFactory using the standard JDO properties.



newPersistenceManagerFactory
public static PersistenceManagerFactory newPersistenceManagerFactory(InputStream propertiesInputStream, ClassLoader loader)(Code)
Creates a PersistenceManagerFactory using the standard JDO properties and the specified ClassLoader.



newPersistenceManagerFactory
public static PersistenceManagerFactory newPersistenceManagerFactory(Properties properties)(Code)
Creates a PersistenceManagerFactory using a passed in Properties object.



newPersistenceManagerFactory
public static PersistenceManagerFactory newPersistenceManagerFactory(Properties properties, ClassLoader loader)(Code)
Creates a PersistenceManagerFactory using a passed in Properties object and the specified ClassLoader.



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.