Class BindablePropertyVersion
- java.lang.Object
-
- io.ebeaninternal.server.persist.dmlbind.BindablePropertyVersion
-
- All Implemented Interfaces:
Bindable
public class BindablePropertyVersion extends Object implements Bindable
Bindable for a Version BeanProperty. Obtains value from 'old values'.
-
-
Constructor Summary
Constructors Constructor Description BindablePropertyVersion(BeanProperty prop)
-
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)
Normal binding of a property value from the bean.boolean
isDraftOnly()
Return true if the underlying property is 'draft only'.String
toString()
-
-
-
Constructor Detail
-
BindablePropertyVersion
public BindablePropertyVersion(BeanProperty prop)
-
-
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
Normal binding of a property value from the bean.- Specified by:
dmlBind
in interfaceBindable
- Throws:
SQLException
-
-