public class InsertHandler extends DmlHandler
bindLog, dataBind, emptyStringToNull, loadedProps, logLevelSql, persistRequest, sql, transaction, updateGenValues| Constructor and Description |
|---|
InsertHandler(PersistRequestBean<?> persist,
InsertMeta meta)
Create to handle the insert execution.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind()
Generate and bind the insert statement.
|
void |
execute()
Execute the insert in a normal non batch fashion.
|
protected void |
executeDerivedRelationships() |
protected PreparedStatement |
getPstmt(SpiTransaction t,
String sql,
boolean useGeneratedKeys)
Check with useGeneratedKeys to get appropriate PreparedStatement.
|
boolean |
isIncluded(BeanProperty prop)
Return true if the property is included in this request.
|
void |
registerDerivedRelationship(DerivedRelationshipData derivedRelationship) |
addBatch, bind, bind, bindNoLog, bindNoLog, checkRowCount, close, getBindLog, getPersistRequest, getPstmt, isIncludedWhere, logSql, registerAdditionalProperty, registerUpdateGenValue, setAdditionalProperties, setIdValue, setUpdateGenValuespublic InsertHandler(PersistRequestBean<?> persist, InsertMeta meta)
public boolean isIncluded(BeanProperty prop)
BindableRequestisIncluded in interface BindableRequestisIncluded in class DmlHandlerpublic void bind()
throws SQLException
bind in interface PersistHandlerbind in class DmlHandlerSQLExceptionprotected PreparedStatement getPstmt(SpiTransaction t, String sql, boolean useGeneratedKeys) throws SQLException
getPstmt in class DmlHandlerSQLExceptionpublic void execute()
throws SQLException,
javax.persistence.OptimisticLockException
execute in interface PersistHandlerexecute in class DmlHandlerSQLExceptionjavax.persistence.OptimisticLockExceptionprotected void executeDerivedRelationships()
public void registerDerivedRelationship(DerivedRelationshipData derivedRelationship)
Copyright © 2014. All Rights Reserved.