public class BundleDef extends EntityType
| Modifier and Type | Field and Description |
|---|---|
static String |
BUNDLE_DEF_NAME |
| Constructor and Description |
|---|
BundleDef()
Construct with default root name: Bundle
|
BundleDef(String name)
Construct with given root name
|
| Modifier and Type | Method and Description |
|---|---|
BundleDef |
add(String propertyName,
PropertyDef prop) |
BundleDef |
done() |
BundleDef |
done(Collection<EntityType> values) |
EntityType |
findType(String typeName) |
List<EntityType> |
getAllEntityTypes()
get all non-root entities
|
int |
getExtraFieldsCnt()
method counts number of extra (simple) fields mapped to columns
|
TupleDef |
getRootTupleDef() |
TupleDef |
getTupleDef(String typeName) |
TupleDef |
getTupleDef(String typeName,
boolean checkRoot) |
List<TupleDef> |
getTupleDefs() |
boolean |
hasExtraFields()
method checks if root entity has extra (simple) fields mapped to columns
|
boolean |
isRoot() |
void |
setRootTupleDef(TupleDef rootTupleDef) |
void |
setTupleDefs(Collection<TupleDef> tupleDefs) |
String |
toString() |
equals, getDescription, getName, getProp, getPropCount, getProps, hasDescription, hashCode, isPersistent, isTransient, setDescription, setPersistent, setStatepublic static final String BUNDLE_DEF_NAME
public BundleDef()
public BundleDef(String name)
name - bundle def namepublic BundleDef add(String propertyName, PropertyDef prop)
add in class EntityTypepublic void setTupleDefs(Collection<TupleDef> tupleDefs)
public BundleDef done()
public BundleDef done(Collection<EntityType> values)
public List<EntityType> getAllEntityTypes()
EntityTypepublic EntityType findType(String typeName)
public void setRootTupleDef(TupleDef rootTupleDef)
public TupleDef getRootTupleDef()
public boolean isRoot()
isRoot in class EntityTypepublic boolean hasExtraFields()
public int getExtraFieldsCnt()
public String toString()
toString in class EntityTypeCopyright © 2021. All rights reserved.