public abstract class AbstractPersistentProperty<P extends PersistentProperty<P>> extends ObjectSE implements PersistentProperty<P>
PersistentProperty
の単純な実装。isIdProperty, isVersionProperty
コンストラクターと説明 |
---|
AbstractPersistentProperty(Property property, PersistentEntity<?,P> owner, SimpleTypeHolder simpleTypeHolder) |
修飾子と型 | メソッドと説明 |
---|---|
protected abstract Association<P> | createAssociation() |
boolean | equals(ObjectSE obj) |
ClassSE<?> | getActualType() プロパティの実際の型を返します。 |
Association<P> | getAssociation() |
ClassSE<?> | getComponentType() 型が Collection SE の場合、型のコンポーネント型を返します。 |
FieldSE | getField() |
MethodSE | getGetter() 可能な場合は、プロパティ値にアクセスするための getter メソッドを返します。 |
ClassSE<?> | getMapValueType() プロパティが Map SE の場合、値の型を返します。 |
StringSE | getName() プロパティの名前 |
PersistentEntity<?,P> | getOwner() 現在の PersistentProperty を所有する PersistentEntity を返します。 |
IterableSE<? extends TypeInformation<?>> | getPersistentEntityTypes() プロパティが PersistentEntity を参照している場合、TypeInformation を返します。 |
protected Property | getProperty() |
ClassSE<?> | getRawType() 反映されたプロパティから取得された生の型を返します。 |
MethodSE | getSetter() プロパティ値を設定するための setter メソッドを返します。 |
StringSE | getSpelExpression() |
ClassSE<?> | getType() プロパティの型 |
TypeInformation<?> | getTypeInformation() プロパティの TypeInformation を返します。 |
MethodSE | getWither() 新しいオブジェクトインスタンスにプロパティ値を設定するために、枯れた Method SE を返します。 |
int | hashCode() |
boolean | isArray() プロパティが配列かどうかを返します。 |
boolean | isAssociation() プロパティが Association かどうかを返します。 |
boolean | isCollectionLike() プロパティが Collection SE、Iterable SE、配列のいずれであるかを返します。 |
boolean | isEntity() PersistentProperty の型が実際に PersistentEntity と見なされるかどうかを返します。 |
boolean | isImmutable() 現在のプロパティが不変かどうかを返します。つまり、setter がないか、バッキング Field SE が final であるかを返します。 |
boolean | isMap() プロパティが Map SE かどうかを返します。 |
boolean | isTransient() プロパティが一時的であるかどうかを返します。 |
boolean | isWritable() 現在のプロパティが書き込み可能かどうか、つまり、保持されている値をデータストアに書き込むかどうかを返します。 |
StringSE | toString() |
boolean | usePropertyAccess() プロパティ値の読み取りにプロパティアクセスを使用するかどうかを返します。 |
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
findAnnotation, findPropertyOrOwnerAnnotation, getAssociationTargetType, getRequiredAnnotation, getRequiredAssociation, getRequiredField, getRequiredGetter, getRequiredSetter, getRequiredWither, hasActualTypeAnnotation, isAnnotationPresent, isIdProperty, isVersionProperty
public AbstractPersistentProperty(Property property, PersistentEntity<?,P> owner, SimpleTypeHolder simpleTypeHolder)
protected abstract Association<P> createAssociation()
public StringSE getName()
PersistentProperty
PersistentProperty<P extends PersistentProperty<P>>
の getName
public ClassSE<?> getType()
PersistentProperty
PersistentProperty<P extends PersistentProperty<P>>
の getType
public ClassSE<?> getRawType()
PersistentProperty
PersistentProperty<P extends PersistentProperty<P>>
の getRawType
public TypeInformation<?> getTypeInformation()
PersistentProperty
TypeInformation
を返します。PersistentProperty<P extends PersistentProperty<P>>
の getTypeInformation
public IterableSE<? extends TypeInformation<?>> getPersistentEntityTypes()
PersistentProperty
PersistentEntity
を参照している場合は、TypeInformation
を返します。単純型を参照している場合は null を返します。Collection
SE のコンポーネント型または Map
SE の値型を透過的に返します。PersistentProperty<P extends PersistentProperty<P>>
の getPersistentEntityTypes
@Nullable public StringSE getSpelExpression()
PersistentProperty<P extends PersistentProperty<P>>
の getSpelExpression
public boolean isTransient()
PersistentProperty
PersistentProperty<P extends PersistentProperty<P>>
の isTransient
public boolean isWritable()
PersistentProperty
PersistentProperty<P extends PersistentProperty<P>>
の isWritable
public boolean isImmutable()
PersistentProperty
Field
SE が final
であるかを返します。PersistentProperty<P extends PersistentProperty<P>>
の isImmutable
Modifier.isFinal(int)
SEpublic boolean isAssociation()
PersistentProperty
Association
かどうかを返します。PersistentProperty<P extends PersistentProperty<P>>
の isAssociation
@Nullable public Association<P> getAssociation()
PersistentProperty<P extends PersistentProperty<P>>
の getAssociation
Association
の一部でない場合は null。public boolean isCollectionLike()
PersistentProperty
Collection
SE、Iterable
SE、配列のいずれであるかを返します。PersistentProperty<P extends PersistentProperty<P>>
の isCollectionLike
public boolean isMap()
PersistentProperty
Map
SE かどうかを返します。PersistentProperty<P extends PersistentProperty<P>>
の isMap
public boolean isArray()
PersistentProperty
PersistentProperty<P extends PersistentProperty<P>>
の isArray
public boolean isEntity()
PersistentProperty
PersistentProperty
の型が実際に PersistentEntity
と見なされるかどうかを返します。PersistentProperty<P extends PersistentProperty<P>>
の isEntity
PersistentEntity
。@Nullable public ClassSE<?> getComponentType()
PersistentProperty
Collection
SE の場合、その型のコンポーネント型を返します。プロパティが Map
SE の場合、キーの型を返します。PersistentProperty<P extends PersistentProperty<P>>
の getComponentType
Collection
SE でも Map
SE でもない場合は null。@Nullable public ClassSE<?> getMapValueType()
PersistentProperty
Map
SE の場合、値の型を返します。PersistentProperty<P extends PersistentProperty<P>>
の getMapValueType
Map
SE がない場合は nullpublic ClassSE<?> getActualType()
PersistentProperty
PersistentProperty<P extends PersistentProperty<P>>
の getActualType
public boolean usePropertyAccess()
PersistentProperty
PersistentProperty<P extends PersistentProperty<P>>
の usePropertyAccess
public int hashCode()
ObjectSE
の hashCodeSE
public StringSE toString()
ObjectSE
の toStringSE
public PersistentEntity<?,P> getOwner()
PersistentProperty
PersistentProperty
を所有する PersistentEntity
を返します。PersistentProperty<P extends PersistentProperty<P>>
の getOwner
protected Property getProperty()
@Nullable public MethodSE getGetter()
PersistentProperty
PersistentProperty<P extends PersistentProperty<P>>
の getGetter
@Nullable public MethodSE getSetter()
PersistentProperty
PersistentProperty<P extends PersistentProperty<P>>
の getSetter
@Nullable public FieldSE getField()
PersistentProperty<P extends PersistentProperty<P>>
の getField
@Nullable public MethodSE getWither()
PersistentProperty
Method
SE を返し、新しいオブジェクトインスタンスにプロパティ値を設定します。利用可能なウィザーがない場合は、null を返すことがあります。 Wither methods
SE は、新しいオブジェクトインスタンスを作成するプロパティ型の単一の引数を受け入れるプロパティバインドインスタンス methods
SE です。class Person { final String id; final String name; // … Person withName(String name) { return new Person(this.id, name); } }
PersistentProperty<P extends PersistentProperty<P>>
の getWither
Method
SE、それ以外の場合は null。Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.