Attribute<X,Y>
, MethodAttribute<X,Y>
AbstractMethodPluralAttribute
, AbstractMethodSingularAttribute
public abstract class AbstractMethodAttribute<X,Y> extends AbstractAttribute<X,Y> implements MethodAttribute<X,Y>
Attribute.AttributeType, Attribute.MappingType, Attribute.MemberType
batchSize, convertedJavaType, correlated, correlationBasis, correlationExpression, correlationKeyAlias, correlationProvider, correlationResult, declaringType, fetches, fetchStrategy, id, javaType, mapping, mappingType, subqueryAlias, subqueryExpression, subqueryProvider
Modifier | Constructor | Description |
---|---|---|
protected |
AbstractMethodAttribute(ManagedViewTypeImplementor<X> viewType,
MethodAttributeMapping mapping,
int attributeIndex,
MetamodelBuildingContext context) |
Modifier and Type | Method | Description |
---|---|---|
protected java.util.Set<java.lang.Class<?>> |
createAllowedSubtypesSet() |
|
protected PluralObjectFactory<? extends java.util.Collection<?>> |
createCollectionFactory(MetamodelBuildingContext context) |
|
protected PluralObjectFactory<? extends java.util.Map<?,?>> |
createMapFactory(MetamodelBuildingContext context) |
|
protected int |
determineDirtyStateIndex(int dirtyStateIndex) |
|
protected boolean |
determineMutable(Type<?> elementType) |
|
protected boolean |
determineOptimisticLockProtected(MethodAttributeMapping mapping,
MetamodelBuildingContext context,
boolean mutable) |
|
protected java.util.Set<Type<?>> |
determinePersistSubtypeSet(Type<?> superType,
java.util.Set<ManagedViewTypeImplementor<?>> subtypes1,
java.util.Set<ManagedViewTypeImplementor<?>> subtypes2,
MetamodelBuildingContext context) |
|
protected java.util.Set<Type<?>> |
determineUpdateSubtypeSet(Type<?> superType,
java.util.Set<ManagedViewTypeImplementor<?>> subtypes1,
java.util.Set<ManagedViewTypeImplementor<?>> subtypes2,
MetamodelBuildingContext context) |
|
static java.lang.String |
extractAttributeName(java.lang.Class<?> viewType,
java.lang.reflect.Method m,
MetamodelBootContext context) |
|
int |
getAttributeIndex() |
|
protected static java.lang.String |
getAttributeName(java.lang.reflect.Method getterOrSetter) |
|
abstract int |
getDirtyStateIndex() |
|
AttributeFilterMapping |
getFilter(java.lang.String filterName) |
|
java.util.Map<java.lang.String,AttributeFilterMapping> |
getFilterMappings() |
|
java.util.Set<AttributeFilterMapping> |
getFilters() |
|
java.lang.reflect.Method |
getJavaMethod() |
|
java.lang.String |
getLocation() |
|
static java.lang.annotation.Annotation |
getMapping(java.lang.String attributeName,
java.lang.reflect.Method m,
MetamodelBootContext context) |
|
Attribute.MemberType |
getMemberType() |
|
java.lang.String |
getName() |
|
protected java.lang.Class<?>[] |
getTypeArguments() |
|
Y |
getValue(java.lang.Object o) |
|
abstract java.util.Map<java.lang.String,java.lang.String> |
getWritableMappedByMappings() |
|
boolean |
isOptimizeCollectionActionsEnabled() |
|
boolean |
needsDirtyTracker() |
checkAttribute, checkNestedAttribute, createCollectionInstantiator, createMapInstantiator, elementInheritanceSubtypeMappings, getAllowedSubtypes, getBatchSize, getCollectionInstantiator, getCollectionJoinMappings, getCollectionType, getConvertedJavaType, getCorrelated, getCorrelationBasis, getCorrelationExpression, getCorrelationKeyAlias, getCorrelationProvider, getCorrelationResult, getDeclaringType, getElementType, getFetches, getFetchStrategy, getJavaType, getKeyType, getMapInstantiator, getMapping, getMappingType, getSubqueryAlias, getSubqueryExpression, getSubqueryProvider, hasJoinFetchedCollections, isEmbedded, isId, isIndexed, isKeySubview, isQueryParameter, isSubquery, isUpdatable, isUpdateMappable, keyInheritanceSubtypeMappings, replaceThisFromMapping, stripThisFromMapping
getAttributeType, getBatchSize, getConvertedJavaType, getDeclaringType, getFetches, getFetchStrategy, getJavaType, getMappingType, isCollection, isCorrelated, isSubquery, isSubview
getInverseRemoveStrategy, getMappedBy, getPersistCascadeAllowedSubtypes, getUpdateCascadeAllowedSubtypes, isDeleteCascaded, isMutable, isOptimisticLockProtected, isOrphanRemoval, isPersistCascaded, isUpdatable, isUpdateCascaded
protected AbstractMethodAttribute(ManagedViewTypeImplementor<X> viewType, MethodAttributeMapping mapping, int attributeIndex, MetamodelBuildingContext context)
protected java.lang.Class<?>[] getTypeArguments()
getTypeArguments
in class AbstractAttribute<X,Y>
protected int determineDirtyStateIndex(int dirtyStateIndex)
protected java.util.Set<Type<?>> determinePersistSubtypeSet(Type<?> superType, java.util.Set<ManagedViewTypeImplementor<?>> subtypes1, java.util.Set<ManagedViewTypeImplementor<?>> subtypes2, MetamodelBuildingContext context)
protected java.util.Set<Type<?>> determineUpdateSubtypeSet(Type<?> superType, java.util.Set<ManagedViewTypeImplementor<?>> subtypes1, java.util.Set<ManagedViewTypeImplementor<?>> subtypes2, MetamodelBuildingContext context)
protected boolean determineMutable(Type<?> elementType)
protected final PluralObjectFactory<? extends java.util.Collection<?>> createCollectionFactory(MetamodelBuildingContext context)
protected final PluralObjectFactory<? extends java.util.Map<?,?>> createMapFactory(MetamodelBuildingContext context)
protected boolean determineOptimisticLockProtected(MethodAttributeMapping mapping, MetamodelBuildingContext context, boolean mutable)
protected static java.lang.String getAttributeName(java.lang.reflect.Method getterOrSetter)
public java.lang.String getLocation()
getLocation
in class AbstractAttribute<X,Y>
public java.lang.String getName()
getName
in interface MethodAttribute<X,Y>
public java.lang.reflect.Method getJavaMethod()
getJavaMethod
in interface MethodAttribute<X,Y>
public boolean needsDirtyTracker()
needsDirtyTracker
in class AbstractAttribute<X,Y>
public int getAttributeIndex()
public Y getValue(java.lang.Object o)
public abstract int getDirtyStateIndex()
public abstract java.util.Map<java.lang.String,java.lang.String> getWritableMappedByMappings()
protected final java.util.Set<java.lang.Class<?>> createAllowedSubtypesSet()
public boolean isOptimizeCollectionActionsEnabled()
isOptimizeCollectionActionsEnabled
in class AbstractAttribute<X,Y>
public Attribute.MemberType getMemberType()
getMemberType
in interface Attribute<X,Y>
public AttributeFilterMapping getFilter(java.lang.String filterName)
getFilter
in interface MethodAttribute<X,Y>
public java.util.Set<AttributeFilterMapping> getFilters()
getFilters
in interface MethodAttribute<X,Y>
public java.util.Map<java.lang.String,AttributeFilterMapping> getFilterMappings()
public static java.lang.String extractAttributeName(java.lang.Class<?> viewType, java.lang.reflect.Method m, MetamodelBootContext context)
public static java.lang.annotation.Annotation getMapping(java.lang.String attributeName, java.lang.reflect.Method m, MetamodelBootContext context)
Copyright © 2014–2018 Blazebit. All rights reserved.