Class Unit

All Implemented Interfaces:
Serializable, IBaseEntity, ICollectionManaged, ICoreEntity, IEntity, ISortableEntity

@Entity public class Unit extends SimpleEntity implements ICollectionManaged
Entity representing an unit which can be used in numeric values with unit or as content or order unit. Units are always grouped in collections.
uneceCode: String, optional, code matching the UNECE standard, used in systems such as bmeCat
symbol: String, optional, common abbreviation for the unit, such as kg for kilogram.
See Also:
  • Constructor Details

    • Unit

      public Unit()
      standard constructor
  • Method Details

    • getInternalDescription

      public String getInternalDescription()
      Specified by:
      getInternalDescription in interface IEntity
      Overrides:
      getInternalDescription in class SimpleEntity
      Returns:
      Unique identifier in combination with entity class if internalDescription property is defined as unique. Might be null.
    • getUneceCode

      public String getUneceCode()
    • setUneceCode

      public void setUneceCode(String uneceCode)
    • getSymbol

      public String getSymbol()
    • setSymbol

      public void setSymbol(String symbol)
    • isRootPerType

      public boolean isRootPerType()
      Description copied from interface: ICollectionManaged
      Flag that indicates if the entities have a root collection per type or if there is only one global root collection. if rootPerType true it can only apply to entities that have a type, i.e. ComplexEntities.
      Specified by:
      isRootPerType in interface ICollectionManaged
    • getType

      public ComplexTypeEntity getType()
      Specified by:
      getType in interface ICollectionManaged