|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscone.netobjects.TableRecord
public abstract class TableRecord
Defines which methods an object must implement to be handled by a cache
| Field Summary | |
|---|---|
static java.lang.String |
COPYRIGHT
|
protected CacheTableEntryInterface |
ctei
The set is stored in the cacheTable in this object |
protected static java.util.Date |
date
|
protected FieldValueHashTable |
fieldValues
The values of the set |
protected boolean |
hasChanged
Indicates whether the set has changed compared to the database |
boolean |
hasRecordInDB
True, if this object corresponds to a db-set |
protected boolean |
persistent
Indicates whether the set shall be store in the database |
| Constructor Summary | |
|---|---|
TableRecord()
|
|
| Method Summary | |
|---|---|
abstract java.lang.Object |
getKey(int noOfKey)
returns the hashkey for this object (to be deprecated!) |
protected boolean |
isPersistent()
Ask object if it will be made persistent. |
java.lang.String |
now()
Returns the current time as a string |
void |
setCacheTableEntryInterface(CacheTableEntryInterface ctei)
sets the CacheTableEntryInterface |
protected void |
setChanged(boolean changed)
Tell an object, that is has changed... |
protected void |
setPersistent(boolean p)
Tell an object, that is shall not be made persistent. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface scone.netobjects.Cacheable |
|---|
store |
| Field Detail |
|---|
public static final java.lang.String COPYRIGHT
protected CacheTableEntryInterface ctei
protected FieldValueHashTable fieldValues
protected boolean hasChanged
public boolean hasRecordInDB
protected boolean persistent
protected static java.util.Date date
| Constructor Detail |
|---|
public TableRecord()
| Method Detail |
|---|
public void setCacheTableEntryInterface(CacheTableEntryInterface ctei)
Cacheable
setCacheTableEntryInterface in interface Cacheablectei - the CacheTableEntryInterfaceprotected void setChanged(boolean changed)
protected void setPersistent(boolean p)
p - shall object be made persistent in DB?protected boolean isPersistent()
public abstract java.lang.Object getKey(int noOfKey)
Cacheable
getKey in interface Cacheablethe - key number
public java.lang.String now()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||