|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.extension.jdbc.query.AbstractQuery<S>
org.seasar.extension.jdbc.query.AbstractAutoBatchUpdate<T,AutoBatchInsert<T>>
org.seasar.extension.jdbc.query.AutoBatchInsertImpl<T>
T - エンティティの型です。public class AutoBatchInsertImpl<T>
AutoBatchUpdateの実装クラスです。
| フィールドの概要 | |
|---|---|
protected java.util.Set<java.lang.String> |
excludesProperties
挿入から除外するプロパティ |
protected java.util.Set<java.lang.String> |
includesProperties
挿入対象とするプロパティ |
protected static java.lang.Long |
INITIAL_VERSION
バージョンプロパティの初期値 |
protected static java.lang.String |
INSERT_STATEMENT
INSERT文 |
protected IntoClause |
intoClause
into句 |
protected boolean |
supportBatch
バッチ更新が可能な場合は true |
protected java.util.List<PropertyMeta> |
targetProperties
更新対象となるプロパティメタデータの List |
protected boolean |
useGetGeneratedKeys
Statement.getGeneratedKeys()を使用する場合はtrue |
protected ValuesClause |
valuesClause
values句 |
| クラス org.seasar.extension.jdbc.query.AbstractAutoBatchUpdate から継承されたフィールド |
|---|
batchSize, entities, entityMeta, suppresOptimisticLockException |
| クラス org.seasar.extension.jdbc.query.AbstractQuery から継承されたフィールド |
|---|
callerClass, callerMethodName, completed, executedSql, jdbcManager, logger, paramList, queryTimeout |
| コンストラクタの概要 | |
|---|---|
AutoBatchInsertImpl(JdbcManagerImplementor jdbcManager,
java.util.List<T> entities)
|
|
| メソッドの概要 | |
|---|---|
protected java.sql.PreparedStatement |
createPreparedStatement(JdbcContext jdbcContext)
準備されたステートメントを作成します。 |
AutoBatchInsert<T> |
excludes(java.lang.CharSequence... propertyNames)
指定のプロパティを更新対象から除外します。 |
protected int[] |
executeBatch(java.sql.PreparedStatement ps)
バッチ更新を実行します。 |
protected java.lang.Object |
getIdValue(PropertyMeta propertyMeta,
T entity)
バインドする識別子の値を返します。 |
AutoBatchInsert<T> |
includes(java.lang.CharSequence... propertyNames)
指定のプロパティのみを更新対象とします。 |
protected boolean |
isOptimisticLock()
楽観的同時実行制御を行っている場合は trueを返します。 |
protected void |
postExecute(java.sql.PreparedStatement ps,
T entity)
INSERT文を実行後処理を行います。 |
protected void |
prepare(java.lang.String methodName)
クエリの準備をします。 |
protected void |
prepareIntoClause()
into句の準備をします。 |
protected void |
prepareParams(T entity)
バインド変数を準備します. |
protected void |
prepareTargetProperties()
into句に設定されるプロパティの準備をします。 |
protected void |
prepareValuesClause()
where句の準備をします。 |
protected java.lang.String |
toSql()
SQLに変換します。 |
| クラス org.seasar.extension.jdbc.query.AbstractAutoBatchUpdate から継承されたメソッド |
|---|
batchSize, execute, executeInternal, getEntities, getPreparedStatement, incrementVersions, prepareSql, validateRows |
| クラス org.seasar.extension.jdbc.query.AbstractQuery から継承されたメソッド |
|---|
addParam, addParam, addParam, addParam, assertNotCompleted, callerClass, callerMethodName, completed, getCallerClass, getCallerMethodName, getExecutedSql, getJdbcManager, getParam, getParamClasses, getParamSize, getParamValues, getParamValueTypes, getQueryTimeout, getValueType, handleResultSet, logSql, logSql, prepareCallerClassAndMethodName, prepareInParams, queryTimeout, resetParams, toStringArray |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| インタフェース org.seasar.extension.jdbc.BatchUpdate から継承されたメソッド |
|---|
batchSize, execute |
| インタフェース org.seasar.extension.jdbc.Query から継承されたメソッド |
|---|
callerClass, callerMethodName, queryTimeout |
| フィールドの詳細 |
|---|
protected static final java.lang.String INSERT_STATEMENT
protected static final java.lang.Long INITIAL_VERSION
protected final java.util.Set<java.lang.String> includesProperties
protected final java.util.Set<java.lang.String> excludesProperties
protected final java.util.List<PropertyMeta> targetProperties
List
protected final IntoClause intoClause
protected final ValuesClause valuesClause
protected boolean supportBatch
true
protected boolean useGetGeneratedKeys
Statement.getGeneratedKeys()を使用する場合はtrue
| コンストラクタの詳細 |
|---|
public AutoBatchInsertImpl(JdbcManagerImplementor jdbcManager,
java.util.List<T> entities)
jdbcManager - 内部的なJDBCマネージャentities - エンティティのリスト| メソッドの詳細 |
|---|
public AutoBatchInsert<T> includes(java.lang.CharSequence... propertyNames)
AutoBatchInsert の記述:
AutoBatchInsert<T> 内の includespropertyNames - 更新対象とするプロパティ名の並び
public AutoBatchInsert<T> excludes(java.lang.CharSequence... propertyNames)
AutoBatchInsert の記述:
AutoBatchInsert<T> 内の excludespropertyNames - 更新対象から除外するプロパティ名の並び
protected void prepare(java.lang.String methodName)
AbstractQuery の記述:
AbstractQuery<AutoBatchInsert<T>> 内の preparemethodName - メソッド名protected void prepareTargetProperties()
protected void prepareIntoClause()
protected void prepareValuesClause()
protected java.lang.String toSql()
AbstractAutoBatchUpdate<T,AutoBatchInsert<T>> 内の toSqlprotected java.sql.PreparedStatement createPreparedStatement(JdbcContext jdbcContext)
AbstractAutoBatchUpdate の記述:
AbstractAutoBatchUpdate<T,AutoBatchInsert<T>> 内の createPreparedStatementjdbcContext - JDBCコンテキスト
protected int[] executeBatch(java.sql.PreparedStatement ps)
AbstractAutoBatchUpdate の記述:
AbstractAutoBatchUpdate<T,AutoBatchInsert<T>> 内の executeBatchps - 準備されたステートメント
protected void prepareParams(T entity)
AbstractAutoBatchUpdate の記述:
AbstractAutoBatchUpdate<T,AutoBatchInsert<T>> 内の prepareParamsentity - エンティティ
protected java.lang.Object getIdValue(PropertyMeta propertyMeta,
T entity)
propertyMeta - プロパティメタデータentity - エンティティ
protected void postExecute(java.sql.PreparedStatement ps,
T entity)
GenerationType.IDENTITY方式で識別子の値を自動生成するIDジェネレータが使われた場合は、
生成された値をエンティティに反映します
ps - INSERT文を実行したStatemententity - エンティティprotected boolean isOptimisticLock()
AbstractAutoBatchUpdate の記述: trueを返します。
AbstractAutoBatchUpdate<T,AutoBatchInsert<T>> 内の isOptimisticLocktrue
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||