public class JReferenceField extends JSimpleField
Modifier and Type | Method and Description |
---|---|
Converter<ObjId,JObject> |
getConverter(JTransaction jtx)
Get a
Converter that converts this field's value from what the core database returns
to what the Java application expects, or null if no conversion is needed. |
String[] |
getForwardCascades()
Get this field's forward copy cascades.
|
String[] |
getInverseCascades()
Get this field's inverse copy cascades.
|
DeleteAction |
getOnDelete()
Get the
DeleteAction configured for this field. |
JObject |
getValue(JObject jobj)
Get the Java value of this field in the given Java model object.
|
boolean |
isAllowDeleted()
Determine whether this field allows assignment to deleted objects in normal transactions.
|
boolean |
isAllowDeletedSnapshot()
Determine whether this field allows assignment 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.
|
<R> R |
visit(JFieldSwitch<R> target)
Apply visitor pattern.
|
getDeclaringAnnotation, getFieldType, getParentField, getSetter, getTypeToken, isIndexed, setValue
getName, getPermazen, getStorageId, toString
public JObject getValue(JObject jobj)
JField
getValue
in class JSimpleField
jobj
- object containing this fieldjobj
public <R> R visit(JFieldSwitch<R> target)
JField
visit
in class JSimpleField
R
- visit return typetarget
- target to invoketarget
corresponding to this instance's typepublic Converter<ObjId,JObject> getConverter(JTransaction jtx)
JField
Converter
that converts this field's value from what the core database returns
to what the Java application expects, or null if no conversion is needed.getConverter
in class JSimpleField
jtx
- transactionConverter
from core API to Java, or null if no conversion is requiredpublic DeleteAction getOnDelete()
DeleteAction
configured for this field.DeleteAction
public boolean isCascadeDelete()
public boolean isAllowDeleted()
public boolean isAllowDeletedSnapshot()
public String[] getForwardCascades()
The returned array is a copy; modifications to it have no effect.
public String[] getInverseCascades()
The returned array is a copy; modifications to it have no effect.
Copyright © 2022. All rights reserved.