Class ODocumentSimpleFieldHandlingStrategy
java.lang.Object
com.orientechnologies.orient.object.enhancement.field.ODocumentSimpleFieldHandlingStrategy
- All Implemented Interfaces:
ODocumentFieldHandlingStrategy
- Direct Known Subclasses:
ODocumentSmartFieldHandlingStrategy
public class ODocumentSimpleFieldHandlingStrategy
extends Object
implements ODocumentFieldHandlingStrategy
ODocumentFieldHandlingStrategy that delegates to the default ODocument.field(String) implementation.- Author:
- diegomtassis Diego Martin Tassis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OTypederiveFieldType(ODocument iRecord, String fieldName, OType requestedFieldType) Derives the type of a field in a document.Retrieves a field from a documentStores an object in a document
-
Constructor Details
-
ODocumentSimpleFieldHandlingStrategy
public ODocumentSimpleFieldHandlingStrategy()
-
-
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 interfaceODocumentFieldHandlingStrategysuggestedFieldType- ignored if the type is set in the schema
-
load
Description copied from interface:ODocumentFieldHandlingStrategyRetrieves a field from a document- Specified by:
loadin interfaceODocumentFieldHandlingStrategysuggestedFieldType- ignored if the type is set in the schema- Returns:
- field value
-
deriveFieldType
Derives the type of a field in a document.- Parameters:
iRecord-fieldName-requestedFieldType-- Returns:
- derived field type
-