Class BindableList
- java.lang.Object
-
- io.ebeaninternal.server.persist.dmlbind.BindableList
-
- All Implemented Interfaces:
Bindable
public class BindableList extends Object implements Bindable
List of Bindable items.
-
-
Constructor Summary
Constructors Constructor Description BindableList(List<Bindable> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAll(List<Bindable> list)
void
addToUpdate(PersistRequestBean<?> request, List<Bindable> list)
For Updates including only changed properties add the Bindable to the list if it should be included in the 'update set'.void
dmlAppend(GenerateDmlRequest request)
append sql to the buffer with prefix and suffix options.void
dmlBind(BindableRequest bindRequest, EntityBean bean)
Bind given the request and bean.BindableList
excludeDraftOnly()
Return a bindable list that excludes @DraftOnly properties.boolean
isDraftOnly()
Return true if the underlying property is 'draft only'.boolean
isEmpty()
-
-
-
Constructor Detail
-
BindableList
public BindableList(List<Bindable> list)
-
-
Method Detail
-
excludeDraftOnly
public BindableList excludeDraftOnly()
Return a bindable list that excludes @DraftOnly properties.
-
isEmpty
public boolean isEmpty()
-
isDraftOnly
public boolean isDraftOnly()
Description copied from interface:Bindable
Return true if the underlying property is 'draft only'.- Specified by:
isDraftOnly
in interfaceBindable
-
addToUpdate
public void addToUpdate(PersistRequestBean<?> request, List<Bindable> list)
Description copied from interface:Bindable
For Updates including only changed properties add the Bindable to the list if it should be included in the 'update set'.- Specified by:
addToUpdate
in interfaceBindable
-
dmlAppend
public void dmlAppend(GenerateDmlRequest request)
Description copied from interface:Bindable
append sql to the buffer with prefix and suffix options.
-
dmlBind
public void dmlBind(BindableRequest bindRequest, EntityBean bean) throws SQLException
Description copied from interface:Bindable
Bind given the request and bean. The bean could be the oldValues bean when binding a update or delete where clause with ALL concurrency mode.- Specified by:
dmlBind
in interfaceBindable
- Throws:
SQLException
-
-