EntityViewMethodAttributeMapping
, EntityViewParameterMapping
public interface EntityViewAttributeMapping
Modifier and Type | Interface | Description |
---|---|---|
static class |
EntityViewAttributeMapping.ContainerBehavior |
The behavior of a plural attribute container.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Class<? extends java.util.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. |
java.lang.Class<?> |
getDeclaredElementType() |
The attribute's element type, or
null if the attribute type is not a subtype of Collection or Map . |
java.lang.Class<?> |
getDeclaredKeyType() |
The attribute's key type, or
null if the attribute type is not a subtype of Map . |
java.lang.Class<?> |
getDeclaredType() |
Returns the attribute type.
|
EntityViewMapping |
getDeclaringView() |
Returns the mapping of the view declaring this attribute.
|
java.lang.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(java.lang.Class<? extends java.util.Comparator<?>> comparatorClass) |
Sets the container behavior to
EntityViewAttributeMapping.ContainerBehavior.SORTED using the given
comparator class, if given, for sorting. |
void |
setDefaultBatchSize(java.lang.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(java.lang.Class<? extends java.util.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 null
java.lang.Class<? extends java.util.Comparator<?>> getComparatorClass()
null
if there none.java.lang.Integer getDefaultBatchSize()
FetchStrategy.SELECT
fetching.void setDefaultBatchSize(java.lang.Integer defaultBatchSize)
FetchStrategy.SELECT
fetching.defaultBatchSize
- The default batch sizejava.lang.Class<?> getDeclaredType()
java.lang.Class<?> getDeclaredKeyType()
null
if the attribute type is not a subtype of Map
.null
java.lang.Class<?> getDeclaredElementType()
null
if the attribute type is not a subtype of Collection
or Map
.null
Copyright © 2014–2018 Blazebit. All rights reserved.