Interface BindableId
-
- All Superinterfaces:
Bindable
- All Known Implementing Classes:
BindableIdEmpty
,BindableIdScalar
public interface BindableId extends Bindable
Adds support for id creation for concatenated ids on intersection tables.Specifically if the concatenated id object is null on insert this can be built from the matching ManyToOne associated beans. For example RoleUserId embeddedId object could be built from the associated Role and User beans.
This is only attempted if the id is null when it gets to the insert.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
deriveConcatenatedId(PersistRequestBean<?> persist)
Create the concatenated id for inserts with PFK relationships.String
getIdentityColumn()
Return the DB Column to use with genGeneratedKeys.boolean
isConcatenated()
Return true if this is a concatenated key.boolean
isEmpty()
Return true if there is no Id properties at all.-
Methods inherited from interface io.ebeaninternal.server.persist.dmlbind.Bindable
addToUpdate, dmlAppend, dmlBind, isDraftOnly
-
-
-
-
Method Detail
-
isEmpty
boolean isEmpty()
Return true if there is no Id properties at all.
-
isConcatenated
boolean isConcatenated()
Return true if this is a concatenated key.
-
getIdentityColumn
String getIdentityColumn()
Return the DB Column to use with genGeneratedKeys.
-
deriveConcatenatedId
boolean deriveConcatenatedId(PersistRequestBean<?> persist)
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.
-
-