|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--asgaard.skid.BeanLink
This class models one Relationship between one ore two Beans. It is able to maintain it and carrys all nessecary keys. Additionally it can be used to iterate throug the Bean-Ontology.
Field Summary | |
protected long |
Age
|
protected long |
Begin
|
protected int |
By
|
protected long |
Created
|
protected long |
End
|
protected int |
From
|
protected long |
Modified
|
protected int |
Order
|
protected int |
State
|
protected int |
To
|
static byte |
update_policy
Update Policy for saving modifications. |
Constructor Summary | |
BeanLink()
Creates an empty new Link-object. |
|
BeanLink(int from,
int order,
int to,
int by,
long create,
long mod,
long begin,
long end,
int state)
Creates a new Link-object. |
|
BeanLink(int from,
int to,
int by,
long begin,
long end,
int state)
Creates a new Link-object. |
|
BeanLink(RemoteBean from,
RemoteBean to,
RemoteBean by,
long begin,
long end,
int state)
Creates a new Link-object. |
Method Summary | |
void |
flush()
Does all the saving. |
RemoteBean |
getBy()
Returns the Relation-Bean. |
BeanLinkFilter |
getFilter()
Returns a Filter-Object corresponding to this Key. |
RemoteBean |
getFrom()
Returns the From-Bean in this Relation. |
java.lang.String |
getKey()
Returns the primary Key of the Relation. |
static java.lang.String |
getKey(int from,
int to,
int by)
Returns a primary Key of the Relation with the given keys. |
RemoteBean |
getTo()
Returns the To-Bean in this Relation. |
boolean |
isChanged()
Has the Relation been modified? |
void |
modify()
Mark the Relation as modified. |
void |
setAge()
Set's the Age to the current (modified) timestamp |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static byte update_policy
asgaard.skid.SkidBean.checkModification
protected int From
protected int Order
protected int To
protected int By
protected long Created
protected long Modified
protected long Age
protected long Begin
protected long End
protected int State
Constructor Detail |
public BeanLink()
public BeanLink(int from, int to, int by, long begin, long end, int state)
from
- key of the origin Beanto
- key of the target Beanby
- key of the link-Bean (kind of Link)begin
- timestamp of the start of the relationshipend
- timestamp of the end of the relationshipstate
- access-rights to the target Bean about this relationshippublic BeanLink(RemoteBean from, RemoteBean to, RemoteBean by, long begin, long end, int state) throws java.lang.Exception
from
- key of the origin Beanto
- key of the target Beanby
- key of the link-Bean (kind of Link)begin
- timestamp of the start of the relationshipend
- timestamp of the end of the relationshipstate
- access-rights to the target Bean about this relationshippublic BeanLink(int from, int order, int to, int by, long create, long mod, long begin, long end, int state)
from
- key of the origin Beanorder
- a local order by an ontology to fromto
- key of the target Beanby
- key of the link-Bean (kind of Link)created
- timestamp when the link was createdmod
- timestamp when the key was last modifiedbegin
- timestamp of the start of the relationshipend
- timestamp of the end of the relationshipstate
- access-rights to the target Bean about this relationshipMethod Detail |
public boolean isChanged()
public void modify()
public void setAge()
public void flush() throws java.lang.Exception
public RemoteBean getFrom()
public RemoteBean getTo()
public RemoteBean getBy()
public java.lang.String getKey()
public static java.lang.String getKey(int from, int to, int by)
from
- key of the origin Beanto
- key of the target Beanby
- key of the link-Bean (kind of Link)public BeanLinkFilter getFilter()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |