public final class CollectionHandlers extends Object
CollectionHandler| Modifier and Type | Class and Description |
|---|---|
static class |
CollectionHandlers.EmptyEnumerator<T>
Enumerator for a null collection.
|
| Constructor and Description |
|---|
CollectionHandlers() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCollectionName(Class<?> javaClass)
Returns the associated string name for a given collection.
|
static Class<?> |
getCollectionType(String name)
Returns the collection's Java class from the collection name.
|
static CollectionHandler |
getHandler(Class<?> javaClass)
Returns the collection's handler based on the Java class.
|
static boolean |
hasHandler(Class<?> javaClass)
Returns true if the given class has an associated CollectionHandler.
|
static boolean |
isGetSetCollection(Class<?> javaClass)
Returns true if the collection requires get/set methods.
|
public static Class<?> getCollectionType(String name) throws MappingException
name - The collection nameMappingException - The named collection is not supportedpublic static boolean hasHandler(Class<?> javaClass)
javaClass - the class to search collection handlers forpublic static String getCollectionName(Class<?> javaClass)
javaClass - the class to search collection handlers forpublic static CollectionHandler getHandler(Class<?> javaClass) throws MappingException
javaClass - The collection's Java classMappingException - The collection class is not supportedpublic static boolean isGetSetCollection(Class<?> javaClass) throws MappingException
javaClass - The collection's java classMappingException - The collection class is not supportedCopyright © 2016. All rights reserved.