public final class ORidBagDeleter extends Object implements ODocumentFieldVisitor
Constructor and Description |
---|
ORidBagDeleter() |
Modifier and Type | Method and Description |
---|---|
static void |
deleteAllRidBags(ODocument document) |
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 static void deleteAllRidBags(ODocument document)
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–2019 OrientDB. All rights reserved.