public interface Object extends Mapable, StringConvertable, StringCreateable, Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
MODIFIED
modidifed meta object (to be updated).
|
static int |
NEW
new meta object (to be inserted).
|
static int |
NO_STATUS
status not set.
|
static int |
TEMPLATE
object template.
|
static int |
TO_DELETE
deleted meta object (to be deleted).
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllAttributes(ObjectAttribute[] objectAttributes)
adds all attributes to the Object.
|
void |
addAttribute(ObjectAttribute anyAttribute)
Fügt ein Attribut in die davor vorgesehenen AtrributVectoren ein.
|
Object |
constructKey(Mapable m)
Deprecated.
UNUSED
|
Object |
filter(User ug)
liefert eine fuer ug sichtbare Attributierung.
|
void |
forceStatus(int status)
DOCUMENT ME!
|
Object |
fromString(String objectRepresentation,
Object mo)
creates an Instance of this Object from a string representation.
|
ObjectAttribute[] |
getAttribs()
beschafft eine Arrayrprenstation aller Attribute des Object.
|
ObjectAttribute |
getAttribute(String name)
retrieves an Attributed 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 �ber 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 enthält deren Schlüssel dem parameter name entsprechen.
|
LinkedHashMap<Object,ObjectAttribute> |
getAttributes()
getter for attribHash.
|
Collection<ObjectAttribute> |
getAttributesByName(Collection names)
beschafft eine Collection welche alle Attribute enthält deren Schlüssel 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!
|
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.
|
static final int MODIFIED
static final int NEW
static final int NO_STATUS
static final int TEMPLATE
static final int TO_DELETE
void addAllAttributes(ObjectAttribute[] objectAttributes)
objectAttributes - attributes to be added to the Objectvoid addAttribute(ObjectAttribute anyAttribute)
anyAttribute - Objektattribute#longs,
#dates,
#doubles,
#longsObject constructKey(Mapable m)
constructKey in interface Mapablem - UNUSEDObject filter(User ug)
ug - Benutzergruppe nach der gefiltert werden sollObject 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 StringCreateableobjectRepresentation - string represntation of this Objectmo - templet of an ObjectException - java.lang.Exception error during consturction of an ObjectObjectAttribute[] getAttribs()
#longsObjectAttribute getAttribute(String name)
name - Name des gewünschten AttributsObjectAttribute getAttributeByFieldName(String fieldname)
fieldname - DOCUMENT ME!Collection<ObjectAttribute> getAttributeByName(String name, int maxResult)
name - Name/Schlüssel des AttributesmaxResult - DOCUMENT ME!LinkedHashMap<Object,ObjectAttribute> getAttributes()
Collection<ObjectAttribute> getAttributesByName(Collection names)
names - Name/Schlüssel des AttributesCollection<ObjectAttribute> getAttributesByType(Class c, int recursionDepth)
c - DOCUMENT ME!recursionDepth - DOCUMENT ME!Collection<ObjectAttribute> getAttributesByType(Class c)
c - DOCUMENT ME!int getClassID()
#classIDint getID()
#objectIDObject getKey()
ObjectAttribute getPrimaryKey()
ObjectAttribute getReferencingObjectAttribute()
int getStatus()
String getStatusDebugString()
Collection<ObjectAttribute> getTraversedAttributesByType(Class c)
c - DOCUMENT ME!boolean isDummy()
boolean isPersistent()
boolean isStringCreateable()
isStringCreateable in interface StringCreateablevoid removeAttribute(ObjectAttribute anyAttribute)
anyAttribute - DOCUMENT ME!void setDummy(boolean dummy)
dummy - whether it is a dummyvoid setID(int objectID)
objectID - DOCUMENT ME!void setPersistent(boolean persistent)
persistent - New value of property persistent.void setPrimaryKeysNull()
void setReferencingObjectAttribute(ObjectAttribute referencingObjectAttribute)
referencingObjectAttribute - DOCUMENT ME!void setStatus(int status)
status - statusvoid forceStatus(int status)
status - DOCUMENT ME!void setValuesNull()
FromStringCreator getObjectCreator()
Copyright © 2012–2026 cismet GmbH. All rights reserved.