| 
 | SRJRCFrames v0.1.296 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jgoodies.binding.beans.Model
de.schwarzrot.data.support.AbstractEntity
de.schwarzrot.data.meta.support.AbstractMetaEntity<N>
public abstract class AbstractMetaEntity<N extends Comparable<?>>
| Field Summary | |
|---|---|
| static String | MODEL_SCHEMA | 
| Constructor Summary | |
|---|---|
| AbstractMetaEntity() | |
| AbstractMetaEntity(AbstractMetaEntity<N> other) | |
| Method Summary | |
|---|---|
|  int | compareTo(Entity other) | 
|  String | getComment()getter of the MetaEntitys comment | 
|  String | getLogicalName() | 
|  Map<String,String> | getMappings()returns a map with mappings of logical property names to physical property names (column names in database terms). | 
|  N | getName() | 
|  long | getPhysID() | 
|  String | getSchemaName()returns the schema for this entity. | 
|  List<String> | getUniqColumnNames()returns a list of property names, which serve to detect a uniq instance without the usage of the primary key. | 
|  void | setComment(String comment)setter of the MetaEntitys comment | 
|  void | setName(N name) | 
|  void | setPhysID(long physID) | 
| Methods inherited from class de.schwarzrot.data.support.AbstractEntity | 
|---|
| adoptChildren, adoptChildren, adoptGroupedChildren, equals, getCModified, getCode, getDefaultOrder, getDtCreated, getDtModified, getId, getLogger, getPersistenceName, getSkipList, getSystemClass, getUCreated, getUModified, getUserAttributes, getVariantColumnName, getVariantTypeMap, hashCode, isDirty, isUserType, isVirtual, setCModified, setDirty, setDtCreated, setDtModified, setId, setSchemaName, setUCreated, setUModified, toString, validate | 
| Methods inherited from class com.jgoodies.binding.beans.Model | 
|---|
| addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface de.schwarzrot.data.Entity | 
|---|
| getCModified, getDefaultOrder, getDtCreated, getDtModified, getId, getPersistenceName, getSkipList, getSystemClass, getUCreated, getUModified, getUserAttributes, getVariantColumnName, getVariantTypeMap, isDirty, isUserType, isVirtual, setCModified, setDirty, setDtCreated, setDtModified, setId, setUCreated, setUModified, validate | 
| Methods inherited from interface com.jgoodies.binding.beans.Observable | 
|---|
| addPropertyChangeListener, removePropertyChangeListener | 
| Field Detail | 
|---|
public static final String MODEL_SCHEMA
| Constructor Detail | 
|---|
public AbstractMetaEntity()
public AbstractMetaEntity(AbstractMetaEntity<N> other)
| Method Detail | 
|---|
public int compareTo(Entity other)
compareTo in interface Comparable<Entity>compareTo in class AbstractEntitypublic final String getComment()
MetaEntityMetaEntitys comment
getComment in interface MetaEntity<N extends Comparable<?>>public String getLogicalName()
getLogicalName in interface MetaEntity<N extends Comparable<?>>public Map<String,String> getMappings()
EntityEvery implementation should respect the parents mappings. The following sample shows different mapping types:
 public Map<String, String> getMappings() {
     Map<String, String> mappings = super.getMappings();
     mappings.put("title", "name");
     mappings.put("streams", Stream.class.getName());
     mappings.put("pageDefinitions", "pageType|" + ThemeElement.class.getName());
     return mappings;
 }
 
 
 The mappings explained:
 List, known (named) children are hold in a Map.
 The mapped value is used as classname to create child instances.Map, that holds grouped
 children. Known children are hold by a Map, unknown children by a
 List, so "pageDefinitions" may contain elements of type
 Map, or List. pageType, a property of
 ThemeElement, is used to group the children. The word before the
 '|' is the property name used as key value for grouping and the type
 after '|' is used to create instances.
getMappings in interface EntitygetMappings in class AbstractEntityMap with property names as keys and column
         names as values.public N getName()
getName in interface NamedEntity<N extends Comparable<?>>public final long getPhysID()
public String getSchemaName()
Entity
getSchemaName in interface EntitygetSchemaName in class AbstractEntitypublic List<String> getUniqColumnNames()
Entity
getUniqColumnNames in interface EntitygetUniqColumnNames in class AbstractEntitypublic final void setComment(String comment)
MetaEntityMetaEntitys comment
setComment in interface MetaEntity<N extends Comparable<?>>comment - the comment to setpublic void setName(N name)
setName in interface NamedEntity<N extends Comparable<?>>public final void setPhysID(long physID)
| 
 | SRJRCFrames v0.1.296 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||