クラス AutoInsertImpl<T>
- java.lang.Object
-
- com.github.mygreen.sqlmapper.core.query.auto.AutoInsertImpl<T>
-
- 型パラメータ:
T- 処理対象となるエンティティの型
- すべての実装されたインタフェース:
AutoInsert<T>
public class AutoInsertImpl<T> extends Object implements AutoInsert<T>
挿入を行うSQLを自動生成するクエリの実装です。- 作成者:
- T.TSUCHIE
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 AutoInsertImpl(@NonNull SqlMapperContext context, T entity)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 AutoInsertImpl<T>excludes(PropertyPath<?>... properties)指定のプロパティを挿入対象から除外します。intexecute()クエリを実行します。SqlMapperContextgetContext()SqlMapperの設定情報。TgetEntity()挿入対象のエンティティのインスタンスEntityMetagetEntityMeta()エンティティのメタ情報Set<String>getExcludesProperties()挿入対象から除外するプロパティ一覧Set<String>getIncludesProperties()挿入対象とするプロパティ一覧IntegergetQueryTimeout()AutoInsertImpl<T>includes(PropertyPath<?>... properties)指定のプロパティのみを挿入対象とします。AutoInsertImpl<T>queryTimeout(int seconds)クエリタイムアウトの秒数を設定します。
-
-
-
コンストラクタの詳細
-
AutoInsertImpl
public AutoInsertImpl(@NonNull @NonNull SqlMapperContext context, @NonNull T entity)
-
-
メソッドの詳細
-
queryTimeout
public AutoInsertImpl<T> queryTimeout(int seconds)
インタフェースからコピーされた説明:AutoInsertクエリタイムアウトの秒数を設定します。-1 を指定するとJDBC ドライバーのデフォルト値を使用します。
- 定義:
queryTimeoutインタフェース内AutoInsert<T>- パラメータ:
seconds- クエリタイムアウトの秒数- 戻り値:
- 自身のインスタンス。
-
includes
public AutoInsertImpl<T> includes(PropertyPath<?>... properties)
インタフェースからコピーされた説明:AutoInsert指定のプロパティのみを挿入対象とします。ID(主キー)、バージョンキー(排他キー)の場合は、必ず挿入対象となります。
AutoInsert.excludes(PropertyPath...)と同時に指定した場合、AutoInsert.includes(PropertyPath...)が優先されます。- 定義:
includesインタフェース内AutoInsert<T>- パラメータ:
properties- 挿入対象のプロパティ情報。- 戻り値:
- 自身のインスタンス。
-
excludes
public AutoInsertImpl<T> excludes(PropertyPath<?>... properties)
インタフェースからコピーされた説明:AutoInsert指定のプロパティを挿入対象から除外します。ID(主キー)、バージョンキー(排他キー)の場合は、必ず挿入対象となります。
AutoInsert.includes(PropertyPath...)と同時に指定した場合、AutoInsert.includes(PropertyPath...)が優先されます。- 定義:
excludesインタフェース内AutoInsert<T>- パラメータ:
properties- 除外対象のプロパティ情報。- 戻り値:
- 自身のインスタンス。
-
execute
public int execute()
インタフェースからコピーされた説明:AutoInsertクエリを実行します。- 定義:
executeインタフェース内AutoInsert<T>- 戻り値:
- 挿入した行数。
-
getContext
public SqlMapperContext getContext()
SqlMapperの設定情報。
-
getEntity
public T getEntity()
挿入対象のエンティティのインスタンス
-
getEntityMeta
public EntityMeta getEntityMeta()
エンティティのメタ情報
-
getQueryTimeout
public Integer getQueryTimeout()
-
-