|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscone.netobjects.TableRecord
scone.netobjects.Server
public class Server
a Server represents a ServerCache-set from the database
| Field Summary | |
|---|---|
static java.lang.String |
COPYRIGHT
|
protected static DBTableAdapter |
dbTable
|
| Fields inherited from class scone.netobjects.TableRecord |
|---|
ctei, date, fieldValues, hasChanged, hasRecordInDB, persistent |
| Constructor Summary | |
|---|---|
Server(java.lang.String host)
|
|
| Method Summary | |
|---|---|
void |
access()
sets lastAccess to now and increments accessCounterif the node is visted for the first time, the method sets firstAccess |
int |
getAccessCounter()
Returns the times the node has been accessed by any scone-user |
java.lang.String |
getAccessStatus()
Returns the status of the node, for example 200 or 404if -1 is returned, the node has not yet been visited |
java.lang.String |
getDelay()
|
java.lang.String |
getDescription()
|
long |
getFirstAccess()
Returns the date of the first access of this node. |
java.lang.String |
getHost()
|
java.lang.Object |
getKey(int KeyNo)
returns the hashkey for this object (to be deprecated!) |
long |
getLastAccess()
Returns the date of the last access of this node. |
java.lang.String |
getTitle()
|
protected void |
incAccessCounter()
Increases the accessCounter. |
protected void |
setAccessCounter(int v)
Sets the accesCounter to the specified value. |
void |
setAccessStatus(java.lang.String v)
Sets the status of the node, if the status has been -1 and is now changed, firstAccess is set |
void |
setDelay(java.lang.String v)
|
void |
setDescription(java.lang.String v)
|
protected void |
setLastAccess(long v)
Sets the date of the last access (the current access!) |
void |
setTitle(java.lang.String v)
|
void |
store()
writes a persistent representation of the object to the storage. |
| Methods inherited from class scone.netobjects.TableRecord |
|---|
isPersistent, now, setCacheTableEntryInterface, setChanged, setPersistent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COPYRIGHT
protected static DBTableAdapter dbTable
| Constructor Detail |
|---|
public Server(java.lang.String host)
| Method Detail |
|---|
public java.lang.String getTitle()
public void setTitle(java.lang.String v)
public java.lang.String getDescription()
public void setDescription(java.lang.String v)
public java.lang.String getDelay()
public void setDelay(java.lang.String v)
public void access()
lastAccess to now and increments accessCounterfirstAccess
public java.lang.String getHost()
public java.lang.String getAccessStatus()
200 or 404-1 is returned, the node has not yet been visited
-1 if no status is availablepublic void setAccessStatus(java.lang.String v)
firstAccess is set
v - the statuspublic long getFirstAccess()
public long getLastAccess()
protected void setLastAccess(long v)
access() instead for consistency!
v - the datepublic int getAccessCounter()
protected void setAccessCounter(int v)
incAccessCounter() instead for consistency!
v - the dateprotected void incAccessCounter()
access() instead for consistency!
public void store()
Cacheable
public java.lang.Object getKey(int KeyNo)
Cacheable
getKey in interface CacheablegetKey in class TableRecordKeyNo - the number of the key to be generated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||