public final class BindableIdScalar extends Object implements BindableId
| Constructor and Description |
|---|
BindableIdScalar(BeanProperty uidProp) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChanged(PersistRequestBean<?> request,
List<Bindable> list)
Does nothing for BindableId.
|
boolean |
deriveConcatenatedId(PersistRequestBean<?> persist)
Should not be called as this is really only for concatenated keys.
|
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 BindableIdScalar(BeanProperty uidProp)
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 boolean deriveConcatenatedId(PersistRequestBean<?> persist)
deriveConcatenatedId in interface BindableIdpublic 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 BindableSQLExceptionCopyright © 2014. All Rights Reserved.