Class BindableIdEmpty
- java.lang.Object
-
- io.ebeaninternal.server.persist.dmlbind.BindableIdEmpty
-
- All Implemented Interfaces:
Bindable
,BindableId
public class BindableIdEmpty extends Object implements BindableId
-
-
Constructor Summary
Constructors Constructor Description BindableIdEmpty()
-
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'.boolean
deriveConcatenatedId(PersistRequestBean<?> persist)
Create the concatenated id for inserts with PFK relationships.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.String
getIdentityColumn()
Return the DB Column to use with genGeneratedKeys.boolean
isConcatenated()
Return true if this is a concatenated key.boolean
isDraftOnly()
Return true if the underlying property is 'draft only'.boolean
isEmpty()
Return true if there is no Id properties at all.
-
-
-
Constructor Detail
-
BindableIdEmpty
public BindableIdEmpty()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
Description copied from interface:BindableId
Return true if there is no Id properties at all.- Specified by:
isEmpty
in interfaceBindableId
-
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)
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.
-
isConcatenated
public boolean isConcatenated()
Description copied from interface:BindableId
Return true if this is a concatenated key.- Specified by:
isConcatenated
in interfaceBindableId
-
getIdentityColumn
public String getIdentityColumn()
Description copied from interface:BindableId
Return the DB Column to use with genGeneratedKeys.- Specified by:
getIdentityColumn
in interfaceBindableId
-
deriveConcatenatedId
public boolean deriveConcatenatedId(PersistRequestBean<?> persist)
Description copied from interface:BindableId
Create the concatenated id for inserts with PFK relationships.Really only where there are ManyToOne assoc beans that make up the primary key and the values can be got from those.
- Specified by:
deriveConcatenatedId
in interfaceBindableId
-
-