クラス EntityPathBase<T>
- java.lang.Object
-
- com.github.mygreen.sqlmapper.metamodel.EntityPathBase<T>
-
- 型パラメータ:
T- エンティティのクラスタイプ
- すべての実装されたインタフェース:
EntityPath<T>,Expression<T>,Path<T>
public abstract class EntityPathBase<T> extends Object implements EntityPath<T>
エンティティのメタモデルのベースクラス。エンティティのメタモデルは基本的にこのクラスを実装して作成します。
- 作成者:
- T.TSUCHIE
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 EntityPathBase(Class<? extends T> type, EntityPathBase<?> parent, String name)親を持つエンティティのメタモデルのインスタンスを作成します。EntityPathBase(Class<? extends T> type, String name)エンティティのメタモデルのインスタンスを作成します。
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 <C> voidaccept(Visitor<C> visitor, C context)式であるノードを巡回するためのVisitorを受け付けます。protected BooleanPathcreateBoolean(String property)boolean型またはそのラッパークラス型のプロパティを作成します。protected <A extends Enum<A>>
EnumPath<A>createEnum(String property, Class<? super A> type)列挙型のプロパティを作成します。protected <A> GeneralPath<A>createGeneral(String property, Class<? super A> type)汎用的な型のプロパティを作成します。protected LocalDatePathcreateLocalDate(String property)LocalDate型のプロパティを作成します。protected LocalDateTimePathcreateLocalDateTime(String property)LocalDateTime型のプロパティを作成します。protected LocalTimePathcreateLocalTime(String property)LocalTime型のプロパティを作成します。protected <A extends Number & Comparable<A>>
NumberPath<A>createNumber(String property, Class<? super A> type)数値型のプロパティを作成します。protected SqlDatePathcreateSqlDate(String property)Date型のプロパティを作成します。protected SqlTimePathcreateSqlTime(String property)Time型のプロパティを作成します。protected SqlTimestampPathcreateSqlTimestamp(String property)Timestamp型のプロパティを作成します。protected StringPathcreateString(String property)文字列型のプロパティを作成します。protected UtilDatePathcreateUtilDate(String property)Date型のプロパティを作成します。PropertyPath<?>findPropertyPath(String propertyName)指定したプロパティ情報を検索する。PathMetagetPathMeta()エンティティのメタ情報PropertyPath<?>getPropertyPath(String propertyName)指定したプロパティ情報を取得する。Class<? extends T>getType()エンティティタイプ
-
-
-
コンストラクタの詳細
-
EntityPathBase
public EntityPathBase(Class<? extends T> type, String name)
エンティティのメタモデルのインスタンスを作成します。- パラメータ:
type- エンティティのタイプ。name- エンティティ名。
-
EntityPathBase
public EntityPathBase(Class<? extends T> type, EntityPathBase<?> parent, String name)
親を持つエンティティのメタモデルのインスタンスを作成します。- パラメータ:
type- エンティティのタイプparent- 親の情報name- エンティティ名
-
-
メソッドの詳細
-
getPropertyPath
public PropertyPath<?> getPropertyPath(String propertyName)
インタフェースからコピーされた説明:EntityPath指定したプロパティ情報を取得する。- 定義:
getPropertyPathインタフェース内EntityPath<T>- パラメータ:
propertyName- プロパティ名- 戻り値:
- プロパティ情報。指定したプロパティを持たない場合はnull を返します。
-
findPropertyPath
public PropertyPath<?> findPropertyPath(String propertyName)
インタフェースからコピーされた説明:EntityPath指定したプロパティ情報を検索する。 もし、指定したプロパティが埋め込みエンティティ内に存在すれば、埋め込みエンティティ内のプロパティを返す。- 定義:
findPropertyPathインタフェース内EntityPath<T>- パラメータ:
propertyName- プロパティ名- 戻り値:
- プロパティ情報。指定したプロパティを持たない場合はnull を返します。
-
createString
protected StringPath createString(String property)
文字列型のプロパティを作成します。- パラメータ:
property- プロパティ名- 戻り値:
- 文字列型のプロパティ。
-
createBoolean
protected BooleanPath createBoolean(String property)
boolean型またはそのラッパークラス型のプロパティを作成します。- パラメータ:
property- プロパティ名- 戻り値:
- boolean型またはそのラッパークラス型のプロパティ
-
createNumber
protected <A extends Number & Comparable<A>> NumberPath<A> createNumber(String property, Class<? super A> type)
数値型のプロパティを作成します。- 型パラメータ:
A- 数値型のタイプ- パラメータ:
property- プロパティ名type- 数値型のクラス- 戻り値:
- 数値型のプロパティ
-
createEnum
protected <A extends Enum<A>> EnumPath<A> createEnum(String property, Class<? super A> type)
列挙型のプロパティを作成します。- 型パラメータ:
A- 列挙型のタイプ- パラメータ:
property- プロパティ名type- 列挙型のクラス- 戻り値:
- 列挙型のプロパティ
-
createSqlDate
protected SqlDatePath createSqlDate(String property)
Date型のプロパティを作成します。- パラメータ:
property- プロパティ名- 戻り値:
Date型のプロパティ
-
createSqlTime
protected SqlTimePath createSqlTime(String property)
Time型のプロパティを作成します。- パラメータ:
property- プロパティ名- 戻り値:
Time型のプロパティ
-
createSqlTimestamp
protected SqlTimestampPath createSqlTimestamp(String property)
Timestamp型のプロパティを作成します。- パラメータ:
property- プロパティ名- 戻り値:
Timestamp型のプロパティ
-
createUtilDate
protected UtilDatePath createUtilDate(String property)
Date型のプロパティを作成します。- パラメータ:
property- プロパティ名- 戻り値:
Date型のプロパティ
-
createLocalDate
protected LocalDatePath createLocalDate(String property)
LocalDate型のプロパティを作成します。- パラメータ:
property- プロパティ名- 戻り値:
LocalDate型のプロパティ
-
createLocalTime
protected LocalTimePath createLocalTime(String property)
LocalTime型のプロパティを作成します。- パラメータ:
property- プロパティ名- 戻り値:
LocalTime型のプロパティ
-
createLocalDateTime
protected LocalDateTimePath createLocalDateTime(String property)
LocalDateTime型のプロパティを作成します。- パラメータ:
property- プロパティ名- 戻り値:
LocalDateTime型のプロパティ
-
createGeneral
protected <A> GeneralPath<A> createGeneral(String property, Class<? super A> type)
汎用的な型のプロパティを作成します。byte[] 型など専用の式がないプロパティ型のときに用います。
- 型パラメータ:
A- プロパティの型- パラメータ:
property- プロパティ名type- プロパティのクラスタイプ- 戻り値:
- 汎用的な型のプロパティ
-
accept
public <C> void accept(Visitor<C> visitor, C context)
インタフェースからコピーされた説明:Expression式であるノードを巡回するためのVisitorを受け付けます。- 定義:
acceptインタフェース内Expression<T>- 型パラメータ:
C- コンテキストのタイプ- パラメータ:
visitor- ビジターcontext- コンテキスト
-
getType
public Class<? extends T> getType()
エンティティタイプ- 定義:
getTypeインタフェース内Expression<T>- 戻り値:
- 式のクラスタイプ
-
getPathMeta
public PathMeta getPathMeta()
エンティティのメタ情報- 定義:
getPathMetaインタフェース内Path<T>- 戻り値:
- パスのメタ情報
-
-