public class Class extends Object implements Serializable, Mapable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
arrayElementLink
indicates whether objects of this class are only links between an array and it's elements.
|
protected AttributeVector |
attribs
Alle Attribute der Klasse.
|
protected Policy |
attributePolicy |
protected String |
description
Enthält eine URL oder einen Klartext der die Klasse näher beschreibt.
|
protected String |
editor
definiert die java Klasse welche als Editor für diese Art von Objekten benutzt werden soll.
|
protected String |
getDefaultInstanceStmnt
statement welches ein template eines meta objektes dieser Klasser erzeugt.
|
protected String |
getEmptyResultStmnt |
protected String |
getInstanceStmnt
sql statement welches eine instanz eines meta objektes dieser Klasse erzeugt.
|
protected Image |
icon
Icon wird bei der Visualisierung der Klasse angzeigt.
|
protected int |
id
Fungiert als Klassenreferenz in einem assoziativen Container.
|
protected boolean |
indexed |
protected LinkedHashMap |
memberAttributeInfos
enthält information über die Attribute der Objekte der Klasse, diesen werden zur Konstruktion von
Objekten benötigt.
|
protected String |
name
Name der Klasse wird bei der Visualisierung angzeigt.
|
protected Image |
objectIcon
Icon wird bei der Visualisierung eines Objekts der Klasse angzeigt.
|
protected PermissionHolder |
permissions
Zugriffsrechte bzgl.
|
protected String |
primaryKey
Primaeschluessel der zur Klasse gehörenden Tabelle.
|
protected String |
renderer
DOCUMENT ME!
|
protected String |
tableName
zur Klasse gehörender Tabellenname.
|
protected String |
toString
voll qualifizierter Klassename zur erzeugung einer Stringrepräsentation von Objekten dieser Klasse.
|
| Constructor and Description |
|---|
Class(int id,
String name,
String description,
Image icon,
Image objectIcon,
String tableName,
String primaryKey,
String toString,
PermissionHolder permissions,
Policy attributePolicy,
boolean indexed)
Erzeug eine unattributierte Klasse.
|
Class(int id,
String name,
String description,
Image icon,
Image objectIcon,
String tableName,
String primaryKey,
String toString,
Policy policy,
Policy attributePolicy,
boolean indexed)
Erzeug eine unattributierte Klasse.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttribute(Object anyAttribute)
Fügt ein Klassenattribut in die davor vorgesehenen AtrributVectoren ein.
|
void |
addMemberAttributeInfo(MemberAttributeInfo mai)
adds an AttributeinfoItem to the class.
|
Object |
constructKey(Mapable m)
Deprecated.
UNUSED
|
ClassAttribute[] |
getAttribs()
retrives class attributes.
|
Collection |
getAttributeByName(String name)
retrieves an attribute referenced by its name.
|
Policy |
getAttributePolicy()
DOCUMENT ME!
|
Collection |
getAttributes()
retrieves class attributes.
|
ClassAttribute |
getClassAttribute(String key)
DOCUMENT ME!
|
String |
getDescription()
getter for description.
|
String |
getEditor()
Getter for property editor.
|
Collection |
getFieldNames()
retrieves the names of all attributes of this class'es objects.
|
String |
getGetDefaultInstanceStmnt()
getter for defaultInstanceStatement.
|
String |
getGetEmptyResultStmnt()
DOCUMENT ME!
|
String |
getGetInstanceStmnt()
Getter for property getInstanceStmnt.
|
Image |
getIcon()
getter für Icon.
|
int |
getID()
getter für ID.
|
Object |
getKey()
retrieves the key (Mapable) for this class.
|
HashMap |
getMemberAttributeInfos()
Getter for property memberAttributeInfos.
|
String |
getName()
getter für name.
|
Image |
getObjectIcon()
get für ObjectIcon.
|
PermissionHolder |
getPermissions()
getter for permissions.
|
Policy |
getPolicy()
DOCUMENT ME!
|
String |
getPrimaryKey()
Getter for property primaryKey.
|
String |
getRenderer()
Getter for property renderer.
|
String |
getSQLFieldNames()
retrieves the names of the sql fields of the corresponding table.
|
String |
getTableName()
Getter for property tableName.
|
String |
getToString()
Getter for property toString.
|
boolean |
isArrayElementLink()
whether objects of the class are mere association between array objects and their elements.
|
boolean |
isIndexed()
DOCUMENT ME!
|
void |
setArrayElementLink(boolean arrayElementLink)
setter for arrayElementLink.
|
void |
setEditor(String editor)
Setter for property editor.
|
void |
setIndexed(boolean indexed)
DOCUMENT ME!
|
void |
setMemberAttributeInfos(LinkedHashMap memberAttributeInfos)
Setter for property memberAttributeInfos.
|
void |
setPrimaryKey(String primaryKey)
Setter for property primaryKey.
|
void |
setRenderer(String renderer)
Setter for property renderer.
|
void |
setTableName(String tableName)
Setter for property tableName.
|
void |
setToString(String toString)
Setter for property toString.
|
String |
toString()
uses the toStringConverter if applicable.
|
protected final int id
Sirius.Class.ClassMapprotected String name
protected String description
protected Image icon
protected Image objectIcon
protected PermissionHolder permissions
protected String tableName
protected String primaryKey
protected String toString
protected boolean arrayElementLink
protected AttributeVector attribs
protected LinkedHashMap memberAttributeInfos
protected String getInstanceStmnt
protected String getDefaultInstanceStmnt
protected String getEmptyResultStmnt
protected String editor
protected String renderer
protected Policy attributePolicy
protected boolean indexed
public Class(int id,
String name,
String description,
Image icon,
Image objectIcon,
String tableName,
String primaryKey,
String toString,
PermissionHolder permissions,
Policy attributePolicy,
boolean indexed)
id - this class key unique on on domainname - name of this classdescription - -icon - nodes representing this class will be vizualized using this iconobjectIcon - objects of this class will be vizualized using this icontableName - name of this class' corresponding tableprimaryKey - primary key of the tabletoString - class able to create a String representation of this class's objectspermissions - permission containerattributePolicy - DOCUMENT ME!indexed - DOCUMENT ME!public Class(int id,
String name,
String description,
Image icon,
Image objectIcon,
String tableName,
String primaryKey,
String toString,
Policy policy,
Policy attributePolicy,
boolean indexed)
id - keyname - name der Klassedescription - Beschreibung der Klasseicon - nodes representing this class will be vizualized using this iconobjectIcon - objects of this class will be vizualized using this icontableName - name of this class' corresponding tableprimaryKey - primary key of the tabletoString - class able to create a String representation of this class's objectspolicy - DOCUMENT ME!attributePolicy - DOCUMENT ME!indexed - DOCUMENT ME!public final Image getObjectIcon()
objectIconpublic final int getID()
#classIDpublic final String getDescription()
descriptionprotected final void addAttribute(Object anyAttribute) throws Exception
anyAttribute - KlassenattributException - DOCUMENT ME!public final ClassAttribute[] getAttribs()
public final ClassAttribute getClassAttribute(String key)
key - DOCUMENT ME!public final Collection getAttributes()
public Collection getAttributeByName(String name)
name - name of an attributepublic final PermissionHolder getPermissions()
public String getToString()
public void setToString(String toString)
toString - New value of property toString.public String getTableName()
public void setTableName(String tableName)
tableName - New value of property tableName.public String getPrimaryKey()
public void setPrimaryKey(String primaryKey)
primaryKey - New value of property primaryKey.public Object getKey()
public HashMap getMemberAttributeInfos()
public void setMemberAttributeInfos(LinkedHashMap memberAttributeInfos)
memberAttributeInfos - New value of property memberAttributeInfos.public void addMemberAttributeInfo(MemberAttributeInfo mai)
mai - Info set about an Attribute of this class's objectspublic Object constructKey(Mapable m)
constructKey in interface Mapablem - objectpublic Collection getFieldNames()
public String getGetInstanceStmnt()
public String getGetDefaultInstanceStmnt()
public String getGetEmptyResultStmnt()
public String toString()
public String getEditor()
public void setEditor(String editor)
editor - New value of property editor.public String getRenderer()
public void setRenderer(String renderer)
renderer - New value of property renderer.public String getSQLFieldNames()
public void setArrayElementLink(boolean arrayElementLink)
arrayElementLink - is arrayElemtneLinkpublic boolean isArrayElementLink()
public Policy getPolicy()
public Policy getAttributePolicy()
public boolean isIndexed()
public void setIndexed(boolean indexed)
indexed - DOCUMENT ME!Copyright © 2012–2026 cismet GmbH. All rights reserved.