public class TnQueryInsertDynamicCommand extends TnAbstractQueryDynamicCommand
_dataSource, _statementFactory| コンストラクタと説明 |
|---|
TnQueryInsertDynamicCommand(DataSource dataSource,
StatementFactory statementFactory) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
assertArgument(Object[] args) |
protected String |
buildQueryInsertTwoWaySql(Entity entity,
ConditionBean intoCB,
ConditionBean resourceCB,
InsertOption<ConditionBean> option,
List<TnPropertyType> boundPropTypeList) |
protected void |
disableIdentityGeneration(Entity entity) |
protected void |
enableIdentityGeneration(Entity entity) |
Object |
execute(Object[] args)
Execute SQL.
|
protected Entity |
extractEntityWithCheck(Object[] args) |
protected InsertOption<ConditionBean> |
extractInsertOptionWithCheck(Object[] args) |
protected ConditionBean |
extractIntoConditionBeanWithCheck(Object[] args) |
protected ConditionBean |
extractResourceConditionBeanWithCheck(Object[] args) |
protected String |
getUpdateSQLFailureProcessTitle() |
protected String |
ln() |
protected void |
prepareStatementConfigOnThreadIfExists(InsertOption<ConditionBean> option) |
protected String |
replace(String text,
String fromText,
String toText) |
createCommandContext, createCommandContextHandler, createSqlAnalyzer, filterSqlStringByCallbackFilter, getSqlStringFilter, newCommandContextHandlerassertObjectNotNullpublic TnQueryInsertDynamicCommand(DataSource dataSource, StatementFactory statementFactory)
public Object execute(Object[] args)
SqlExecutionargs - The arguments for SQL.protected ConditionBean extractIntoConditionBeanWithCheck(Object[] args)
protected ConditionBean extractResourceConditionBeanWithCheck(Object[] args)
protected InsertOption<ConditionBean> extractInsertOptionWithCheck(Object[] args)
protected void prepareStatementConfigOnThreadIfExists(InsertOption<ConditionBean> option)
protected void assertArgument(Object[] args)
protected String buildQueryInsertTwoWaySql(Entity entity, ConditionBean intoCB, ConditionBean resourceCB, InsertOption<ConditionBean> option, List<TnPropertyType> boundPropTypeList)
entity - The entity for fixed values. (NotNull)intoCB - The condition-bean for insert into. (NotNull)resourceCB - The condition-bean for resource. (NotNull)option - The option of insert. (NullAllowed)boundPropTypeList - The type list of bound property. (NotNull, Empty)protected void disableIdentityGeneration(Entity entity)
protected void enableIdentityGeneration(Entity entity)
protected String getUpdateSQLFailureProcessTitle()
protected String ln()
Copyright © 2014–2015 The DBFlute Project. All rights reserved.