Java Doc for OzoneInterface.java in  » Database-DBMS » Ozone-1.1 » org » ozoneDB » 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 DBMS » Ozone 1.1 » org.ozoneDB 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.ozoneDB.OzoneInterface

All known Subclasses:   org.ozoneDB.AbstractDatabase,  org.ozoneDB.Database,  org.ozoneDB.ExternalDatabase,
OzoneInterface
public interface OzoneInterface (Code)
Together with ExternalTransaction and OzoneCompatible this interface represents the basic API of the ozone database system.
author:
   SMB
author:
   Medium.net
version:
   $Revision: 1.3 $Date: 2002/06/08 00:49:38 $


Field Summary
final public static  intAllLock
     Object access right.
final public static  intAllRead
     Object access right.
final public static  intGroupLock
     Object access right.
final public static  intGroupRead
     Object access right.
final public static  intPrivate
     Object access right.
final public static  intPublic
     Object access right.


Method Summary
public  OzoneProxycopyObject(OzoneRemote rObj)
     Copy an object.
public  OzoneProxycreateObject(String className)
     Creates a database object of the specified class without a name and with default permissions.
Parameters:
  className - The fully qualified name of the class.
public  OzoneProxycreateObject(String className, int access)
     Creates a database object of the specified class without a name and with the specified access rights.
Parameters:
  className - The fully qualified name of the class.
Parameters:
  access - The access rights (ORed).
public  OzoneProxycreateObject(String className, int access, String objName)
     Creates a database object of the specified class with the specified name and the specified access rights.
Parameters:
  className - The fully qualified name of the class.
Parameters:
  access - The access right.
public  OzoneProxycreateObject(String className, int access, String objName, String sig, Object[] args)
     Creates an object by calling the constructor with the specified signature with the specified parameters.
public  OzoneProxycreateObject(String className, String sig, Object[] args)
     Creates an object by calling the constructor with the specified signature with the specified parameters and default permissions.
Parameters:
  className - fully qualified name of the class
Parameters:
  sig - The signature string of the constructor.
Parameters:
  args - The parameter that are passed to the constructor.
public  OzoneProxycreateObject(Class type)
     Creates a database object of the specified class without a name and with default permissions.
Parameters:
  type - the type of the object to be created A proxy object for the newly created object.
public  OzoneProxycreateObject(Class type, int access)
     Creates a database object of the specified class without a name and with the specified access rights.
Parameters:
  type - the type of the object to be created
Parameters:
  access - The access rights (ORed).
public  OzoneProxycreateObject(Class type, int access, String objName)
     Creates a database object of the specified class with the specified name and the specified access rights.
Parameters:
  type - the type of the object to be created
Parameters:
  access - The access right.
public  OzoneProxycreateObject(Class type, int access, String objName, String sig, Object[] args)
     Creates an object by calling the constructor with the specified signature with the specified parameters.
public  OzoneProxycreateObject(Class type, String sig, Object[] args)
     Creates an object by calling the constructor with the specified signature with the specified parameters and default permissions.
Parameters:
  type - the type of the object to be created
Parameters:
  sig - The signature string of the constructor.
Parameters:
  args - The parameter that are passed to the constructor.
public  voiddeleteObject(OzoneRemote rObj)
     Deletes the specified database object.
public  OzoneCompatiblefetch(OzoneProxy rObj, int lockLevel)
     Returns the actual target of the given proxy if the actual implementation is able to do so.
public  Objectinvoke(OzoneProxy rObj, String methodName, String sig, Object[] args, int lockLevel)
     Invokes a method on the specified object.
public  Objectinvoke(OzoneProxy rObj, int methodIndex, Object[] args, int lockLevel)
    
public  voidnameObject(OzoneRemote rObj, String name)
     Assigns the specified object with the specified name.
public  voidnotifyProxyDeath(OzoneProxy proxy)
     Internal method.
public  OzoneProxyobjectForHandle(String handle)
     Returns the object for the specified handle or null if there is no such object.
Parameters:
  The - handle of the object.
public  OzoneProxyobjectForName(String name)
     Returns the object for the specifies name or null if there is no such object.
Parameters:
  The - name name of the object.
public  OzoneProxy[]objectsOfClass(String name)
     Gives all objects of the specified class as array.
Parameters:
  name - {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem.
public  voidreloadClasses()
     Force the database server to reload all classes which extend OzoneObject.
public  NodexmlForObject(OzoneRemote rObj, Document domFactory)
     Convert the specified object into XML.
public  voidxmlForObject(OzoneRemote rObj, ContentHandler ch)
     Converts the specified object into XML.

Field Detail
AllLock
final public static int AllLock(Code)
Object access right.



AllRead
final public static int AllRead(Code)
Object access right.



GroupLock
final public static int GroupLock(Code)
Object access right.



GroupRead
final public static int GroupRead(Code)
Object access right.



Private
final public static int Private(Code)
Object access right.



Public
final public static int Public(Code)
Object access right. Combines AllRead and AllLock .





Method Detail
copyObject
public OzoneProxy copyObject(OzoneRemote rObj) throws Exception(Code)
Copy an object. The new objects gets its own object ID. The specified object is an instance of OzoneProxy which you may have created by createObject().
Parameters:
  rObj - proxy for the newly created object {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link Exception} To signal an implementation specific problem,such as IOException



createObject
public OzoneProxy createObject(String className) throws RuntimeException(Code)
Creates a database object of the specified class without a name and with default permissions.
Parameters:
  className - The fully qualified name of the class. A proxy object for the newly created object. {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link RuntimeException} To signal an implementation specific problem,such as IOException



createObject
public OzoneProxy createObject(String className, int access) throws RuntimeException(Code)
Creates a database object of the specified class without a name and with the specified access rights.
Parameters:
  className - The fully qualified name of the class.
Parameters:
  access - The access rights (ORed). proxy A proxy object for the newly created database object. {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link RuntimeException} To signal an implementation specific problem,such as IOException



createObject
public OzoneProxy createObject(String className, int access, String objName) throws RuntimeException(Code)
Creates a database object of the specified class with the specified name and the specified access rights.
Parameters:
  className - The fully qualified name of the class.
Parameters:
  access - The access right. (ORed)
Parameters:
  objName - The name of the object. (optional) A proxy object for the newly created object. {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link RuntimeException} To signal an implementation specific problem,such as IOException



createObject
public OzoneProxy createObject(String className, int access, String objName, String sig, Object[] args) throws RuntimeException(Code)
Creates an object by calling the constructor with the specified signature with the specified parameters. Generated proxy objects use this method.


Parameters:
  className - fully qualified name of the class
Parameters:
  access - access right (ORed)
Parameters:
  objName - name of the object (optional
Parameters:
  sig - The signature string of the constructor.
Parameters:
  args - The parameter that are passed to the constructor. proxy A OzoneProxy object for the newly created object. {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link RuntimeException} To signal an implementation specific problem,such as IOException




createObject
public OzoneProxy createObject(String className, String sig, Object[] args) throws RuntimeException(Code)
Creates an object by calling the constructor with the specified signature with the specified parameters and default permissions.
Parameters:
  className - fully qualified name of the class
Parameters:
  sig - The signature string of the constructor.
Parameters:
  args - The parameter that are passed to the constructor. proxy A OzoneProxy object for the newly created object. {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link RuntimeException} To signal an implementation specific problem,such as IOException



createObject
public OzoneProxy createObject(Class type) throws RuntimeException(Code)
Creates a database object of the specified class without a name and with default permissions.
Parameters:
  type - the type of the object to be created A proxy object for the newly created object. {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link RuntimeException} To signal an implementation specific problem,such as IOException



createObject
public OzoneProxy createObject(Class type, int access) throws RuntimeException(Code)
Creates a database object of the specified class without a name and with the specified access rights.
Parameters:
  type - the type of the object to be created
Parameters:
  access - The access rights (ORed). proxy A proxy object for the newly created database object. {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link RuntimeException} To signal an implementation specific problem,such as IOException



createObject
public OzoneProxy createObject(Class type, int access, String objName) throws RuntimeException(Code)
Creates a database object of the specified class with the specified name and the specified access rights.
Parameters:
  type - the type of the object to be created
Parameters:
  access - The access right. (ORed)
Parameters:
  objName - The name of the object. (optional) A proxy object for the newly created object. {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link RuntimeException} To signal an implementation specific problem,such as IOException



createObject
public OzoneProxy createObject(Class type, int access, String objName, String sig, Object[] args) throws RuntimeException(Code)
Creates an object by calling the constructor with the specified signature with the specified parameters. Generated proxy objects use this method.


Parameters:
  type - the type of the object to be created
Parameters:
  access - access right (ORed)
Parameters:
  objName - name of the object (optional
Parameters:
  sig - The signature string of the constructor.
Parameters:
  args - The parameter that are passed to the constructor. proxy A OzoneProxy object for the newly created object. {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link RuntimeException} To signal an implementation specific problem,such as IOException




createObject
public OzoneProxy createObject(Class type, String sig, Object[] args) throws RuntimeException(Code)
Creates an object by calling the constructor with the specified signature with the specified parameters and default permissions.
Parameters:
  type - the type of the object to be created
Parameters:
  sig - The signature string of the constructor.
Parameters:
  args - The parameter that are passed to the constructor. proxy A OzoneProxy object for the newly created object. {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link RuntimeException} To signal an implementation specific problem,such as IOException



deleteObject
public void deleteObject(OzoneRemote rObj) throws RuntimeException(Code)
Deletes the specified database object. The specified object is an instance of OzoneProxy which you may have created by createObject().
Parameters:
  rObj - {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link RuntimeException} To signal an implementation specific problem,such as IOException



fetch
public OzoneCompatible fetch(OzoneProxy rObj, int lockLevel) throws Exception(Code)
Returns the actual target of the given proxy if the actual implementation is able to do so. A client will never call this method explicitly.



invoke
public Object invoke(OzoneProxy rObj, String methodName, String sig, Object[] args, int lockLevel) throws Exception(Code)
Invokes a method on the specified object. This method is called by proxy objects to route the call to the corresponding database object. A client will never call this method explicitly.
Parameters:
  rObj - OzoneProxy on which to call the method
Parameters:
  methodName -
Parameters:
  sig - signature of the method as String
Parameters:
  args - array of arguments
Parameters:
  update - specifies wether this method changes the state of the object regular object or proxy {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link Exception} To signal an implementation specific problem,such as IOException



invoke
public Object invoke(OzoneProxy rObj, int methodIndex, Object[] args, int lockLevel) throws Exception(Code)



nameObject
public void nameObject(OzoneRemote rObj, String name) throws Exception(Code)
Assigns the specified object with the specified name. This can also be done at object creation time. The specified object is an instance of OzoneProxy which you may have created by createObject().
Parameters:
  rObj -
Parameters:
  name - {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link Exception} To signal an implementation specific problem,such as IOException



notifyProxyDeath
public void notifyProxyDeath(OzoneProxy proxy)(Code)
Internal method. This method is called by OzoneProxy s when they are dying (during finalize()). This is required, as the database may track the references the database client has to objects within the database in order to properly support garbage collection. If this method is called from anyone else than from the OzoneProxy .finalize()-Method, data loss may occur!
Parameters:
  proxy - the OzoneProxy object which is dying. It may call this method exaclty once.



objectForHandle
public OzoneProxy objectForHandle(String handle) throws Exception(Code)
Returns the object for the specified handle or null if there is no such object.
Parameters:
  The - handle of the object. A proxy object for the found object or null. {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link Exception} To signal an implementation specific problem,such as IOException



objectForName
public OzoneProxy objectForName(String name) throws Exception(Code)
Returns the object for the specifies name or null if there is no such object.
Parameters:
  The - name name of the object. A proxy object for the found object or null. {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link Exception} To signal an implementation specific problem,such as IOException



objectsOfClass
public OzoneProxy[] objectsOfClass(String name) throws Exception(Code)
Gives all objects of the specified class as array.
Parameters:
  name - {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link Exception} To signal an implementation specific problem,such as IOException



reloadClasses
public void reloadClasses() throws Exception(Code)
Force the database server to reload all classes which extend OzoneObject. This is particularly useful while testing new classes. {@link OzoneRemoteExc} (or one of its sub-classes) to signal aozone related problem. {@link Exception} To signal an implementation specific problem,such as IOException



xmlForObject
public Node xmlForObject(OzoneRemote rObj, Document domFactory) throws Exception(Code)
Convert the specified object into XML. This method returns the generated XML data as DOM tree. For performance reasons you should try to use OzoneInterface.xmlForObject(OzoneRemote,ContentHandler) , which returns SAX events, instead of DOM. See the doc directory of ozone for a detailed description (XML Schema) of the XML output of this method.
Parameters:
  rObj - The database object to be converted.
Parameters:
  factory - The factory for creating DOM nodes.



xmlForObject
public void xmlForObject(OzoneRemote rObj, ContentHandler ch) throws Exception(Code)
Converts the specified object into XML. This method returns the generated XML data as SAX events. See the doc directory of ozone for a detailed description (XML Schema) of the XML output of this method.
Parameters:
  rObj - The database object to be converted.
Parameters:
  ch - The SAX ContentHandler to which the result is sent.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.