public final class OLinksRewriter extends Object implements ODocumentFieldVisitor
Constructor and Description |
---|
OLinksRewriter(OConverterData converterData) |
Modifier and Type | Method and Description |
---|---|
boolean |
goDeeper(OType type,
OType linkedType,
Object value)
If currently processed value is collection or map of embedded documents or embedded document
itself then current method is called if it returns false then this collection will not be
visited.
|
boolean |
goFurther(OType type,
OType linkedType,
Object value,
Object newValue)
Indicates whether we continue to visit document fields after current one or should stop fields
processing.
|
boolean |
updateMode() |
Object |
visitField(OType type,
OType linkedType,
Object value)
Visits currently processed field.
|
public OLinksRewriter(OConverterData converterData)
public Object visitField(OType type, OType linkedType, Object value)
ODocumentFieldVisitor
visitField
in interface ODocumentFieldVisitor
type
- Filed type. May be null if absent in DB schema.linkedType
- Linked type in case collection is processed. May be null if absent in DB
schema.value
- Field value.public boolean goFurther(OType type, OType linkedType, Object value, Object newValue)
ODocumentFieldVisitor
goFurther
in interface ODocumentFieldVisitor
type
- Filed type. May be null if absent in DB schema.linkedType
- Linked type in case collection is processed. May be null if absent in DB
schema.value
- Field value.newValue
- New value returned by ODocumentFieldVisitor.visitField(OType, OType, Object)
method.public boolean goDeeper(OType type, OType linkedType, Object value)
ODocumentFieldVisitor
goDeeper
in interface ODocumentFieldVisitor
type
- Filed type. May be null if absent in DB schema.linkedType
- Linked type in case collection is processed. May be null if absent in DB
schema.value
- Field value.public boolean updateMode()
updateMode
in interface ODocumentFieldVisitor
ODocumentFieldVisitor.visitField(OType, OType, Object)
will not be
taken in account and field value will not be updated.Copyright © 2009–2020 OrientDB. All rights reserved.