public class PojoUtils extends Object
Constructor and Description |
---|
PojoUtils() |
Modifier and Type | Method and Description |
---|---|
void |
fillPropHashFromDynamicObject(AAIResource aaiRes,
org.eclipse.persistence.dynamic.DynamicEntity meObject,
HashMap<String,Object> propHash,
Map<String,String> _propertyDataTypeMap,
AAIExtensionMap aaiExtMap)
Fill prop hash from dynamic object.
|
<T> void |
fillPropHashFromObject(T clazz,
HashMap<String,Object> propHash,
Map<String,String> _propertyDataTypeMap,
AAIExtensionMap aaiExtMap)
Fill prop hash from object.
|
void |
getAaiDynamicObjectFromVertex(AAIResource aaiRes,
org.eclipse.persistence.dynamic.DynamicEntity meObject,
com.thinkaurelius.titan.core.TitanVertex vert,
Map<String,String> _propertyDataTypeMap)
Gets the aai dynamic object from vertex.
|
void |
getAaiDynamicObjectFromVertex(AAIResource aaiRes,
org.eclipse.persistence.dynamic.DynamicEntity meObject,
com.thinkaurelius.titan.core.TitanVertex vert,
Map<String,String> _propertyDataTypeMap,
HashMap<String,Object> propertyOverRideHash)
Gets the aai dynamic object from vertex.
|
<T> void |
getAaiObjectFromVertex(T clazz,
com.thinkaurelius.titan.core.TitanVertex vert,
Map<String,String> _propertyDataTypeMap)
Gets the aai object from vertex.
|
void |
getDynamicExampleObject(org.eclipse.persistence.dynamic.DynamicEntity childObject,
AAIResource aaiRes,
boolean singleton)
Gets the dynamic example object.
|
org.eclipse.persistence.dynamic.DynamicEntity |
getDynamicTopologyObject(AAIResource aaiRes,
org.eclipse.persistence.dynamic.DynamicType meObjectType,
com.google.common.collect.Multimap<String,String> _dbRulesNodeNameProps,
com.google.common.collect.Multimap<String,String> _dbRulesNodeKeyProps,
Map<String,String> _propertyDataTypeMap,
com.thinkaurelius.titan.core.TitanVertex vert)
Gets the dynamic topology object.
|
<T> void |
getExampleObject(T clazz,
boolean singleton)
Gets the example object.
|
String |
getJsonFromDynamicObject(org.eclipse.persistence.dynamic.DynamicEntity ent,
org.eclipse.persistence.jaxb.JAXBContext jaxbContext,
boolean includeRoot)
Gets the json from dynamic object.
|
<T> String |
getJsonFromObject(T clazz)
Gets the json from object.
|
<T> String |
getJsonFromObject(T clazz,
boolean wrapRoot,
boolean indent)
Gets the json from object.
|
<T> List<KeyValueList> |
getKeyValueList(Entity e,
T clazz)
Gets the key value list.
|
String |
getLookupKey(String baseKey,
HashMap<String,Object> lookupHash,
Collection<String> keyProps)
Gets the lookup key.
|
String |
getLookupKeys(LinkedHashMap<String,HashMap<String,Object>> lookupHashes,
com.google.common.collect.Multimap<String,String> _dbRulesNodeKeyProps)
Gets the lookup keys.
|
<T> void |
getTopologyObject(T clazz,
com.google.common.collect.Multimap<String,String> _dbRulesNodeNameProps,
com.google.common.collect.Multimap<String,String> _dbRulesNodeKeyProps,
com.thinkaurelius.titan.core.TitanVertex vert)
Gets the topology object.
|
String |
getUri(String baseUrl,
HashMap<String,Object> lookupHash,
Collection<String> keyProps,
String objectType)
Gets the uri.
|
<T> String |
getXmlFromObject(T clazz)
Gets the xml from object.
|
void |
setPropHashKeys(AAIResource aaiRes,
HashMap<String,Object> propHash,
Map<String,String> _propertyDataTypeMap,
LinkedHashMap<String,Object> keysWithVals,
AAIExtensionMap aaiExtMap)
Sets the prop hash keys.
|
public <T> List<KeyValueList> getKeyValueList(Entity e, T clazz) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
T
- the generic typee
- the eclazz
- the clazzIllegalAccessException
- the illegal access exceptionIllegalArgumentException
- the illegal argument exceptionInvocationTargetException
- the invocation target exceptionpublic <T> String getJsonFromObject(T clazz) throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException
T
- the generic typeclazz
- the clazzcom.fasterxml.jackson.core.JsonGenerationException
- the json generation exceptioncom.fasterxml.jackson.databind.JsonMappingException
- the json mapping exceptionIOException
- Signals that an I/O exception has occurred.public <T> String getJsonFromObject(T clazz, boolean wrapRoot, boolean indent) throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException
T
- the generic typeclazz
- the clazzwrapRoot
- the wrap rootindent
- the indentcom.fasterxml.jackson.core.JsonGenerationException
- the json generation exceptioncom.fasterxml.jackson.databind.JsonMappingException
- the json mapping exceptionIOException
- Signals that an I/O exception has occurred.public String getJsonFromDynamicObject(org.eclipse.persistence.dynamic.DynamicEntity ent, org.eclipse.persistence.jaxb.JAXBContext jaxbContext, boolean includeRoot) throws com.fasterxml.jackson.core.JsonGenerationException, com.fasterxml.jackson.databind.JsonMappingException, IOException, JAXBException
ent
- the entjaxbContext
- the jaxb contextincludeRoot
- the include rootcom.fasterxml.jackson.core.JsonGenerationException
- the json generation exceptioncom.fasterxml.jackson.databind.JsonMappingException
- the json mapping exceptionIOException
- Signals that an I/O exception has occurred.JAXBException
- the JAXB exceptionpublic <T> String getXmlFromObject(T clazz) throws JAXBException
T
- the generic typeclazz
- the clazzJAXBException
- the JAXB exceptionpublic String getUri(String baseUrl, HashMap<String,Object> lookupHash, Collection<String> keyProps, String objectType) throws UnsupportedEncodingException, AAIException
baseUrl
- the base urllookupHash
- the lookup hashkeyProps
- the key propsobjectType
- the object typeUnsupportedEncodingException
- the unsupported encoding exceptionAAIException
- the AAI exceptionpublic String getLookupKey(String baseKey, HashMap<String,Object> lookupHash, Collection<String> keyProps)
baseKey
- the base keylookupHash
- the lookup hashkeyProps
- the key propspublic String getLookupKeys(LinkedHashMap<String,HashMap<String,Object>> lookupHashes, com.google.common.collect.Multimap<String,String> _dbRulesNodeKeyProps)
lookupHashes
- the lookup hashes_dbRulesNodeKeyProps
- the db rules node key propspublic void setPropHashKeys(AAIResource aaiRes, HashMap<String,Object> propHash, Map<String,String> _propertyDataTypeMap, LinkedHashMap<String,Object> keysWithVals, AAIExtensionMap aaiExtMap)
aaiRes
- the aai respropHash
- the prop hash_propertyDataTypeMap
- the property data type mapkeysWithVals
- the keys with valsaaiExtMap
- the aai ext mappublic <T> void fillPropHashFromObject(T clazz, HashMap<String,Object> propHash, Map<String,String> _propertyDataTypeMap, AAIExtensionMap aaiExtMap) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
T
- the generic typeclazz
- the clazzpropHash
- the prop hash_propertyDataTypeMap
- the property data type mapaaiExtMap
- the aai ext mapIllegalAccessException
- the illegal access exceptionIllegalArgumentException
- the illegal argument exceptionInvocationTargetException
- the invocation target exceptionpublic <T> void getExampleObject(T clazz, boolean singleton) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, AAIException
T
- the generic typeclazz
- the clazzsingleton
- the singletonIllegalAccessException
- the illegal access exceptionIllegalArgumentException
- the illegal argument exceptionInvocationTargetException
- the invocation target exceptionNoSuchMethodException
- the no such method exceptionSecurityException
- the security exceptionAAIException
- the AAI exceptionpublic <T> void getAaiObjectFromVertex(T clazz, com.thinkaurelius.titan.core.TitanVertex vert, Map<String,String> _propertyDataTypeMap) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, AAIException
T
- the generic typeclazz
- the clazzvert
- the vert_propertyDataTypeMap
- the property data type mapIllegalAccessException
- the illegal access exceptionIllegalArgumentException
- the illegal argument exceptionInvocationTargetException
- the invocation target exceptionNoSuchMethodException
- the no such method exceptionSecurityException
- the security exceptionAAIException
- the AAI exceptionpublic <T> void getTopologyObject(T clazz, com.google.common.collect.Multimap<String,String> _dbRulesNodeNameProps, com.google.common.collect.Multimap<String,String> _dbRulesNodeKeyProps, com.thinkaurelius.titan.core.TitanVertex vert) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException, AAIException
T
- the generic typeclazz
- the clazz_dbRulesNodeNameProps
- the db rules node name props_dbRulesNodeKeyProps
- the db rules node key propsvert
- the vertIllegalAccessException
- the illegal access exceptionIllegalArgumentException
- the illegal argument exceptionInvocationTargetException
- the invocation target exceptionNoSuchMethodException
- the no such method exceptionSecurityException
- the security exceptionAAIException
- the AAI exceptionpublic org.eclipse.persistence.dynamic.DynamicEntity getDynamicTopologyObject(AAIResource aaiRes, org.eclipse.persistence.dynamic.DynamicType meObjectType, com.google.common.collect.Multimap<String,String> _dbRulesNodeNameProps, com.google.common.collect.Multimap<String,String> _dbRulesNodeKeyProps, Map<String,String> _propertyDataTypeMap, com.thinkaurelius.titan.core.TitanVertex vert) throws AAIException
aaiRes
- the aai resmeObjectType
- the me object type_dbRulesNodeNameProps
- the db rules node name props_dbRulesNodeKeyProps
- the db rules node key props_propertyDataTypeMap
- the property data type mapvert
- the vertAAIException
- the AAI exceptionpublic void getAaiDynamicObjectFromVertex(AAIResource aaiRes, org.eclipse.persistence.dynamic.DynamicEntity meObject, com.thinkaurelius.titan.core.TitanVertex vert, Map<String,String> _propertyDataTypeMap)
aaiRes
- the aai resmeObject
- the me objectvert
- the vert_propertyDataTypeMap
- the property data type mappublic void getAaiDynamicObjectFromVertex(AAIResource aaiRes, org.eclipse.persistence.dynamic.DynamicEntity meObject, com.thinkaurelius.titan.core.TitanVertex vert, Map<String,String> _propertyDataTypeMap, HashMap<String,Object> propertyOverRideHash)
aaiRes
- the aai resmeObject
- the me objectvert
- the vert_propertyDataTypeMap
- the property data type mappropertyOverRideHash
- the property over ride hashpublic void fillPropHashFromDynamicObject(AAIResource aaiRes, org.eclipse.persistence.dynamic.DynamicEntity meObject, HashMap<String,Object> propHash, Map<String,String> _propertyDataTypeMap, AAIExtensionMap aaiExtMap)
aaiRes
- the aai resmeObject
- the me objectpropHash
- the prop hash_propertyDataTypeMap
- the property data type mapaaiExtMap
- the aai ext mappublic void getDynamicExampleObject(org.eclipse.persistence.dynamic.DynamicEntity childObject, AAIResource aaiRes, boolean singleton)
childObject
- the child objectaaiRes
- the aai ressingleton
- the singletonCopyright © 2017. All Rights Reserved.