public final class InsertMeta extends Object
| Constructor and Description |
|---|
InsertMeta(DatabasePlatform dbPlatform,
BeanDescriptor<?> desc,
Bindable shadowFKey,
BindableId id,
Bindable all) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(DmlHandler request,
Object bean,
boolean withId)
Bind the request based on whether the id value(s) are null.
|
boolean |
deriveConcatenatedId(PersistRequestBean<?> persist)
Return true if the Id can be derived from other property values.
|
String[] |
getIdentityDbColumns() |
String |
getSelectLastInsertedId()
Returns sql that is used to fetch back the last inserted id.
|
String |
getSql(boolean withId)
get the sql based whether the id value(s) are null.
|
boolean |
isConcatinatedKey()
Return true if this is a concatenated key.
|
boolean |
isEmptyStringToNull()
Return true if empty strings should be treated as null.
|
boolean |
supportsGetGeneratedKeys()
Return true if getGeneratedKeys is supported by the underlying jdbc
driver and database.
|
public InsertMeta(DatabasePlatform dbPlatform, BeanDescriptor<?> desc, Bindable shadowFKey, BindableId id, Bindable all)
public boolean isEmptyStringToNull()
public boolean isConcatinatedKey()
public String[] getIdentityDbColumns()
public String getSelectLastInsertedId()
This is only for DB's that do not support getGeneratedKeys. For MS SQLServer 2000 this could return "SELECT (at)(at)IDENTITY as id".
public boolean supportsGetGeneratedKeys()
public boolean deriveConcatenatedId(PersistRequestBean<?> persist)
public void bind(DmlHandler request, Object bean, boolean withId) throws SQLException
SQLExceptionpublic String getSql(boolean withId)
Copyright © 2014. All Rights Reserved.