public final class BindableIdMap extends Object implements BindableId
| Constructor and Description |
|---|
BindableIdMap(BeanProperty[] uids,
BeanDescriptor<?> desc) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChanged(PersistRequestBean<?> request,
List<Bindable> list)
Does nothing for BindableId.
|
boolean |
deriveConcatenatedId(PersistRequestBean<?> persist)
Create the concatenated id for inserts with PFK relationships.
|
void |
dmlAppend(GenerateDmlRequest request,
boolean checkIncludes)
append sql to the buffer with prefix and suffix options.
|
void |
dmlBind(BindableRequest request,
boolean checkIncludes,
Object bean)
Bind given the request and bean.
|
void |
dmlBindWhere(BindableRequest request,
boolean checkIncludes,
Object bean) |
void |
dmlInsert(GenerateDmlRequest request,
boolean checkIncludes)
append sql to the buffer with prefix and suffix options.
|
void |
dmlWhere(GenerateDmlRequest request,
boolean checkIncludes,
Object bean)
Id values are never null in where clause.
|
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.
|
String |
toString() |
public BindableIdMap(BeanProperty[] uids, BeanDescriptor<?> desc)
public boolean isEmpty()
BindableIdisEmpty in interface BindableIdpublic boolean isConcatenated()
BindableIdisConcatenated in interface BindableIdpublic String getIdentityColumn()
BindableIdgetIdentityColumn in interface BindableIdpublic void addChanged(PersistRequestBean<?> request, List<Bindable> list)
addChanged in interface Bindablepublic void dmlWhere(GenerateDmlRequest request, boolean checkIncludes, Object bean)
public void dmlInsert(GenerateDmlRequest request, boolean checkIncludes)
Bindablepublic void dmlAppend(GenerateDmlRequest request, boolean checkIncludes)
Bindablepublic void dmlBind(BindableRequest request, boolean checkIncludes, Object bean) throws SQLException
BindabledmlBind in interface BindableSQLExceptionpublic void dmlBindWhere(BindableRequest request, boolean checkIncludes, Object bean) throws SQLException
dmlBindWhere in interface BindableSQLExceptionpublic boolean deriveConcatenatedId(PersistRequestBean<?> persist)
BindableIdReally only where there are ManyToOne assoc beans that make up the primary key and the values can be got from those.
deriveConcatenatedId in interface BindableIdCopyright © 2014. All Rights Reserved.