Class ModelField

java.lang.Object
org.ofbiz.core.entity.model.ModelField

public class ModelField extends Object
Generic Entity - Field model class
Since:
2.0
Version:
$Revision: 1.1 $
Author:
David E. Jones
  • Field Details

    • name

      protected String name
      The name of the Field
    • type

      protected String type
      The type of the Field
    • colName

      protected String colName
      The col-name of the Field
    • isPk

      protected boolean isPk
      boolean which specifies whether or not the Field is a Primary Key
    • validators

      protected List<String> validators
      validators to be called when an update is done
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      The name of the Field
    • setName

      public void setName(String name)
    • getType

      public String getType()
      The type of the Field
    • setType

      public void setType(String type)
    • getColName

      public String getColName()
      The col-name of the Field
    • setColName

      public void setColName(String colName)
    • getIsPk

      public boolean getIsPk()
      boolean which specifies whether or not the Field is a Primary Key
    • setIsPk

      public void setIsPk(boolean isPk)
    • getValidator

      public String getValidator(int index)
      validators to be called when an update is done
    • getValidatorsSize

      public int getValidatorsSize()
    • addValidator

      public void addValidator(String validator)
    • removeValidator

      public String removeValidator(int index)