Class BundleDef

java.lang.Object
io.higson.runtime.model.def.EntityType
io.higson.runtime.model.def.BundleDef

public class BundleDef extends EntityType
Author:
przemek hertel
  • Field Details

  • Constructor Details

    • BundleDef

      public BundleDef()
      Construct with default root name: Bundle
    • BundleDef

      public BundleDef(String name)
      Construct with given root name
      Parameters:
      name - bundle def name
  • Method Details

    • add

      public BundleDef add(String propertyName, PropertyDef prop)
      Overrides:
      add in class EntityType
    • getTupleDefs

      public List<TupleDef> getTupleDefs()
    • setTupleDefs

      public void setTupleDefs(Collection<TupleDef> tupleDefs)
    • done

      public BundleDef done()
    • done

      public BundleDef done(Collection<EntityType> values)
    • getAllEntityTypes

      public List<EntityType> getAllEntityTypes()
      get all non-root entities
      Returns:
      list containing all entity types
      See Also:
    • findType

      public EntityType findType(String typeName)
    • setRootTupleDef

      public void setRootTupleDef(TupleDef rootTupleDef)
    • getTupleDef

      public TupleDef getTupleDef(String typeName)
    • getTupleDef

      public TupleDef getTupleDef(String typeName, boolean checkRoot)
    • getRootTupleDef

      public TupleDef getRootTupleDef()
    • isRoot

      public boolean isRoot()
      Overrides:
      isRoot in class EntityType
    • hasExtraFields

      public boolean hasExtraFields()
      method checks if root entity has extra (simple) fields mapped to columns
      Returns:
      boolean indicating whether root entity has extra (simple) fields mapped to columns
    • getExtraFieldsCnt

      public int getExtraFieldsCnt()
      method counts number of extra (simple) fields mapped to columns
      Returns:
      number of extra (simple) fields mapped to columns
    • toString

      public String toString()
      Overrides:
      toString in class EntityType