public class ReferenceField extends SimpleField<ObjId>
Database
object.
Null values sort last.
Reference fields are always indexed.
NAME_PATTERN
Modifier and Type | Method and Description |
---|---|
SortedSet<Integer> |
getObjectTypes()
Get the object types this field is allowed to reference, if so restricted.
|
DeleteAction |
getOnDelete()
Get the desired behavior when an object referred to by this field is deleted.
|
boolean |
isAllowDeleted()
Determine whether this field accepts references to deleted objects in normal (non-snapshot) transactions.
|
boolean |
isAllowDeletedSnapshot()
Determine whether this field accepts references to deleted objects in snapshot transactions.
|
boolean |
isCascadeDelete()
Determine whether the referred-to object should be deleted when an object containing this field is deleted.
|
protected ObjId |
remapObjectId(ObjIdMap<ObjId> objectIdMap,
ObjId srcId) |
protected boolean |
remapsObjectId() |
String |
toString() |
<R> R |
visit(FieldSwitch<R> target)
Apply visitor pattern.
|
getFieldType, getValue, hasDefaultValue, isIndexed, setValue
getTypeToken
getName, getSchema, getStorageId
public DeleteAction getOnDelete()
public boolean isCascadeDelete()
public boolean isAllowDeleted()
public boolean isAllowDeletedSnapshot()
public SortedSet<Integer> getObjectTypes()
public <R> R visit(FieldSwitch<R> target)
Field
visit
in class SimpleField<ObjId>
R
- visitor return typetarget
- target to invoketarget
corresponding to this instance's typepublic String toString()
toString
in class SimpleField<ObjId>
protected boolean remapsObjectId()
remapsObjectId
in class SimpleField<ObjId>
protected ObjId remapObjectId(ObjIdMap<ObjId> objectIdMap, ObjId srcId)
remapObjectId
in class SimpleField<ObjId>
Copyright © 2022. All rights reserved.