public interface ContentFormsProducer extends FormDataProducer
FormDataProducer
for table template based form data. Will be returned by FormDataList.getProducer()
in database mode.Modifier and Type | Method and Description |
---|---|
IdProvidingFormData |
create()
Creates a new form data on the table template defined in the form definition.
|
IdProvidingFormData |
create(Entity entity)
Creates a new form data based on the given entity.
|
Select |
getSelect()
Returns the configured
select statement or null. |
TableTemplate |
getTableTemplate()
Returns the configured
table template . |
@NotNull IdProvidingFormData create()
IdProvidingFormData create(Entity entity)
entity
already exists in the belonging FormDataList
. You have to check for duplicates by yourself.entity
- the entity
to create the form data for.IllegalArgumentException
- if the EntityType
of the given entity doesn't match the EntityType
of the table template
@Nullable TableTemplate getTableTemplate()
table template
.table template
for this editor@Nullable Select getSelect()
select statement
or null.select statement
or null if no query is defined for this editorCopyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408