public class RecordAssociation extends Object implements RecordProperty
Modifier and Type | Class and Description |
---|---|
static class |
RecordAssociation.Multiplicity
Relationship type.
|
Constructor and Description |
---|
RecordAssociation(RecordField field,
RecordAssociation.Multiplicity sourceMultiplicity,
boolean composition,
RecordType targetRecordType,
RecordField targetField,
RecordAssociation.Multiplicity targetMultiplicity,
boolean targetComposition,
Map<String,String> metadata)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getEntityFieldName()
Returns the entity field name.
|
<T extends RecordPropertyExtension> |
getExtension(Class<T> cls)
Returns extension of given type.
|
RecordField |
getField()
Returns the field.
|
JavaMapping |
getJavaMapping()
Returns java mapping.
|
Map<String,String> |
getMetadata()
Returns metadata.
|
RecordAssociation.Multiplicity |
getMultiplicity()
Returns the source multiplicity.
|
String |
getName()
Returns name of this property.
|
RecordType |
getRecordType()
Returns the record type.
|
RecordAssociation |
getReverseAssociation()
Returns reverse association.
|
String |
getTargetEntityFieldName()
Returns the target entity field name.
|
RecordField |
getTargetField()
Returns the target field.
|
RecordAssociation.Multiplicity |
getTargetMultiplicity()
Returns the target multiplicity.
|
RecordType |
getTargetRecordType()
Returns the target record type.
|
Type |
getType()
Returns type of the property.
|
Visibility |
getVisibility()
Returns the property visibility.
|
boolean |
isAssociation()
Returns true if this is association.
|
boolean |
isBidirectional()
Returns true if this association is bidirectional.
|
boolean |
isComposition()
Returns true if this association is a composition.
|
boolean |
isField()
Returns true if this is field.
|
boolean |
isReadonly()
Returns true if property is read only.
|
boolean |
isTargetComposition() |
protected void |
setEntityFieldName(String entityFieldName)
Sets entity field name.
|
void |
setExtension(RecordAssociationExtension extension)
Returns extension of the specified type.
|
protected void |
setTargetEntityFieldName(String targetEntityFieldName)
Sets target entity field name.
|
String |
toString() |
public RecordAssociation(RecordField field, RecordAssociation.Multiplicity sourceMultiplicity, boolean composition, RecordType targetRecordType, RecordField targetField, RecordAssociation.Multiplicity targetMultiplicity, boolean targetComposition, Map<String,String> metadata)
field
- targetRecordType
- targetField
- sourceMultiplicity
- targetMultiplicity
- composition
- targetComposition
- metadata
- public RecordAssociation.Multiplicity getMultiplicity()
public RecordAssociation.Multiplicity getTargetMultiplicity()
public <T extends RecordPropertyExtension> T getExtension(Class<T> cls)
RecordProperty
getExtension
in interface RecordProperty
public void setExtension(RecordAssociationExtension extension)
extension
- public boolean isBidirectional()
public Type getType()
RecordProperty
getType
in interface RecordProperty
public String getName()
RecordProperty
getName
in interface RecordProperty
public Visibility getVisibility()
RecordProperty
getVisibility
in interface RecordProperty
public boolean isReadonly()
RecordProperty
isReadonly
in interface RecordProperty
public RecordType getRecordType()
RecordProperty
getRecordType
in interface RecordProperty
public RecordType getTargetRecordType()
public RecordField getField()
RecordProperty
getField
in interface RecordProperty
public RecordField getTargetField()
public boolean isComposition()
public boolean isTargetComposition()
public String getEntityFieldName()
RecordProperty
getEntityFieldName
in interface RecordProperty
protected void setEntityFieldName(String entityFieldName)
entityFieldName
- public String getTargetEntityFieldName()
protected void setTargetEntityFieldName(String targetEntityFieldName)
targetEntityFieldName
- public boolean isAssociation()
RecordProperty
isAssociation
in interface RecordProperty
public boolean isField()
RecordProperty
isField
in interface RecordProperty
public RecordAssociation getReverseAssociation()
public Map<String,String> getMetadata()
getMetadata
in interface RecordProperty
public JavaMapping getJavaMapping()
RecordProperty
getJavaMapping
in interface RecordProperty
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.