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