public class ODocumentHelper extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ODocumentHelper.ODbRelatedCall<T> |
static interface |
ODocumentHelper.RIDMapper |
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_CLASS |
static String |
ATTRIBUTE_FIELDS |
static String |
ATTRIBUTE_RAW |
static String |
ATTRIBUTE_RID |
static String |
ATTRIBUTE_RID_ID |
static String |
ATTRIBUTE_RID_POS |
static String |
ATTRIBUTE_SIZE |
static String |
ATTRIBUTE_THIS |
static String |
ATTRIBUTE_TYPE |
static String |
ATTRIBUTE_VERSION |
Constructor and Description |
---|
ODocumentHelper() |
Modifier and Type | Method and Description |
---|---|
static Object |
cloneValue(ODocument iCloned,
Object fieldValue) |
static boolean |
compareBags(ODatabaseDocumentInternal iMyDb,
ORidBag myFieldValue,
ODatabaseDocumentInternal iOtherDb,
ORidBag otherFieldValue,
ODocumentHelper.RIDMapper ridMapper) |
static boolean |
compareCollections(ODatabaseDocumentInternal iMyDb,
Collection<?> myFieldValue,
ODatabaseDocumentInternal iOtherDb,
Collection<?> otherFieldValue,
ODocumentHelper.RIDMapper ridMapper) |
static boolean |
compareMaps(ODatabaseDocumentInternal iMyDb,
Map<Object,Object> myFieldValue,
ODatabaseDocumentInternal iOtherDb,
Map<Object,Object> otherFieldValue,
ODocumentHelper.RIDMapper ridMapper) |
static boolean |
compareSets(ODatabaseDocumentInternal iMyDb,
Set<?> myFieldValue,
ODatabaseDocumentInternal iOtherDb,
Set<?> otherFieldValue,
ODocumentHelper.RIDMapper ridMapper) |
static <RET> RET |
convertField(ODocument iDocument,
String iFieldName,
OType type,
Class<?> iFieldType,
Object iValue) |
static Object |
evaluateFunction(Object currentValue,
String iFunction,
OCommandContext iContext) |
protected static Object |
filterItem(String iConditionFieldName,
Object iConditionFieldValue,
Object iValue) |
static <RET> RET |
getFieldValue(Object value,
String iFieldName) |
static <RET> RET |
getFieldValue(Object value,
String iFieldName,
OCommandContext iContext) |
static Object |
getIdentifiableValue(OIdentifiable iCurrent,
String iFieldName) |
protected static Object |
getIndexPart(OCommandContext iContext,
String indexPart) |
static Object |
getMapEntry(Map<String,?> iMap,
Object iKey)
Retrieves the value crossing the map with the dotted notation
|
static Set<String> |
getReservedAttributes() |
static boolean |
hasSameContentItem(Object iCurrent,
ODatabaseDocumentInternal iMyDb,
Object iOther,
ODatabaseDocumentInternal iOtherDb,
ODocumentHelper.RIDMapper ridMapper) |
static boolean |
hasSameContentOf(ODocument iCurrent,
ODatabaseDocumentInternal iMyDb,
ODocument iOther,
ODatabaseDocumentInternal iOtherDb,
ODocumentHelper.RIDMapper ridMapper)
Makes a deep comparison field by field to check if the passed ODocument instance is identical
as identity and content to the current one.
|
static boolean |
hasSameContentOf(ODocument iCurrent,
ODatabaseDocumentInternal iMyDb,
ODocument iOther,
ODatabaseDocumentInternal iOtherDb,
ODocumentHelper.RIDMapper ridMapper,
boolean iCheckAlsoIdentity)
Makes a deep comparison field by field to check if the passed ODocument instance is identical
in the content to the current one.
|
static <T> T |
makeDbCall(ODatabaseDocumentInternal databaseRecord,
ODocumentHelper.ODbRelatedCall<T> function) |
static void |
sort(List<? extends OIdentifiable> ioResultSet,
List<OPair<String,String>> iOrderCriteria,
OCommandContext context) |
public static final String ATTRIBUTE_THIS
public static final String ATTRIBUTE_RID
public static final String ATTRIBUTE_RID_ID
public static final String ATTRIBUTE_RID_POS
public static final String ATTRIBUTE_VERSION
public static final String ATTRIBUTE_CLASS
public static final String ATTRIBUTE_TYPE
public static final String ATTRIBUTE_SIZE
public static final String ATTRIBUTE_FIELDS
public static final String ATTRIBUTE_RAW
public static void sort(List<? extends OIdentifiable> ioResultSet, List<OPair<String,String>> iOrderCriteria, OCommandContext context)
public static <RET> RET convertField(ODocument iDocument, String iFieldName, OType type, Class<?> iFieldType, Object iValue)
public static <RET> RET getFieldValue(Object value, String iFieldName, OCommandContext iContext)
protected static Object getIndexPart(OCommandContext iContext, String indexPart)
protected static Object filterItem(String iConditionFieldName, Object iConditionFieldValue, Object iValue)
public static Object getMapEntry(Map<String,?> iMap, Object iKey)
iKey
- Field(s) to retrieve. If are multiple fields, then the dot must be used as
separatoriMap
- public static Object getIdentifiableValue(OIdentifiable iCurrent, String iFieldName)
public static Object evaluateFunction(Object currentValue, String iFunction, OCommandContext iContext)
public static boolean hasSameContentItem(Object iCurrent, ODatabaseDocumentInternal iMyDb, Object iOther, ODatabaseDocumentInternal iOtherDb, ODocumentHelper.RIDMapper ridMapper)
public static boolean hasSameContentOf(ODocument iCurrent, ODatabaseDocumentInternal iMyDb, ODocument iOther, ODatabaseDocumentInternal iOtherDb, ODocumentHelper.RIDMapper ridMapper)
iOther
- ODocument instanceObject.equals(Object)
public static boolean hasSameContentOf(ODocument iCurrent, ODatabaseDocumentInternal iMyDb, ODocument iOther, ODatabaseDocumentInternal iOtherDb, ODocumentHelper.RIDMapper ridMapper, boolean iCheckAlsoIdentity)
iOther
- ODocument instanceObject.equals(Object)
public static boolean compareMaps(ODatabaseDocumentInternal iMyDb, Map<Object,Object> myFieldValue, ODatabaseDocumentInternal iOtherDb, Map<Object,Object> otherFieldValue, ODocumentHelper.RIDMapper ridMapper)
public static boolean compareCollections(ODatabaseDocumentInternal iMyDb, Collection<?> myFieldValue, ODatabaseDocumentInternal iOtherDb, Collection<?> otherFieldValue, ODocumentHelper.RIDMapper ridMapper)
public static boolean compareSets(ODatabaseDocumentInternal iMyDb, Set<?> myFieldValue, ODatabaseDocumentInternal iOtherDb, Set<?> otherFieldValue, ODocumentHelper.RIDMapper ridMapper)
public static boolean compareBags(ODatabaseDocumentInternal iMyDb, ORidBag myFieldValue, ODatabaseDocumentInternal iOtherDb, ORidBag otherFieldValue, ODocumentHelper.RIDMapper ridMapper)
public static <T> T makeDbCall(ODatabaseDocumentInternal databaseRecord, ODocumentHelper.ODbRelatedCall<T> function)
Copyright © 2009–2021 OrientDB. All rights reserved.