Class ODocumentSmartFieldHandlingStrategy
java.lang.Object
com.orientechnologies.orient.object.enhancement.field.ODocumentSimpleFieldHandlingStrategy
com.orientechnologies.orient.object.enhancement.field.ODocumentSmartFieldHandlingStrategy
- All Implemented Interfaces:
ODocumentFieldHandlingStrategy
ODocumentFieldHandlingStrategy that deals with fields (depending on their type) in a
smarter way than a ODocumentSimpleFieldHandlingStrategy.- Author:
- diegomtassis Diego Martin Tassis
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor -
Method Summary
Methods inherited from class com.orientechnologies.orient.object.enhancement.field.ODocumentSimpleFieldHandlingStrategy
deriveFieldType
-
Constructor Details
-
ODocumentSmartFieldHandlingStrategy
public ODocumentSmartFieldHandlingStrategy(Map<OType, ODocumentFieldOTypeHandlingStrategy> typeHandlers) Constructor- Parameters:
typeHandlers-
-
-
Method Details
-
store
public ODocument store(ODocument iRecord, String fieldName, Object fieldValue, OType suggestedFieldType) Description copied from interface:ODocumentFieldHandlingStrategyStores an object in a document- Specified by:
storein interfaceODocumentFieldHandlingStrategy- Overrides:
storein classODocumentSimpleFieldHandlingStrategysuggestedFieldType- ignored if the type is set in the schema
-
load
Description copied from interface:ODocumentFieldHandlingStrategyRetrieves a field from a document- Specified by:
loadin interfaceODocumentFieldHandlingStrategy- Overrides:
loadin classODocumentSimpleFieldHandlingStrategysuggestedFieldType- ignored if the type is set in the schema- Returns:
- field value
-