Package io.higson.runtime.model.def
Class BundleDef
java.lang.Object
io.higson.runtime.model.def.EntityType
io.higson.runtime.model.def.BundleDef
- Author:
- przemek hertel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(String propertyName, PropertyDef prop) done()done(Collection<EntityType> values) get all non-root entitiesintmethod counts number of extra (simple) fields mapped to columnsgetTupleDef(String typeName) getTupleDef(String typeName, boolean checkRoot) booleanmethod checks if root entity has extra (simple) fields mapped to columnsbooleanisRoot()voidsetRootTupleDef(TupleDef rootTupleDef) voidsetTupleDefs(Collection<TupleDef> tupleDefs) toString()Methods inherited from class io.higson.runtime.model.def.EntityType
equals, getDescription, getName, getProp, getPropCount, getProps, hasDescription, hashCode, isPersistent, isTransient, setDescription, setPersistent, setState
-
Field Details
-
BUNDLE_DEF_NAME
- See Also:
-
-
Constructor Details
-
BundleDef
public BundleDef()Construct with default root name: Bundle -
BundleDef
Construct with given root name- Parameters:
name- bundle def name
-
-
Method Details
-
add
- Overrides:
addin classEntityType
-
getTupleDefs
-
setTupleDefs
-
done
-
done
-
getAllEntityTypes
get all non-root entities- Returns:
- list containing all entity types
- See Also:
-
findType
-
setRootTupleDef
-
getTupleDef
-
getTupleDef
-
getRootTupleDef
-
isRoot
public boolean isRoot()- Overrides:
isRootin classEntityType
-
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
- Overrides:
toStringin classEntityType
-