|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.caleigo.core.CompositeEntityDescriptor.Builder
The FieldGroupBuilder is a builder that builds a tree (of fields- and field-groups) in a top-down manner. But most users shouldn't have to worry about internal structur and that's why we provide the builder.
Constructor Summary | |
CompositeEntityDescriptor.Builder(IEntityDescriptor entityDescriptor)
|
|
CompositeEntityDescriptor.Builder(IEntityDescriptor entityDescriptor,
java.lang.String entityIdentity)
|
|
CompositeEntityDescriptor.Builder(IEntityDescriptor entityDescriptor,
java.lang.String entityIdentity,
boolean required)
Instantiate a new FieldGroupBuilder and begins the first group and make it the tree's root. |
Method Summary | |
void |
addFieldDescriptor(IFieldDescriptor field)
|
void |
addFieldDescriptor(IFieldDescriptor field,
java.lang.String codeName,
java.lang.String displayName)
|
void |
addFieldDescriptor(IFieldDescriptor field,
java.lang.String codeName,
java.lang.String displayName,
int flags)
Add a field to the current field group. |
void |
beginFieldGroup(IEntityDescriptor entityDescriptor)
|
void |
beginFieldGroup(IEntityDescriptor entityDescriptor,
IEntityRelationPath parentToChildPath)
|
void |
beginFieldGroup(IEntityDescriptor entityDescriptor,
java.lang.String entityIdentity)
|
void |
beginFieldGroup(IEntityDescriptor entityDescriptor,
java.lang.String entityIdentity,
boolean required)
|
void |
beginFieldGroup(IEntityDescriptor entityDescriptor,
java.lang.String entityIdentity,
IEntityRelationPath parentToChildPath)
|
void |
beginFieldGroup(IEntityDescriptor entityDescriptor,
java.lang.String entityIdentity,
IEntityRelationPath parentToChildPath,
boolean required)
Create a new field group and add it to the current field group as a child, i.e. let this newly created field group be the parent of future childs i.e. make a new tree branch. |
ICompositeEntityDescriptor |
createCompositeEntityDescriptor(java.lang.String codeName,
java.lang.String displayName,
java.lang.String dataSourceClassName,
int entityType)
|
void |
endFieldGroup()
Ends the current field group and climp up one level in the tree. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CompositeEntityDescriptor.Builder(IEntityDescriptor entityDescriptor)
public CompositeEntityDescriptor.Builder(IEntityDescriptor entityDescriptor, java.lang.String entityIdentity)
public CompositeEntityDescriptor.Builder(IEntityDescriptor entityDescriptor, java.lang.String entityIdentity, boolean required)
entityDescriptor
- entityIdentity
- id for the root field group.required
- determines what kind of joins that are to be made:
left/right/full outer join / inner join.ICompositeEntityDescriptor.ICompositeFieldGroup.getRequired()
Method Detail |
public void beginFieldGroup(IEntityDescriptor entityDescriptor)
public void beginFieldGroup(IEntityDescriptor entityDescriptor, java.lang.String entityIdentity)
public void beginFieldGroup(IEntityDescriptor entityDescriptor, IEntityRelationPath parentToChildPath)
public void beginFieldGroup(IEntityDescriptor entityDescriptor, java.lang.String entityIdentity, boolean required)
public void beginFieldGroup(IEntityDescriptor entityDescriptor, java.lang.String entityIdentity, IEntityRelationPath parentToChildPath)
public void beginFieldGroup(IEntityDescriptor entityDescriptor, java.lang.String entityIdentity, IEntityRelationPath parentToChildPath, boolean required)
entityDescriptor
- is the entity descriptor that all added
fields should be belong to. All added child field group will be
joined to this one.???????????????????????????????????????????????????????????????????????????????????????????entityIdentity
- is the named identity of the created field
group. It's optional. This will normally be the code name of
the base entity descriptor unless multiple instances of the
descriptor exists in the field group structure.required
- determines whether or not this field group's fields
are required or not in joins.CompositeEntityDescriptor.CompositeFieldGroup#CompositeFieldGroup(IBaseEntityDescriptor iBaseEntityDescriptor, String entityIdentity, IEntityRelationPath parentRelationPath, boolean required)
,
ICompositeEntityDescriptor.ICompositeFieldGroup.getRequired()
public void addFieldDescriptor(IFieldDescriptor field)
public void addFieldDescriptor(IFieldDescriptor field, java.lang.String codeName, java.lang.String displayName)
public void addFieldDescriptor(IFieldDescriptor field, java.lang.String codeName, java.lang.String displayName, int flags)
CompositeEntityDescriptor.CompositeFieldGroup#addFieldDescriptor(IFieldDescriptor field, String codeName, String displayName, int flags)
public void endFieldGroup()
public ICompositeEntityDescriptor createCompositeEntityDescriptor(java.lang.String codeName, java.lang.String displayName, java.lang.String dataSourceClassName, int entityType)
CompositeEntityDescriptor#CompositeEntityDescriptor(String codeName, String displayName, String dataSourceClassName, int entityType, IFieldDescriptor[] fieldDescriptors, Qualifier defaultQualifier)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |