Class BeanClass

java.lang.Object
org.apache.empire.data.bean.BeanClass
All Implemented Interfaces:
Entity

public abstract class BeanClass extends Object implements Entity
BeanObject This class defines Metadata for any type of java class. For each class you want to describe create one Metadata class and derive it from BeanClass. A metadata definition consists primarily of the class name and a list of properties.
Author:
Rainer
  • Field Details

  • Constructor Details

  • Method Details

    • addProp

      protected void addProp(BeanProperty prop)
    • addProp

      protected BeanProperty addProp(String propname, DataType dataType, double size, boolean required, String controlType, boolean readOnly)
    • addProp

      protected final BeanProperty addProp(String propname, DataType dataType, double size, boolean required, String controlType)
    • addProp

      protected final BeanProperty addProp(String propname, DataType dataType, double size, boolean required, boolean readOnly)
    • addProp

      protected final BeanProperty addProp(String propname, DataType dataType, double size, boolean required)
    • setKeyColumns

      protected void setKeyColumns(Column[] keyColumns)
      Sets the list of key columns.
      Parameters:
      keyColumns - the list of key columns.
    • setKeyColumn

      protected final void setKeyColumn(Column keyColumn)
      Sets the key to a single column
      Parameters:
      keyColumn - the key column
    • getEntityName

      public String getEntityName()
      returns the name of this class
      Specified by:
      getEntityName in interface Entity
      Returns:
      the class name
    • getColumns

      public List<BeanProperty> getColumns()
      returns the list of key columns (if any)
      Specified by:
      getColumns in interface Entity
      Returns:
      the list of key columns or null.
    • getKeyColumns

      public Column[] getKeyColumns()
      returns the list of key columns (if any)
      Specified by:
      getKeyColumns in interface Entity
      Returns:
      the list of key columns or null.
    • getProperties

      public List<BeanProperty> getProperties()
      returns the list of properties for this class.
      Returns:
      the list of properties for this class.
    • getDomain

      public BeanDomain getDomain()
      returns the domain this class belongs to (if any)
      Returns:
      the domain this class belongs to or null.