public class ClassUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FETCH_METHOD_PREFIX |
Constructor and Description |
---|
ClassUtils() |
Modifier and Type | Method and Description |
---|---|
static Map<String,com.tinkerpop.blueprints.Direction> |
getDependentRelations(Class<?> cls)
Get a map of relationships keyed against their direction for
a given class.
|
static EntityClass |
getEntityType(Class<?> cls)
Get the entity type string for a given class.
|
static Map<String,Set<String>> |
getEnumPropertyKeys(Class<?> cls)
Get a collection of names for methods marked as unique properties.
|
static Map<String,Method> |
getFetchMethods(Class<?> cls)
Get a map of relationship-names keyed against the method to
instantiate them.
|
static Collection<String> |
getIndexedPropertyKeys(Class<?> cls)
Get a collection of names for methods marked as indexed properties.
|
static Collection<String> |
getMandatoryPropertyKeys(Class<?> cls)
Get a collection of names for methods marked as mandatory properties.
|
static Map<String,Method> |
getMetaMethods(Class<?> cls)
Get a map of relationship-names keyed against the method to
instantiate them.
|
static Collection<String> |
getPropertyKeys(Class<?> cls)
Get a collection of names for methods marked as properties.
|
static Collection<String> |
getUniquePropertyKeys(Class<?> cls)
Get a collection of names for methods marked as unique properties.
|
public static final String FETCH_METHOD_PREFIX
public static EntityClass getEntityType(Class<?> cls)
cls
- the entity type's Java classpublic static Map<String,com.tinkerpop.blueprints.Direction> getDependentRelations(Class<?> cls)
cls
- the entity's Java classpublic static Map<String,Method> getFetchMethods(Class<?> cls)
cls
- the entity's Java classpublic static Map<String,Method> getMetaMethods(Class<?> cls)
cls
- the entity's Java classpublic static Collection<String> getPropertyKeys(Class<?> cls)
cls
- the entity's Java classpublic static Collection<String> getMandatoryPropertyKeys(Class<?> cls)
cls
- the entity's Java classpublic static Collection<String> getIndexedPropertyKeys(Class<?> cls)
cls
- the entity's Java classpublic static Collection<String> getUniquePropertyKeys(Class<?> cls)
cls
- the entity's Java classCopyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.