public abstract class TnAbstractEntityHandler extends TnAbstractBasicSqlHandler
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected TnBeanMetaData |
_beanMetaData |
protected Object[] |
_bindVariables |
protected ValueType[] |
_bindVariableValueTypes |
protected TnPropertyType[] |
_boundPropTypes |
protected DeleteOption<? extends ConditionBean> |
_deleteOption |
protected InsertOption<? extends ConditionBean> |
_insertOption |
protected List<Timestamp> |
_newTimestampList |
protected List<Long> |
_newVersionNoList |
protected boolean |
_optimisticLockHandling |
protected UpdateOption<? extends ConditionBean> |
_updateOption |
protected boolean |
_versionNoAutoIncrementOnMemory |
_dataSource, _exceptionMessageSqlArgs, _sql, _statementFactory| コンストラクタと説明 |
|---|
TnAbstractEntityHandler(DataSource dataSource,
StatementFactory statementFactory,
String sql,
TnBeanMetaData beanMetaData,
TnPropertyType[] boundPropTypes) |
addBatch, assertObjectNotNull, bindArgs, bindArgs, bindArgs, buildDisplaySql, buildExceptionMessageSql, close, close, close, createDisplaySqlBuilder, createInheritedConnectionDataSource, createResourcedLogDateDisplayStyle, createSQLExceptionHandler, createSQLExceptionResource, createSqlLogDisplaySqlBuilder, doLogSql, executeBatch, executeProcedure, executeQuery, executeUpdate, findValueType, getArgTypes, getBatchUpdateSQLFailureProcessTitle, getBindVariableText, getConnection, getManualThreadDataSourceHandler, getSpecifiedLogDateDisplayStyle, getSqlFireHook, getSqlLogHander, getSqlLogRegistry, getSqlResultHander, getUpdateSQLFailureProcessTitle, handleSQLException, hasSqlFireHook, hasSqlLogHandler, hasSqlResultHandler, hookSqlFireBefore, hookSqlFireFinally, isContainsLineSeparatorInSql, isInternalDebugEnabled, isLogEnabled, isSaveMillis, ln, log, logDisplaySql, logSql, newDisplaySqlBuilder, prepareCall, prepareSqlLogInfo, prepareStatement, processBeforeLogging, pushToSqlLogRegistry, saveAfterSqlTimeMillis, saveBeforeSqlTimeMillis, saveHookSqlLogInfo, saveResultSqlLogInfo, setExceptionMessageSqlArgs, setFetchSize, setMaxRows, systemTimeprotected final TnBeanMetaData _beanMetaData
protected final TnPropertyType[] _boundPropTypes
protected boolean _optimisticLockHandling
protected boolean _versionNoAutoIncrementOnMemory
protected InsertOption<? extends ConditionBean> _insertOption
protected UpdateOption<? extends ConditionBean> _updateOption
protected DeleteOption<? extends ConditionBean> _deleteOption
protected Object[] _bindVariables
protected ValueType[] _bindVariableValueTypes
public TnAbstractEntityHandler(DataSource dataSource, StatementFactory statementFactory, String sql, TnBeanMetaData beanMetaData, TnPropertyType[] boundPropTypes)
public int execute(Object[] args)
protected int execute(Connection conn, Object bean)
protected void processBefore(Connection conn, Object bean)
protected void processFinally(Connection conn, Object bean, RuntimeException sqlEx)
protected void processSuccess(Connection conn, Object bean, int ret)
protected void handleUpdateResultWithOptimisticLock(Object bean, int ret)
protected EntityAlreadyUpdatedException createEntityAlreadyUpdatedException(Object bean, int rows)
protected abstract void setupBindVariables(Object bean)
protected void setupInsertBindVariables(Object bean)
protected void setupUpdateBindVariables(Object bean)
protected void setupDeleteBindVariables(Object bean)
protected void doSetupUpdateWhereBindVariables(List<Object> varList, List<ValueType> varValueTypeList, Object bean, Set<String> uniqueDrivenPropSet)
protected void doRegisterUpdateWhereBindVariable(List<Object> varList, List<ValueType> varValueTypeList, Object bean, TnPropertyType pt)
protected void addNewTimestamp(Timestamp timestamp)
protected void addNewVersionNo(Long versionNo)
protected void updateTimestampIfNeed(Object bean)
protected void updateTimestampIfNeed(Object bean, int index)
protected void updateVersionNoIfNeed(Object bean)
protected void updateVersionNoIfNeed(Object bean, int index)
protected void disableIdentityGeneration(DataSource dataSource)
protected void enableIdentityGeneration(DataSource dataSource)
protected boolean isPrimaryKeyIdentityDisabled()
public static void delegateDisableIdentityGeneration(String tableDbName, DataSource dataSource, StatementFactory statementFactory)
public static void delegateEnableIdentityGeneration(String tableDbName, DataSource dataSource, StatementFactory statementFactory)
protected static TnIdentityGenerationHandler newIdentityGenerationHandler()
public TnBeanMetaData getBeanMetaData()
public void setOptimisticLockHandling(boolean optimisticLockHandling)
public void setVersionNoAutoIncrementOnMemory(boolean versionNoAutoIncrementOnMemory)
public void setInsertOption(InsertOption<? extends ConditionBean> insertOption)
public void setUpdateOption(UpdateOption<? extends ConditionBean> updateOption)
public void setDeleteOption(DeleteOption<? extends ConditionBean> deleteOption)
Copyright © 2014–2015 The DBFlute Project. All rights reserved.