|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
scone.netobjects.HtmlNodeCache
public class HtmlNodeCache
caches all HtmlNode objects.
use the static methods provided by this class to obtain HtmlNode objects.
Field Summary | |
---|---|
protected static CacheTable |
cache
|
protected java.util.Vector |
items
|
protected static java.lang.Object |
lock
|
protected static HtmlNodeCache |
observable
|
protected static int |
observePeriod
|
Constructor Summary | |
---|---|
HtmlNodeCache()
|
Method Summary | |
---|---|
protected void |
addItem(java.lang.Object o)
|
static HtmlNode |
check(NetNode node)
This method will return the required HtmlNode if it exists in the database, and null otherwise. |
static HtmlNode |
check(NetNode node,
boolean persistent)
This method will return the required HtmlNode if it exists in the database, and null otherwise. |
static void |
clean()
Store objects to DB |
static HtmlNode |
get(NetNode node)
This methid will return and potentially create the required HtmlNode. |
static HtmlNode |
get(NetNode node,
boolean persistent)
This method will return and potentially create the required HtmlNode. |
static int |
getHtmlNodeCount(java.lang.String sqlClause)
This method returns a number of HtmoNodes to a given query string. |
static int |
getObservePeriod()
|
static void |
init(int timeTillCleanUp,
int gcType)
|
void |
notifyObservers()
|
static void |
putObserver(java.util.Observer o)
|
static void |
removeObserver(java.util.Observer o)
|
static void |
setObservePeriod(int period)
|
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static HtmlNodeCache observable
protected static int observePeriod
protected static CacheTable cache
protected static java.lang.Object lock
protected java.util.Vector items
Constructor Detail |
---|
public HtmlNodeCache()
Method Detail |
---|
public static void init(int timeTillCleanUp, int gcType)
public static void setObservePeriod(int period)
public static int getObservePeriod()
public static void putObserver(java.util.Observer o)
public static void removeObserver(java.util.Observer o)
public static HtmlNode check(NetNode node)
null
otherwise.
node
- the NetNode
null
public static HtmlNode check(NetNode node, boolean persistent)
null
otherwise.
netNode
- the NetNodepersistent
- shall the NetNode be made persistent? public static HtmlNode get(NetNode node)
node
- the NetNode
public static HtmlNode get(NetNode node, boolean persistent)
netNode
- the NetNodepersistent
- shall the NetNode be made persistent? public static int getHtmlNodeCount(java.lang.String sqlClause)
sqlClause
- The where clause for the query string.
public static void clean()
protected void addItem(java.lang.Object o)
public void notifyObservers()
notifyObservers
in class java.util.Observable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |