public class DefaultObject extends Object implements Object
| Modifier and Type | Field and Description |
|---|---|
protected LinkedHashMap<Object,ObjectAttribute> |
attribHash
container for this objects attributes.
|
protected int |
classID
Id der Klasse des Objekts, hierueber kann die zugehörige Klasse referenziert werden.
|
protected boolean |
dummy
indicates whether this object was constucted artificially eg array object.
|
protected int |
objectID
Fungiert als Objectreferenz in einem assoziativen Container (ObjectMap).
|
protected boolean |
persistent
indicates wheter this object was loaded from a domainservers database.
|
protected ObjectAttribute |
referencingObjectAttribute |
| Constructor and Description |
|---|
DefaultObject(int objectID,
int classID)
Erzeug ein unattributiertes Objekt.
|
DefaultObject(Object o)
Kopierkonstruktor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllAttributes(ObjectAttribute[] objectAttributes)
adds all attributes to the DefaultObject.
|
void |
addAttribute(ObjectAttribute anyAttribute)
Fügt ein Attribut in die davor vorgesehenen AtrributVectoren ein.
|
Object |
constructKey(Mapable m)
Deprecated.
UNUSED
|
Object |
filter(User u)
liefert eine fuer ug sichtbare Attributierung.
|
void |
forceStatus(int status)
DOCUMENT ME!
|
Object |
fromString(String objectRepresentation,
Object mo)
Deprecated.
|
ObjectAttribute[] |
getAttribs()
beschafft eine Arrayrprenstation aller Attribute des DefaultObject.
|
ObjectAttribute |
getAttribute(String name)
retrieves an Attribute referenced by its name Please note that this method retrieves the first
attribute that matchtes if one needs all attributes matching he should use getAttributeByname().
|
ObjectAttribute |
getAttributeByFieldName(String fieldname)
Method from Hell liefert ein Attribut ueber den Fieldname Es wird davon ausgegangen, dass nur ObjectAttributes im
getAttributes() sind.
|
Collection<ObjectAttribute> |
getAttributeByName(String name,
int maxResult)
beschafft eine Collection welche alle Attribute enthaelt deren Schluessel dem parameter name entsprechen.
|
LinkedHashMap<Object,ObjectAttribute> |
getAttributes()
getter for attribHash.
|
Collection<ObjectAttribute> |
getAttributesByName(Collection names)
beschafft eine Collection welche alle Attribute enthaelt deren Schluessel dem parameter name entsprechen.
|
Collection<ObjectAttribute> |
getAttributesByType(Class c)
DOCUMENT ME!
|
Collection<ObjectAttribute> |
getAttributesByType(Class c,
int recursionDepth)
DOCUMENT ME!
|
int |
getClassID()
getter for classID.
|
int |
getID()
getter for ID.
|
Object |
getKey()
key of the form classId.objectID.
|
FromStringCreator |
getObjectCreator()
DOCUMENT ME!
|
ObjectAttribute |
getPrimaryKey()
geter for primaryKey.
|
ObjectAttribute |
getReferencingObjectAttribute()
DOCUMENT ME!
|
int |
getStatus()
geter for status.
|
String |
getStatusDebugString()
DOCUMENT ME!
|
protected static String |
getStatusDebugString(int status)
DOCUMENT ME!
|
Collection<ObjectAttribute> |
getTraversedAttributesByType(Class c)
DOCUMENT ME!
|
boolean |
isDummy()
getter for dummy.
|
boolean |
isPersistent()
Getter for property persistent.
|
boolean |
isStringCreateable()
indicates whether fromString() can be called.
|
void |
removeAttribute(ObjectAttribute anyAttribute)
DOCUMENT ME!
|
void |
setDummy(boolean dummy)
setter for dummy.
|
void |
setID(int objectID)
DOCUMENT ME!
|
void |
setPersistent(boolean persistent)
Setter for property persistent.
|
void |
setPrimaryKeysNull()
DOCUMENT ME!
|
void |
setReferencingObjectAttribute(ObjectAttribute referencingObjectAttribute)
DOCUMENT ME!
|
void |
setStatus(int status)
setter for status.
|
void |
setValuesNull()
initializes all attributes with NULL.
|
protected int classID
protected int objectID
protected boolean dummy
protected LinkedHashMap<Object,ObjectAttribute> attribHash
protected boolean persistent
protected ObjectAttribute referencingObjectAttribute
public DefaultObject(Object o)
o - originalpublic DefaultObject(int objectID,
int classID)
objectID - id des ObjektsclassID - id der Klasse des Objektspublic final int getClassID()
getClassID in interface ObjectclassIDpublic final int getID()
public void setID(int objectID)
Objectpublic Object getKey()
public void addAttribute(ObjectAttribute anyAttribute)
addAttribute in interface ObjectanyAttribute - Objektattribute#longs,
#dates,
#doubles,
#longspublic void removeAttribute(ObjectAttribute anyAttribute)
ObjectremoveAttribute in interface ObjectanyAttribute - DOCUMENT ME!public ObjectAttribute[] getAttribs()
getAttribs in interface Object#longspublic LinkedHashMap<Object,ObjectAttribute> getAttributes()
getAttributes in interface Objectpublic ObjectAttribute getAttribute(String name)
getAttribute in interface Objectname - name des gewuenschten Attributspublic Collection<ObjectAttribute> getAttributeByName(String name, int maxResult)
getAttributeByName in interface Objectname - Name/Schluessel des AttributesmaxResult - DOCUMENT ME!public ObjectAttribute getAttributeByFieldName(String fieldname)
getAttributeByFieldName in interface Objectfieldname - DOCUMENT ME!public Collection<ObjectAttribute> getAttributesByName(Collection names)
getAttributesByName in interface Objectnames - Name/Schluessel des Attributespublic Collection<ObjectAttribute> getAttributesByType(Class c, int recursionDepth)
ObjectgetAttributesByType in interface Objectc - DOCUMENT ME!recursionDepth - DOCUMENT ME!public Collection<ObjectAttribute> getAttributesByType(Class c)
ObjectgetAttributesByType in interface Objectc - DOCUMENT ME!public Collection<ObjectAttribute> getTraversedAttributesByType(Class c)
ObjectgetTraversedAttributesByType in interface Objectc - DOCUMENT ME!public Object constructKey(Mapable m)
constructKey in interface ObjectconstructKey in interface Mapablem - UNUSEDpublic void addAllAttributes(ObjectAttribute[] objectAttributes)
addAllAttributes in interface ObjectobjectAttributes - attributes to be added to the DefaultObjectpublic boolean isPersistent()
isPersistent in interface Objectpublic void setPersistent(boolean persistent)
setPersistent in interface Objectpersistent - New value of property persistent.@Deprecated public Object fromString(String objectRepresentation, Object mo) throws Exception
fromString(o.toSting())=o should be valid however this cannot be true in all thinkable situations
fromString in interface StringCreateablefromString in interface ObjectobjectRepresentation - string represntation of this DefaultObjectmo - templet of an DefaultObjectException - java.lang.Exception error during consturction of an DefaultObjectpublic boolean isStringCreateable()
isStringCreateable in interface StringCreateableisStringCreateable in interface Objectpublic void setValuesNull()
setValuesNull in interface Objectpublic void setPrimaryKeysNull()
ObjectsetPrimaryKeysNull in interface Objectpublic ObjectAttribute getPrimaryKey()
getPrimaryKey in interface Objectpublic boolean isDummy()
public void setDummy(boolean dummy)
public ObjectAttribute getReferencingObjectAttribute()
ObjectgetReferencingObjectAttribute in interface Objectpublic void setReferencingObjectAttribute(ObjectAttribute referencingObjectAttribute)
ObjectsetReferencingObjectAttribute in interface ObjectreferencingObjectAttribute - DOCUMENT ME!public int getStatus()
public void setStatus(int status)
public void forceStatus(int status)
ObjectforceStatus in interface Objectstatus - DOCUMENT ME!public String getStatusDebugString()
ObjectgetStatusDebugString in interface Objectprotected static String getStatusDebugString(int status)
status - DOCUMENT ME!public FromStringCreator getObjectCreator()
getObjectCreator in interface ObjectCopyright © 2012–2026 cismet GmbH. All rights reserved.