public class ODocumentSmartFieldHandlingStrategy extends ODocumentSimpleFieldHandlingStrategy
ODocumentFieldHandlingStrategy
that deals with fields (depending on their type) in a
smarter way than a ODocumentSimpleFieldHandlingStrategy
.Constructor and Description |
---|
ODocumentSmartFieldHandlingStrategy(Map<OType,ODocumentFieldOTypeHandlingStrategy> typeHandlers)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Object |
load(ODocument iRecord,
String fieldName,
OType suggestedFieldType)
Retrieves a field from a document
|
ODocument |
store(ODocument iRecord,
String fieldName,
Object fieldValue,
OType suggestedFieldType)
Stores an object in a document
|
deriveFieldType
public ODocumentSmartFieldHandlingStrategy(Map<OType,ODocumentFieldOTypeHandlingStrategy> typeHandlers)
typeHandlers
- public ODocument store(ODocument iRecord, String fieldName, Object fieldValue, OType suggestedFieldType)
ODocumentFieldHandlingStrategy
store
in interface ODocumentFieldHandlingStrategy
store
in class ODocumentSimpleFieldHandlingStrategy
suggestedFieldType
- ignored if the type is set in the schemapublic Object load(ODocument iRecord, String fieldName, OType suggestedFieldType)
ODocumentFieldHandlingStrategy
load
in interface ODocumentFieldHandlingStrategy
load
in class ODocumentSimpleFieldHandlingStrategy
suggestedFieldType
- ignored if the type is set in the schemaCopyright © 2009–2020 OrientDB. All rights reserved.