|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.extension.jdbc.query.AbstractQuery<S>
org.seasar.extension.jdbc.query.AbstractAutoUpdate<T,AutoInsert<T>>
org.seasar.extension.jdbc.query.AutoInsertImpl<T>
T - エンティティの型です。public class AutoInsertImpl<T>
AutoInsertの実装クラスです。
| フィールドの概要 | |
|---|---|
protected boolean |
excludesNull
null値のプロパティを挿入から除外する場合true |
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 java.util.List<PropertyMeta> |
targetProperties
挿入対象となるプロパティメタデータの List |
protected boolean |
useGetGeneratedKeys
Statement.getGeneratedKeys()を使用する場合はtrue |
protected ValuesClause |
valuesClause
values句 |
| クラス org.seasar.extension.jdbc.query.AbstractAutoUpdate から継承されたフィールド |
|---|
entity, entityMeta, suppresOptimisticLockException |
| クラス org.seasar.extension.jdbc.query.AbstractQuery から継承されたフィールド |
|---|
callerClass, callerMethodName, completed, executedSql, jdbcManager, logger, paramList, queryTimeout |
| コンストラクタの概要 | |
|---|---|
AutoInsertImpl(JdbcManagerImplementor jdbcManager,
T entity)
|
|
| メソッドの概要 | |
|---|---|
protected java.sql.PreparedStatement |
createPreparedStatement(JdbcContext jdbcContext)
準備されたステートメントを作成します。 |
AutoInsert<T> |
excludes(java.lang.CharSequence... propertyNames)
指定のプロパティを挿入対象から除外します。 |
AutoInsert<T> |
excludesNull()
null値のプロパティを挿入対象から除外します。 |
protected java.lang.Object |
getIdValue(PropertyMeta propertyMeta)
バインドする識別子の値を返します。 |
AutoInsert<T> |
includes(java.lang.CharSequence... propertyNames)
指定のプロパティのみを挿入対象とします。 |
protected boolean |
isOptimisticLock()
楽観的同時実行制御を行っている場合は trueを返します。 |
protected void |
postExecute(java.sql.PreparedStatement ps)
準備されたステートメントの後処理を行います。 |
protected void |
prepare(java.lang.String methodName)
クエリの準備をします。 |
protected void |
prepareIntoClause()
into句の準備をします。 |
protected void |
prepareParams()
バインド変数を準備します. |
protected void |
prepareTargetProperties()
into句およびvalues句に設定されるプロパティの準備をします。 |
protected void |
prepareValuesClause()
value句の準備をします。 |
protected java.lang.String |
toSql()
SQLに変換します。 |
| クラス org.seasar.extension.jdbc.query.AbstractAutoUpdate から継承されたメソッド |
|---|
execute, executeInternal, getEntity, getEntityMeta, getPreparedStatement, incrementVersion, 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.Update から継承されたメソッド |
|---|
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 boolean excludesNull
null値のプロパティを挿入から除外する場合true
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 useGetGeneratedKeys
Statement.getGeneratedKeys()を使用する場合はtrue
| コンストラクタの詳細 |
|---|
public AutoInsertImpl(JdbcManagerImplementor jdbcManager,
T entity)
jdbcManager - 内部的なJDBCマネージャentity - エンティティ| メソッドの詳細 |
|---|
public AutoInsert<T> excludesNull()
AutoInsert の記述: null値のプロパティを挿入対象から除外します。
AutoInsert<T> 内の excludesNullpublic AutoInsert<T> includes(java.lang.CharSequence... propertyNames)
AutoInsert の記述:
AutoInsert<T> 内の includespropertyNames - 挿入対象とするプロパティ名の並び
public AutoInsert<T> excludes(java.lang.CharSequence... propertyNames)
AutoInsert の記述:
AutoInsert<T> 内の excludespropertyNames - 挿入対象から除外するプロパティ名の並び
protected void prepare(java.lang.String methodName)
AbstractQuery の記述:
AbstractQuery<AutoInsert<T>> 内の preparemethodName - メソッド名protected void prepareTargetProperties()
protected void prepareIntoClause()
protected void prepareValuesClause()
protected void prepareParams()
protected java.lang.Object getIdValue(PropertyMeta propertyMeta)
propertyMeta - プロパティメタデータ
protected java.lang.String toSql()
AbstractAutoUpdate<T,AutoInsert<T>> 内の toSqlprotected java.sql.PreparedStatement createPreparedStatement(JdbcContext jdbcContext)
AbstractAutoUpdate の記述:
AbstractAutoUpdate<T,AutoInsert<T>> 内の createPreparedStatementjdbcContext - JDBCコンテキスト
protected void postExecute(java.sql.PreparedStatement ps)
AbstractAutoUpdate の記述:
AbstractAutoUpdate<T,AutoInsert<T>> 内の postExecuteps - 準備されたステートメントprotected boolean isOptimisticLock()
AbstractAutoUpdate の記述: trueを返します。
AbstractAutoUpdate<T,AutoInsert<T>> 内の isOptimisticLocktrue
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||