Class BindableUnidirectional
- java.lang.Object
-
- io.ebeaninternal.server.persist.dmlbind.BindableUnidirectional
-
- All Implemented Interfaces:
Bindable
public class BindableUnidirectional extends Object implements Bindable
Bindable for a unidirectional relationship.This inserts the foreign key value that is retrieved from the id of the parentBean.
-
-
Constructor Summary
Constructors Constructor Description BindableUnidirectional(BeanDescriptor<?> desc, BeanPropertyAssocOne<?> unidirectional)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 request, EntityBean bean)
Bind given the request and bean.boolean
isDraftOnly()
Return true if the underlying property is 'draft only'.String
toString()
-
-
-
Constructor Detail
-
BindableUnidirectional
public BindableUnidirectional(BeanDescriptor<?> desc, BeanPropertyAssocOne<?> unidirectional)
-
-
Method Detail
-
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 request, 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
-
-