|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intersys.classes.CacheGeneric
com.intersys.classes.CacheRootObject
com.intersys.classes.RegisteredObject
com.intersys.classes.Persistent
This class is a superclass for all Persistent objects in Cache database. It is not a generated class.
Constructor Summary | |
Persistent(com.intersys.cache.CacheObject ref)
|
Method Summary | |
static void |
_buildIndices(Database db)
Runs method _buildIndices in Cache |
static void |
_buildIndices(Database db,
SList idxlist)
Runs method _buildIndices in Cache |
static void |
_delete(Database db,
Oid oid)
Permanently destroys object in database. |
static void |
_delete(Database db,
Oid oid,
Integer concurrency)
|
void |
_downgradeConcurrency(int concurrency)
Runs method _downgradeConcurrency in Cache |
void |
_downgradeConcurrency(Integer concurrency)
Runs method _downgradeConcurrency in Cache |
static Boolean |
_exists(Database db,
Oid oid)
|
Id |
_id()
The same as method getId() but with conventional Cache signature. |
Oid |
_oid()
The same as method getOid() but with conventional Cache signature. |
static RegisteredObject |
_open(Database db,
Oid oid)
Runs method %Open in Cache to open an object
from Cache database and creates corresponding object of class
Persistent or its subclass. |
static RegisteredObject |
_open(Database db,
Oid oid,
int concurrency)
Runs method %Open in Cache to open an object
from Cache database and creates corresponding object of class
Persistent or its subclass. |
void |
_reload()
Runs method _reload in Cache |
int |
_save()
The same as save . |
void |
_upgradeConcurrency(int concurrency)
Runs method _upgradeConcurrency in Cache |
void |
_upgradeConcurrency(Integer concurrency)
Runs method _upgradeConcurrency in Cache |
void |
delete()
Permanently destroys object in database. |
static void |
delete(Database db,
Oid oid)
Permanently destroys object in database. |
static boolean |
exists(Database db,
Oid oid)
The same as _exists. |
static String |
getCacheClassName()
|
Id |
getId()
Returns Id of object (without class name). |
Oid |
getOid()
Returns an object identity of this object. |
Integer |
JournalObject(Integer tranid)
Runs method JournalObject in Cache |
Integer |
JournalObject(Integer tranid,
Integer fileop)
Runs method JournalObject in Cache |
int |
save()
Saves any changes in object to Database. |
int |
save(boolean deep)
Saves any changes in object to Database. |
Methods inherited from class com.intersys.classes.RegisteredObject |
_className, _className, _constructClone, _constructClone, _constructClone, _isA, _isModified, _normalizeObject, _packageName, _validateObject, _validateObject, checkAllFieldsValid, checkAllMethods, constructClone, constructClone, getCacheClass, getZRef |
Methods inherited from class com.intersys.classes.CacheRootObject |
_close, castTo, equals, getDatabase, getField, getOref, getProxy, getString, hashCode, release, releaseInternal, toString |
Methods inherited from class com.intersys.classes.CacheGeneric |
checkAllFieldsValid, checkFieldsLimited, reset |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Persistent(com.intersys.cache.CacheObject ref) throws CacheException
Method Detail |
public static RegisteredObject _open(Database db, Oid oid) throws CacheException
%Open
in Cache to open an object
from Cache database and creates corresponding object of class
Persistent
or its subclass. Note that subclasses
of Persistent
have also _open
method
which takes Id
instead of Oid
. There
is also a pair of _open
methods which takes
concurrency as an additional argument.
db
- Database
object used for connection with
Cache database.oid
- Object ID as specified in Cache. represented as
Oid
.
RegisteredObject
, corresponding to opened
object. This object may be of Persistent
or of
any of it's subclasses. Cast to Persistent
is
garanteed to pass without ClassCastException
exception.
CacheException
- in case of error._open(com.intersys.objects.Database, com.intersys.objects.Oid, int)
public static RegisteredObject _open(Database db, Oid oid, int concurrency) throws CacheException
%Open
in Cache to open an object
from Cache database and creates corresponding object of class
Persistent
or its subclass. Note that subclasses
of Persistent
have also _open
method
which takes Id
instead of Oid
.
db
- Database
object used for connection with
Cache database.oid
- Object ID as specified in Cache. represented as
Oid
.concurrency
- concurrency argument which specifies the
concurrency setting for this object (and sets the value of the
%Concurrency attribute).
RegisteredObject
, corresponding to opened
object. This object may be of Persistent
or of
any of it's subclasses. Cast to Persistent
is
garanteed to pass without ClassCastException
exception.
CacheException
- in case of error._open(com.intersys.objects.Database, com.intersys.objects.Oid)
,
About Concurrencypublic Oid getOid() throws CacheException
com.intersys.objects.Oid
.
CacheException
getId()
,
_oid()
public Oid _oid() throws CacheException
com.intersys.objects.Oid
.
CacheException
getOid()
,
getId()
,
_id()
,
getId()
public Id getId() throws CacheException
com.intersys.objects.Id
CacheException
getOid()
,
_id()
public Id _id() throws CacheException
com.intersys.objects.Id
CacheException
getOid()
,
getId()
,
_oid()
public int save() throws CacheException
save(false)
. On the other hand, for Light Java
Binding default mode is shallow, i.e. if this (no arguments)
method is called than shallow save is performed. For deep save
call save(true)
if you are using Light connection.
CacheException
- if error occured during save.save(boolean)
public int save(boolean deep) throws CacheException
deep
- Whether to perform deep save. If value is
true
then deep save is performed and all objects
referred by the one on which method is called are also saved
recursively. If the value is false
then shallow
save is performed and only the calling object is saved.
CacheException
- if error occured during save.public int _save() throws CacheException
save
. This method is left to comply to
naming convention, according to which Cache system methods
(those, which name starts with '%' in Cache) are translated to
methods, starting with '_' in Java.
CacheException
save()
public static Boolean _exists(Database db, Oid oid) throws CacheException
CacheException
public static boolean exists(Database db, Oid oid) throws CacheException
CacheException
_exists(com.intersys.objects.Database, com.intersys.objects.Oid)
public static void _delete(Database db, Oid oid) throws CacheException
CacheException
public static void delete(Database db, Oid oid) throws CacheException
CacheException
public void delete() throws CacheException
CacheException
public static void _delete(Database db, Oid oid, Integer concurrency) throws CacheException
CacheException
public void _downgradeConcurrency(Integer concurrency) throws CacheException
concurrency
- represented as an Integer
CacheException
- if any error occured while running the method.public void _downgradeConcurrency(int concurrency) throws CacheException
concurrency
- represented as an int
CacheException
- if any error occured while running the method.public void _upgradeConcurrency(Integer concurrency) throws CacheException
concurrency
- represented as an Integer
CacheException
- if any error occured while running the method.public void _upgradeConcurrency(int concurrency) throws CacheException
concurrency
- represented as an int
CacheException
- if any error occured while running the method.public void _reload() throws CacheException
CacheException
- if any error occured while running the method.public static void _buildIndices(Database db) throws CacheException
db
- represented as Database
CacheException
- if any error occured while running the method._buildIndices(Database,SList)
public static void _buildIndices(Database db, SList idxlist) throws CacheException
db
- represented as Databaseidxlist
- represented as SList
CacheException
- if any error occured while running the method.public Integer JournalObject(Integer tranid) throws CacheException
tranid
- represented as java.lang.Integer
CacheException
- if any error occured while running the method.JournalObject(java.lang.Integer,java.lang.Integer)
,
Method JournalObjectpublic Integer JournalObject(Integer tranid, Integer fileop) throws CacheException
tranid
- represented as java.lang.Integerfileop
- represented as java.lang.Integer
CacheException
- if any error occured while running the method.public static String getCacheClassName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |