|
ozone API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Together with ExternalTransaction
and OzoneCompatible
this
interface represents the basic API of the ozone database system.
Field Summary | |
static int |
AllLock
Object access right. |
static int |
AllRead
Object access right. |
static int |
GroupLock
Object access right. |
static int |
GroupRead
Object access right. |
static int |
Private
Object access right. |
static int |
Public
Object access right. |
Method Summary | |
OzoneProxy |
copyObject(OzoneRemote rObj)
Copy an object. |
OzoneProxy |
createObject(java.lang.Class type)
Creates a database object of the specified class without a name and with default permissions. |
OzoneProxy |
createObject(java.lang.Class type,
int access)
Creates a database object of the specified class without a name and with the specified access rights. |
OzoneProxy |
createObject(java.lang.Class type,
int access,
java.lang.String objName)
Creates a database object of the specified class with the specified name and the specified access rights. |
OzoneProxy |
createObject(java.lang.Class type,
int access,
java.lang.String objName,
java.lang.String sig,
java.lang.Object[] args)
Creates an object by calling the constructor with the specified signature with the specified parameters. |
OzoneProxy |
createObject(java.lang.Class type,
java.lang.String sig,
java.lang.Object[] args)
Creates an object by calling the constructor with the specified signature with the specified parameters and default permissions. |
OzoneProxy |
createObject(java.lang.String className)
Creates a database object of the specified class without a name and with default permissions. |
OzoneProxy |
createObject(java.lang.String className,
int access)
Creates a database object of the specified class without a name and with the specified access rights. |
OzoneProxy |
createObject(java.lang.String className,
int access,
java.lang.String objName)
Creates a database object of the specified class with the specified name and the specified access rights. |
OzoneProxy |
createObject(java.lang.String className,
int access,
java.lang.String objName,
java.lang.String sig,
java.lang.Object[] args)
Creates an object by calling the constructor with the specified signature with the specified parameters. |
OzoneProxy |
createObject(java.lang.String className,
java.lang.String sig,
java.lang.Object[] args)
Creates an object by calling the constructor with the specified signature with the specified parameters and default permissions. |
void |
deleteObject(OzoneRemote rObj)
Deletes the specified database object. |
OzoneCompatible |
fetch(OzoneProxy rObj,
int lockLevel)
Returns the actual target of the given proxy if the actual implementation is able to do so. |
java.lang.Object |
invoke(OzoneProxy rObj,
int methodIndex,
java.lang.Object[] args,
int lockLevel)
|
java.lang.Object |
invoke(OzoneProxy rObj,
java.lang.String methodName,
java.lang.String sig,
java.lang.Object[] args,
int lockLevel)
Invokes a method on the specified object. |
void |
nameObject(OzoneRemote rObj,
java.lang.String name)
Assigns the specified object with the specified name. |
void |
notifyProxyDeath(OzoneProxy proxy)
Internal method. |
OzoneProxy |
objectForHandle(java.lang.String handle)
Returns the object for the specified handle or null if there is no such object. |
OzoneProxy |
objectForName(java.lang.String name)
Returns the object for the specifies name or null if there is no such object. |
OzoneProxy[] |
objectsOfClass(java.lang.String name)
Gives all objects of the specified class as array. |
void |
reloadClasses()
Force the database server to reload all classes which extend OzoneObject. |
void |
xmlForObject(OzoneRemote rObj,
org.xml.sax.ContentHandler ch)
Converts the specified object into XML. |
org.w3c.dom.Node |
xmlForObject(OzoneRemote rObj,
org.w3c.dom.Document domFactory)
Convert the specified object into XML. |
Field Detail |
public static final int Private
public static final int AllRead
public static final int AllLock
public static final int GroupRead
public static final int GroupLock
public static final int Public
AllRead
and AllLock
.
Method Detail |
public OzoneProxy createObject(java.lang.String className) throws java.lang.RuntimeException
className
- The fully qualified name of the class.
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.RuntimeException
public OzoneProxy createObject(java.lang.String className, int access) throws java.lang.RuntimeException
className
- The fully qualified name of the class.access
- The access rights (ORed).
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.RuntimeException
public OzoneProxy createObject(java.lang.String className, int access, java.lang.String objName) throws java.lang.RuntimeException
className
- The fully qualified name of the class.access
- The access right. (ORed)objName
- The name of the object. (optional)
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.RuntimeException
public OzoneProxy createObject(java.lang.String className, int access, java.lang.String objName, java.lang.String sig, java.lang.Object[] args) throws java.lang.RuntimeException
className
- fully qualified name of the classaccess
- access right (ORed)objName
- name of the object (optionalsig
- The signature string of the constructor.args
- The parameter that are passed to the constructor.
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.RuntimeException
public OzoneProxy createObject(java.lang.String className, java.lang.String sig, java.lang.Object[] args) throws java.lang.RuntimeException
className
- fully qualified name of the classsig
- The signature string of the constructor.args
- The parameter that are passed to the constructor.
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.RuntimeException
public OzoneProxy createObject(java.lang.Class type) throws java.lang.RuntimeException
type
- the type of the object to be created
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.RuntimeException
public OzoneProxy createObject(java.lang.Class type, int access) throws java.lang.RuntimeException
type
- the type of the object to be createdaccess
- The access rights (ORed).
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.RuntimeException
public OzoneProxy createObject(java.lang.Class type, int access, java.lang.String objName) throws java.lang.RuntimeException
type
- the type of the object to be createdaccess
- The access right. (ORed)objName
- The name of the object. (optional)
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.RuntimeException
public OzoneProxy createObject(java.lang.Class type, int access, java.lang.String objName, java.lang.String sig, java.lang.Object[] args) throws java.lang.RuntimeException
type
- the type of the object to be createdaccess
- access right (ORed)objName
- name of the object (optionalsig
- The signature string of the constructor.args
- The parameter that are passed to the constructor.
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.RuntimeException
public OzoneProxy createObject(java.lang.Class type, java.lang.String sig, java.lang.Object[] args) throws java.lang.RuntimeException
type
- the type of the object to be createdsig
- The signature string of the constructor.args
- The parameter that are passed to the constructor.
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.RuntimeException
public OzoneProxy copyObject(OzoneRemote rObj) throws java.lang.Exception
rObj
-
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.Exception
public void deleteObject(OzoneRemote rObj) throws java.lang.RuntimeException
rObj
-
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.RuntimeException
public void nameObject(OzoneRemote rObj, java.lang.String name) throws java.lang.Exception
rObj
- name
-
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.Exception
public OzoneProxy objectForName(java.lang.String name) throws java.lang.Exception
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.Exception
public OzoneProxy objectForHandle(java.lang.String handle) throws java.lang.Exception
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.Exception
public OzoneProxy[] objectsOfClass(java.lang.String name) throws java.lang.Exception
name
-
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.Exception
public java.lang.Object invoke(OzoneProxy rObj, java.lang.String methodName, java.lang.String sig, java.lang.Object[] args, int lockLevel) throws java.lang.Exception
rObj
- OzoneProxy on which to call the methodmethodName
- sig
- signature of the method as Stringargs
- array of arguments
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.Exception
public java.lang.Object invoke(OzoneProxy rObj, int methodIndex, java.lang.Object[] args, int lockLevel) throws java.lang.Exception
java.lang.Exception
public OzoneCompatible fetch(OzoneProxy rObj, int lockLevel) throws java.lang.Exception
java.lang.Exception
public void reloadClasses() throws java.lang.Exception
{@link
- OzoneRemoteExc} (or one of its sub-classes) to signal a
ozone related problem.
java.lang.Exception
public org.w3c.dom.Node xmlForObject(OzoneRemote rObj, org.w3c.dom.Document domFactory) throws java.lang.Exception
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.
rObj
- The database object to be converted.
java.lang.Exception
public void xmlForObject(OzoneRemote rObj, org.xml.sax.ContentHandler ch) throws java.lang.Exception
rObj
- The database object to be converted.ch
- The SAX ContentHandler to which the result is sent.
java.lang.Exception
public void notifyProxyDeath(OzoneProxy proxy)
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!
proxy
- the OzoneProxy object which is dying. It may call this method exaclty once.
|
ozone API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |