|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscone.netobjects.LinkCache
public class LinkCache
caches the links table from the database and provides means to update the database
| Field Summary | |
|---|---|
protected static CacheTable |
cache
|
static java.lang.Object |
lock
|
| Constructor Summary | |
|---|---|
LinkCache()
|
|
| Method Summary | |
|---|---|
static void |
clean()
|
static java.lang.String |
createKey(java.lang.String fromId,
java.lang.String toId,
java.lang.String fragment)
Create a unique key for links |
static Link |
get(NetNode from,
NetNode to,
java.lang.String fragment)
returns the link defined in from, ponting to to |
static Link |
get(NetNode from,
NetNode to,
java.lang.String fragment,
adc.parser.HtmlTag tag)
returns the link defined in from, ponting to to |
static Link |
get(NetNode from,
NetNode to,
java.lang.String fragment,
adc.parser.HtmlTag tag,
boolean persistent)
returns the link defined in from, ponting to to |
static Link |
getById(java.lang.String id)
returns the link specified by the id |
static int |
getLinkCount(java.lang.String sqlClause)
This method returns a number of Links to a given query string. |
static java.util.Vector |
getLinks(java.lang.String sqlClause)
This method returns a Vector of Links to a given query. |
static LinkVector |
getLinksFrom(NetNode from)
returns the links defined in from |
static LinkVector |
getLinksTo(NetNode to)
returns the links pointing to to |
static void |
init(int timeTillCleanUp,
int gcType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static CacheTable cache
public static java.lang.Object lock
| Constructor Detail |
|---|
public LinkCache()
| Method Detail |
|---|
public static void init(int timeTillCleanUp,
int gcType)
public static LinkVector getLinksFrom(NetNode from)
from
from - the NetNode
public static LinkVector getLinksTo(NetNode to)
to
to - the NetNode
public static java.util.Vector getLinks(java.lang.String sqlClause)
sqlClause - The where clause for the query string.public static int getLinkCount(java.lang.String sqlClause)
sqlClause - The where clause for the query string.
public static Link get(NetNode from,
NetNode to,
java.lang.String fragment,
adc.parser.HtmlTag tag)
from, ponting to to
from - the defining nodeto - the linked nodefragment - the fragmenttag - the defining tag, used to fill new link objects with infos.
public static Link get(NetNode from,
NetNode to,
java.lang.String fragment)
from, ponting to to
from - the defining nodeto - the linked nodefragment - the fragment
public static Link get(NetNode from,
NetNode to,
java.lang.String fragment,
adc.parser.HtmlTag tag,
boolean persistent)
from, ponting to to
from - the defining nodeto - the linked nodefragment - the fragmenttag - the defining tagpersistent - shall the NetNode be made persistent? public static Link getById(java.lang.String id)
id - the id
public static java.lang.String createKey(java.lang.String fromId,
java.lang.String toId,
java.lang.String fragment)
public static void clean()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||