public class Blob extends BlobPOA implements Blob, AvalonDestroyable
Modifier and Type | Field and Description |
---|---|
protected AoSession |
aosObj |
protected long |
cObjPtr |
protected static java.util.HashMap<java.lang.Long,org.omg.CORBA.Object> |
refCache |
Modifier and Type | Method and Description |
---|---|
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result) |
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList exclist,
org.omg.CORBA.ContextList ctxlist) |
org.omg.CORBA.Object |
_duplicate() |
org.omg.CORBA.DomainManager[] |
_get_domain_managers() |
org.omg.CORBA.Policy |
_get_policy(int policy_type) |
int |
_hash(int maximum) |
boolean |
_is_equivalent(org.omg.CORBA.Object other) |
void |
_release() |
org.omg.CORBA.Request |
_request(java.lang.String operation) |
org.omg.CORBA.Object |
_set_policy_override(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add) |
void |
append(byte[] value)
Append a byte sequence to the binary large object.
|
boolean |
compare(Blob aBlob)
Compares the content of the binary large object.
|
void |
destroy()
Destroy the object on the server.
|
protected void |
finalize() |
byte[] |
get(int offset,
int length)
Get a part of the binary large object.
|
java.lang.String |
getHeader()
Get the header of the binary large object.
|
static org.omg.CORBA.Object |
getInstance(long cObjPtr,
AoSession aosObj) |
static org.omg.CORBA.Object |
getInstance(long cObjPtr,
int sessionId) |
int |
getLength()
Get the length of the binary large object without loading it.
|
long |
lastAccessTime()
Returns the time stamp of the last access in milliseconds.
|
void |
nativeAppend(byte[] value,
AoSession aosObj) |
byte[] |
nativeGet(int offset,
int length,
AoSession aosObj) |
java.lang.String |
nativeGetHeader(AoSession aosObj) |
int |
nativeGetLength(AoSession aosObj) |
void |
nativeSet(byte[] value,
AoSession aosObj) |
void |
nativeSetHeader(java.lang.String header,
AoSession aosObj) |
void |
set(byte[] value)
Clear the binary large object and set the new data.
|
void |
setHeader(java.lang.String header)
Set the header of a binary large object.
|
void |
touch()
Touches this instances reseting last access and reseting the session
not-used flag.
|
_all_interfaces, _invoke, _this, _this
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
protected static java.util.HashMap<java.lang.Long,org.omg.CORBA.Object> refCache
protected long cObjPtr
protected AoSession aosObj
public static org.omg.CORBA.Object getInstance(long cObjPtr, int sessionId)
public static org.omg.CORBA.Object getInstance(long cObjPtr, AoSession aosObj)
public void append(byte[] value) throws AoException
append
in interface BlobOperations
value
- The byte sequence.AoException
- with the following possible error codes: AO_BAD_PARAMETER
AO_CONNECTION_LOST AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED AO_NO_MEMORY AO_SESSION_NOT_ACTIVEpublic void nativeAppend(byte[] value, AoSession aosObj) throws AoException
AoException
public boolean compare(Blob aBlob) throws AoException
compare
in interface BlobOperations
aBlob
- The blob to compare.AoException
- with the following possible error codes: AO_BAD_PARAMETER
AO_CONNECTION_LOST AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED AO_NO_MEMORY AO_SESSION_NOT_ACTIVEpublic byte[] get(int offset, int length) throws AoException
get
in interface BlobOperations
offset
- The starting position of the data in the blob.length
- The number of bytes requested from the blob.AoException
- with the following possible error codes: AO_BAD_PARAMETER
AO_CONNECTION_LOST AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED AO_NO_MEMORY AO_SESSION_NOT_ACTIVEpublic byte[] nativeGet(int offset, int length, AoSession aosObj) throws AoException
AoException
public java.lang.String getHeader() throws AoException
getHeader
in interface BlobOperations
AoException
- with the following possible error codes: AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM AO_NOT_IMPLEMENTED AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic java.lang.String nativeGetHeader(AoSession aosObj) throws AoException
AoException
public int getLength() throws AoException
getLength
in interface BlobOperations
AoException
- with the following possible error codes: AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM AO_NOT_IMPLEMENTED AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic int nativeGetLength(AoSession aosObj) throws AoException
AoException
public void set(byte[] value) throws AoException
set
in interface BlobOperations
value
- The new blob data.AoException
- with the following possible error codes: AO_BAD_PARAMETER
AO_CONNECTION_LOST AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED AO_NO_MEMORY AO_SESSION_NOT_ACTIVEpublic void nativeSet(byte[] value, AoSession aosObj) throws AoException
AoException
public void setHeader(java.lang.String header) throws AoException
setHeader
in interface BlobOperations
header
- The blob header.AoException
- with the following possible error codes: AO_BAD_PARAMETER
AO_CONNECTION_LOST AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED AO_NO_MEMORY AO_SESSION_NOT_ACTIVEpublic void nativeSetHeader(java.lang.String header, AoSession aosObj) throws AoException
AoException
public void destroy() throws AoException
destroy
in interface AvalonDestroyable
destroy
in interface BlobOperations
AoException
- with the following possible error codes: AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM AO_NOT_IMPLEMENTED AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEprotected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx, java.lang.String operation, org.omg.CORBA.NVList arg_list, org.omg.CORBA.NamedValue result)
_create_request
in interface org.omg.CORBA.Object
public org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx, java.lang.String operation, org.omg.CORBA.NVList arg_list, org.omg.CORBA.NamedValue result, org.omg.CORBA.ExceptionList exclist, org.omg.CORBA.ContextList ctxlist)
_create_request
in interface org.omg.CORBA.Object
public org.omg.CORBA.Object _duplicate()
_duplicate
in interface org.omg.CORBA.Object
public org.omg.CORBA.DomainManager[] _get_domain_managers()
_get_domain_managers
in interface org.omg.CORBA.Object
public org.omg.CORBA.Policy _get_policy(int policy_type)
_get_policy
in interface org.omg.CORBA.Object
public int _hash(int maximum)
_hash
in interface org.omg.CORBA.Object
public boolean _is_equivalent(org.omg.CORBA.Object other)
_is_equivalent
in interface org.omg.CORBA.Object
public void _release()
_release
in interface org.omg.CORBA.Object
public org.omg.CORBA.Request _request(java.lang.String operation)
_request
in interface org.omg.CORBA.Object
public org.omg.CORBA.Object _set_policy_override(org.omg.CORBA.Policy[] policies, org.omg.CORBA.SetOverrideType set_add)
_set_policy_override
in interface org.omg.CORBA.Object
public long lastAccessTime()
AvalonDestroyable
lastAccessTime
in interface AvalonDestroyable
public void touch() throws AoException
touch
in interface AvalonDestroyable
AoException