|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscone.netobjects.TableRecord
scone.netobjects.Inclusion
public class Inclusion
An Inclusion
represents the objects included in one web page, like applets, pictures etc.
Field Summary | |
---|---|
protected NetNode |
childNode
|
static java.lang.String |
COPYRIGHT
|
protected static DBTableAdapter |
dbTable
|
protected NetNode |
parentNode
|
Fields inherited from class scone.netobjects.TableRecord |
---|
ctei, date, fieldValues, hasChanged, hasRecordInDB, persistent |
Constructor Summary | |
---|---|
|
Inclusion()
|
protected |
Inclusion(NetNode parent,
NetNode child)
Creates a new Inclusion object. |
|
Inclusion(java.sql.ResultSet results)
Create Inclusion object to result of a DB-Query. |
|
Inclusion(java.lang.String inclusionId)
Create a new Inclusion object. |
Method Summary | |
---|---|
NetNode |
getChildNode()
returns the included node |
java.lang.String |
getChildNodeId()
returns the included nodeId |
java.lang.String |
getInclusionId()
returns the id of the Inclusion |
java.lang.String |
getInfo()
returns some info to the tag. |
java.lang.Object |
getKey(int KeyNo)
Returns the key(s) |
NetNode |
getParentNode()
returns the Node where the inclusion is defined |
java.lang.String |
getParentNodeId()
returns the id of the Node where the inclusion is defined |
java.lang.String |
getTag()
returns the name of the tag which defined the inclusion |
void |
setInfo(java.lang.String i)
sets info to the tag which defined the inclusion |
void |
setTag(java.lang.String tag)
sets the name of the tag which defined the inclusion |
void |
store()
Store Inclusion to DB For performance reasons, inclusion objects can be created without corresponding DB entry! |
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
protected NetNode parentNode
protected NetNode childNode
Constructor Detail |
---|
public Inclusion()
public Inclusion(java.lang.String inclusionId)
Inclusion
set
from the scone
database, identified by the inclusionId
.
If such a set already exists, the values are read from the database.
Else, hasRecordInDB is set to false
inclusionId
- the id
of the inclusion.protected Inclusion(NetNode parent, NetNode child)
Inclusion
set
from the scone
database, this is identified by the
inclusionId
.
If such a set already exists, the values are read from the database.
Else, hasRecordInDB is set to false. Therfore store()
creates OR updates the DB entry.
parent
- the NetNode
of the document that embeds an other NetObject.child
- the NetNode
of the embedded object.public Inclusion(java.sql.ResultSet results)
results
- the ResultSet returnetd by the query.Method Detail |
---|
public java.lang.String getInclusionId()
public java.lang.String getParentNodeId()
public NetNode getParentNode()
public java.lang.String getChildNodeId()
public NetNode getChildNode()
public java.lang.String getTag()
public void setTag(java.lang.String tag)
tag
- the name of the tagpublic java.lang.String getInfo()
public void setInfo(java.lang.String i)
i
- info to the tagpublic void store()
public java.lang.Object getKey(int KeyNo)
getKey
in interface Cacheable
getKey
in class TableRecord
KeyNo
- the number of the key to be generated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |