public class ReferenceSchemaField extends SimpleSchemaField
SchemaObjectType
.Constructor and Description |
---|
ReferenceSchemaField() |
Modifier and Type | Method and Description |
---|---|
ReferenceSchemaField |
clone()
Deep-clone this instance.
|
Diffs |
differencesFrom(SimpleSchemaField other)
Detect the differences of this instance when compared to the given instance.
|
boolean |
equals(Object obj) |
NavigableSet<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.
|
int |
hashCode() |
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.
|
boolean |
isLockedDown()
Determine whether this instance is locked down.
|
void |
lockDown()
Lock down this instance.
|
void |
setAllowDeleted(boolean allowDeleted) |
void |
setAllowDeletedSnapshot(boolean allowDeletedSnapshot) |
void |
setCascadeDelete(boolean cascadeDelete) |
void |
setObjectTypes(NavigableSet<Integer> objectTypes) |
void |
setOnDelete(DeleteAction onDelete) |
<R> R |
visit(SchemaFieldSwitch<R> target)
Apply visitor pattern.
|
getEncodingSignature, getType, isIndexed, setEncodingSignature, setIndexed, setType, toString
differencesFrom, getName, getStorageId, setName, setStorageId
expect, expectClose, getAttr, getAttr, getBooleanAttr, getBooleanAttr, getIntAttr, getIntAttr, getLongAttr, next, skip, writeElement
public DeleteAction getOnDelete()
public void setOnDelete(DeleteAction onDelete)
public boolean isCascadeDelete()
public void setCascadeDelete(boolean cascadeDelete)
public boolean isAllowDeleted()
public void setAllowDeleted(boolean allowDeleted)
public boolean isAllowDeletedSnapshot()
public void setAllowDeletedSnapshot(boolean allowDeletedSnapshot)
public NavigableSet<Integer> getObjectTypes()
public void setObjectTypes(NavigableSet<Integer> objectTypes)
public <R> R visit(SchemaFieldSwitch<R> target)
SchemaField
visit
in class SimpleSchemaField
R
- visitor return typetarget
- target to invoketarget
corresponding to this instance's typepublic Diffs differencesFrom(SimpleSchemaField other)
DiffGenerating
differencesFrom
in interface DiffGenerating<SimpleSchemaField>
differencesFrom
in class SimpleSchemaField
other
- other instancepublic boolean equals(Object obj)
equals
in class SimpleSchemaField
public int hashCode()
hashCode
in class SimpleSchemaField
public ReferenceSchemaField clone()
The returned instance will not be locked down.
clone
in class SimpleSchemaField
public void lockDown()
Once locked down, any attempts to modify this instance (and all associated objects) will result
in a IllegalStateException
.
public boolean isLockedDown()
Copyright © 2019. All rights reserved.