|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--asgaard.skid.LightBean | +--asgaard.lang.Def
This Class is a special lightweight type of Bean which does not carry any Attributes but it's name (no multilanguage-support). Therefor it is used to hold e.g. String - identifyers used by the System.
Minimal Usage: (The RemoteBroker should be instanciated at this time)
Def d = new Def(
b.flush();
Remark: A System-Object cannot be modified and carries the created-Timestamp 0
Remark: To inherit this kind of SkidBean modifications within the
code of the BeanBroker are nessecary (look for the BEANTYPE
pattern).
Field Summary | |
protected java.lang.String |
longName
|
protected java.lang.String |
shortName
|
Fields inherited from class asgaard.skid.LightBean |
broker,
cKey,
debug,
history_policy,
key,
tsCreated,
tsModified,
update_policy |
Constructor Summary | |
Def()
Generates a empty definition |
|
Def(java.lang.String sName,
java.lang.String lName)
Generates a new definition with a given name. |
Method Summary | |
java.lang.String |
getLongname()
Returns the long name of the definition. |
java.lang.String |
getName()
Returns the name of the Bean which shold be human readable and may be unique in some cases, but this is not strictly required. |
java.lang.Object |
getObject()
Returns the wrapped Object, in this case it's the Longname. |
void |
init(int key,
int classKey,
java.lang.String name,
java.lang.Object content,
long tsC,
long tsM)
Initialises a new Lightweight Bean with a given name and timestamps Do not use manually!!! |
void |
setLongname(java.lang.String name)
Sets the long name of the definition. |
void |
setName(java.lang.String name)
Sets the name of the Definition. |
Methods inherited from class asgaard.skid.LightBean |
addEvent,
cloneBean,
flush,
getAge,
getBeanType,
getBroker,
getChangeHistory,
getClassKey,
getCreated,
getEvent,
getFilter,
getIdentifier,
getKey,
getLink,
getMethods,
getModified,
getUpdatePolicy,
init,
invoke,
isChanged,
isNew,
isReadOnly,
modify,
putLink,
setAge,
setObject,
suscribeEvent,
undo |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected java.lang.String shortName
protected java.lang.String longName
Constructor Detail |
public Def()
public Def(java.lang.String sName, java.lang.String lName) throws asgaard.skid.SkidException
sName
- the short name of the deflName
- the long name of the defMethod Detail |
public void init(int key, int classKey, java.lang.String name, java.lang.Object content, long tsC, long tsM) throws asgaard.skid.SkidException
key
- of the BeancalssKey
- of the Beanname
- the short name of the defcontent
- the long name of the deftsC
- created - timestamptsM
- modified - timestamppublic java.lang.String getName()
public void setName(java.lang.String name)
name
- the valuepublic java.lang.String getLongname()
public void setLongname(java.lang.String name)
name
- a new namepublic java.lang.Object getObject()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |