public interface EntityViewAttributeMapping
| Modifier and Type | Interface and Description |
|---|---|
static class |
EntityViewAttributeMapping.ContainerBehavior
The behavior of a plural attribute container.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Comparator<?>> |
getComparatorClass()
Returns the comparator class, or
null if there none. |
EntityViewAttributeMapping.ContainerBehavior |
getContainerBehavior()
Returns the behavior of a plural attribute container if the attribute is plural, or
null otherwise. |
Class<?> |
getDeclaredElementType()
|
Class<?> |
getDeclaredKeyType()
The attribute's key type, or
null if the attribute type is not a subtype of Map. |
Class<?> |
getDeclaredType()
Returns the attribute type.
|
EntityViewMapping |
getDeclaringView()
Returns the mapping of the view declaring this attribute.
|
Integer |
getDefaultBatchSize()
Returns the default batch size to use for batched
FetchStrategy.SELECT fetching. |
boolean |
isCollection()
Returns whether this attribute is of the plural type.
|
void |
setContainerDefault()
Sets the container behavior to
EntityViewAttributeMapping.ContainerBehavior.DEFAULT. |
void |
setContainerIndexed()
Sets the container behavior to
EntityViewAttributeMapping.ContainerBehavior.INDEXED. |
void |
setContainerOrdered()
Sets the container behavior to
EntityViewAttributeMapping.ContainerBehavior.ORDERED. |
void |
setContainerSorted(Class<? extends Comparator<?>> comparatorClass)
Sets the container behavior to
EntityViewAttributeMapping.ContainerBehavior.SORTED using the given
comparator class, if given, for sorting. |
void |
setDefaultBatchSize(Integer defaultBatchSize)
Sets the default batch size to use for batched
FetchStrategy.SELECT fetching. |
EntityViewMapping getDeclaringView()
boolean isCollection()
true if this attribute is of the plural type, false otherwiseEntityViewAttributeMapping.ContainerBehavior getContainerBehavior()
null otherwise.void setContainerDefault()
EntityViewAttributeMapping.ContainerBehavior.DEFAULT.void setContainerIndexed()
EntityViewAttributeMapping.ContainerBehavior.INDEXED.void setContainerOrdered()
EntityViewAttributeMapping.ContainerBehavior.ORDERED.void setContainerSorted(Class<? extends Comparator<?>> comparatorClass)
EntityViewAttributeMapping.ContainerBehavior.SORTED using the given
comparator class, if given, for sorting. If none is given, the key/element type
is expected to implement Comparable.comparatorClass - The class of the comparator to use for sorting or nullClass<? extends Comparator<?>> getComparatorClass()
null if there none.Integer getDefaultBatchSize()
FetchStrategy.SELECT fetching.void setDefaultBatchSize(Integer defaultBatchSize)
FetchStrategy.SELECT fetching.defaultBatchSize - The default batch sizeClass<?> getDeclaredType()
Class<?> getDeclaredKeyType()
null if the attribute type is not a subtype of Map.nullClass<?> getDeclaredElementType()
nullCopyright © 2014–2018 Blazebit. All rights reserved.