Attribute<X,Y>
AbstractMethodAttribute
, AbstractParameterAttribute
public abstract class AbstractAttribute<X,Y> extends java.lang.Object implements Attribute<X,Y>
Attribute.AttributeType, Attribute.MappingType, Attribute.MemberType
Modifier and Type | Field | Description |
---|---|---|
protected int |
batchSize |
|
protected java.lang.Class<?> |
convertedJavaType |
|
protected java.lang.Class<?> |
correlated |
|
protected java.lang.String |
correlationBasis |
|
protected java.lang.String |
correlationExpression |
|
protected java.lang.String |
correlationKeyAlias |
|
protected java.lang.Class<? extends CorrelationProvider> |
correlationProvider |
|
protected java.lang.String |
correlationResult |
|
protected ManagedViewTypeImplementor<X> |
declaringType |
|
protected java.lang.String[] |
fetches |
|
protected FetchStrategy |
fetchStrategy |
|
protected boolean |
id |
|
protected java.lang.Class<Y> |
javaType |
|
protected java.lang.String |
mapping |
|
protected Attribute.MappingType |
mappingType |
|
protected java.lang.String |
subqueryAlias |
|
protected java.lang.String |
subqueryExpression |
|
protected java.lang.Class<? extends SubqueryProvider> |
subqueryProvider |
Constructor | Description |
---|---|
AbstractAttribute(ManagedViewTypeImplementor<X> declaringType,
AttributeMapping mapping,
MetamodelBuildingContext context) |
Modifier and Type | Method | Description |
---|---|---|
void |
checkAttribute(javax.persistence.metamodel.ManagedType<?> managedType,
MetamodelBuildingContext context) |
|
void |
checkNestedAttribute(java.util.List<AbstractAttribute<?,?>> parents,
javax.persistence.metamodel.ManagedType<?> managedType,
MetamodelBuildingContext context) |
|
protected CollectionInstantiator |
createCollectionInstantiator(PluralObjectFactory<? extends java.util.Collection<?>> collectionFactory,
boolean indexed,
boolean sorted,
boolean ordered,
java.util.Comparator comparator) |
|
protected MapInstantiator |
createMapInstantiator(PluralObjectFactory<? extends java.util.Map<?,?>> mapFactory,
boolean sorted,
boolean ordered,
java.util.Comparator comparator) |
|
protected abstract java.util.Map<ManagedViewTypeImplementor<?>,java.lang.String> |
elementInheritanceSubtypeMappings() |
|
abstract java.util.Set<java.lang.Class<?>> |
getAllowedSubtypes() |
|
int |
getBatchSize() |
|
abstract CollectionInstantiator |
getCollectionInstantiator() |
|
java.util.Set<java.lang.String> |
getCollectionJoinMappings(javax.persistence.metamodel.ManagedType<?> managedType,
MetamodelBuildingContext context) |
Collects all mappings that involve the use of a collection attribute for duplicate usage checks.
|
protected abstract PluralAttribute.CollectionType |
getCollectionType() |
|
java.lang.Class<?> |
getConvertedJavaType() |
|
java.lang.Class<?> |
getCorrelated() |
|
java.lang.String |
getCorrelationBasis() |
|
java.lang.String |
getCorrelationExpression() |
|
java.lang.String |
getCorrelationKeyAlias() |
|
java.lang.Class<? extends CorrelationProvider> |
getCorrelationProvider() |
|
java.lang.String |
getCorrelationResult() |
|
ManagedViewTypeImplementor<X> |
getDeclaringType() |
|
protected abstract Type<?> |
getElementType() |
|
java.lang.String[] |
getFetches() |
|
FetchStrategy |
getFetchStrategy() |
|
java.lang.Class<Y> |
getJavaType() |
|
protected abstract Type<?> |
getKeyType() |
|
abstract java.lang.String |
getLocation() |
|
abstract MapInstantiator |
getMapInstantiator() |
|
java.lang.String |
getMapping() |
|
Attribute.MappingType |
getMappingType() |
|
java.lang.String |
getSubqueryAlias() |
|
java.lang.String |
getSubqueryExpression() |
|
java.lang.Class<? extends SubqueryProvider> |
getSubqueryProvider() |
|
protected abstract java.lang.Class[] |
getTypeArguments() |
|
boolean |
hasJoinFetchedCollections() |
|
protected boolean |
isEmbedded() |
|
boolean |
isId() |
|
protected abstract boolean |
isIndexed() |
|
protected abstract boolean |
isKeySubview() |
|
abstract boolean |
isOptimizeCollectionActionsEnabled() |
|
boolean |
isQueryParameter() |
|
boolean |
isSubquery() |
|
abstract boolean |
isUpdatable() |
|
boolean |
isUpdateMappable() |
|
protected abstract java.util.Map<ManagedViewTypeImplementor<?>,java.lang.String> |
keyInheritanceSubtypeMappings() |
|
abstract boolean |
needsDirtyTracker() |
|
static java.lang.String |
replaceThisFromMapping(java.lang.String mapping,
java.lang.String root) |
|
static java.lang.String |
stripThisFromMapping(java.lang.String mapping) |
getAttributeType, getMemberType, isCollection, isCorrelated, isSubview
protected final ManagedViewTypeImplementor<X> declaringType
protected final java.lang.Class<Y> javaType
protected final java.lang.Class<?> convertedJavaType
protected final java.lang.String mapping
protected final java.lang.String[] fetches
protected final FetchStrategy fetchStrategy
protected final int batchSize
protected final java.lang.Class<? extends SubqueryProvider> subqueryProvider
protected final java.lang.String subqueryExpression
protected final java.lang.String subqueryAlias
protected final java.lang.Class<? extends CorrelationProvider> correlationProvider
protected final java.lang.String correlationBasis
protected final java.lang.String correlationResult
protected final java.lang.Class<?> correlated
protected final java.lang.String correlationKeyAlias
protected final java.lang.String correlationExpression
protected final Attribute.MappingType mappingType
protected final boolean id
public AbstractAttribute(ManagedViewTypeImplementor<X> declaringType, AttributeMapping mapping, MetamodelBuildingContext context)
public static java.lang.String stripThisFromMapping(java.lang.String mapping)
public static java.lang.String replaceThisFromMapping(java.lang.String mapping, java.lang.String root)
public java.util.Set<java.lang.String> getCollectionJoinMappings(javax.persistence.metamodel.ManagedType<?> managedType, MetamodelBuildingContext context)
managedType
- The JPA type against which to evaluate the mappingcontext
- The metamodel contextpublic boolean hasJoinFetchedCollections()
public boolean isUpdateMappable()
public java.lang.Class<?> getCorrelated()
public java.lang.String getCorrelationKeyAlias()
public java.lang.String getCorrelationExpression()
public abstract boolean needsDirtyTracker()
public void checkAttribute(javax.persistence.metamodel.ManagedType<?> managedType, MetamodelBuildingContext context)
public void checkNestedAttribute(java.util.List<AbstractAttribute<?,?>> parents, javax.persistence.metamodel.ManagedType<?> managedType, MetamodelBuildingContext context)
protected boolean isEmbedded()
protected abstract java.lang.Class[] getTypeArguments()
public abstract java.lang.String getLocation()
public abstract boolean isUpdatable()
protected abstract boolean isIndexed()
protected abstract PluralAttribute.CollectionType getCollectionType()
protected abstract Type<?> getElementType()
protected abstract java.util.Map<ManagedViewTypeImplementor<?>,java.lang.String> elementInheritanceSubtypeMappings()
protected abstract Type<?> getKeyType()
protected abstract java.util.Map<ManagedViewTypeImplementor<?>,java.lang.String> keyInheritanceSubtypeMappings()
protected abstract boolean isKeySubview()
public abstract java.util.Set<java.lang.Class<?>> getAllowedSubtypes()
public abstract boolean isOptimizeCollectionActionsEnabled()
public abstract CollectionInstantiator getCollectionInstantiator()
public abstract MapInstantiator getMapInstantiator()
protected final CollectionInstantiator createCollectionInstantiator(PluralObjectFactory<? extends java.util.Collection<?>> collectionFactory, boolean indexed, boolean sorted, boolean ordered, java.util.Comparator comparator)
protected final MapInstantiator createMapInstantiator(PluralObjectFactory<? extends java.util.Map<?,?>> mapFactory, boolean sorted, boolean ordered, java.util.Comparator comparator)
public final Attribute.MappingType getMappingType()
getMappingType
in interface Attribute<X,Y>
public final boolean isQueryParameter()
public final boolean isId()
public final java.lang.Class<? extends SubqueryProvider> getSubqueryProvider()
public final java.lang.String getSubqueryExpression()
public final java.lang.String getSubqueryAlias()
public final java.lang.Class<? extends CorrelationProvider> getCorrelationProvider()
public final java.lang.String getCorrelationBasis()
public final java.lang.String getCorrelationResult()
public final FetchStrategy getFetchStrategy()
getFetchStrategy
in interface Attribute<X,Y>
public final int getBatchSize()
getBatchSize
in interface Attribute<X,Y>
public final java.lang.String getMapping()
public final boolean isSubquery()
isSubquery
in interface Attribute<X,Y>
public final ManagedViewTypeImplementor<X> getDeclaringType()
getDeclaringType
in interface Attribute<X,Y>
public final java.lang.Class<Y> getJavaType()
getJavaType
in interface Attribute<X,Y>
public java.lang.Class<?> getConvertedJavaType()
getConvertedJavaType
in interface Attribute<X,Y>
public final java.lang.String[] getFetches()
getFetches
in interface Attribute<X,Y>
Copyright © 2014–2018 Blazebit. All rights reserved.