@MappedSuperclass public abstract class RelationshipBase<FROM extends IRelated,TO extends IRelated,TYPE extends RelationshipTermBase> extends ReferencedEntityBase
IRelated
). The most important properties of the relationship are:
#getRelatedFrom(IRelated)
#getRelatedTo(IRelated)
<TYPE>
, a RelationshipTermBase which specifies the kind of the relationshiprelatedFrom -----[TYPE]----> relatedToWhereas the direction of the relation can be valid for the direct (everted) and also for the inverted
RelationshipBase.Direction
direction.
This directional validity is defined by RelationshipTermBase.isSymmetric()
Modifier and Type | Class and Description |
---|---|
static class |
RelationshipBase.Direction
Enumeration and String representation of the
relatedFrom (invers) and
relatedTo (direct, everted) bean properties. |
annotations, markers
CLOB_LENGTH, uuid
Modifier | Constructor and Description |
---|---|
protected |
RelationshipBase() |
protected |
RelationshipBase(FROM from,
TO to,
TYPE type,
Reference citation,
java.lang.String citationMicroReference)
Creates a relationship between 2 objects and adds it to the respective
relation sets of both objects.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clones this relationship.
|
protected abstract FROM |
getRelatedFrom() |
protected abstract TO |
getRelatedTo() |
abstract TYPE |
getType() |
boolean |
isDoubtful()
A boolean flag that marks the relationship between two objects as doubtful
Please be aware that this flag should not be used to mark any status of the
objects themselves.
|
void |
setDoubtful(boolean doubtful) |
protected abstract void |
setRelatedFrom(FROM relatedFrom) |
protected abstract void |
setRelatedTo(TO relatedTo) |
abstract void |
setType(TYPE type) |
equalsByShallowCompare, getCitation, getCitationMicroReference, getOriginalNameString, setCitation, setCitationMicroReference, setOriginalNameString
addAnnotation, addMarker, addMarker, getAnnotations, getAnnotations, getMarkers, getMarkers, hasMarker, hasMarker, markerValue, removeAnnotation, removeMarker, removeMarker, setAnnotations
cloneLanguageString, equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
addPropertyChangeListener, addPropertyChangeListener, addToSetWithChangeEvent, deproxy, deproxy, fireOnCreateEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUserFriendlyDescription, getUserFriendlyFieldName, getUserFriendlyTypeName, getUuid, hashCode, hasListeners, initListener, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isBlank, isInstanceOf, isNotBlank, isPersited, removeFromSetWithChangeEvent, removePropertyChangeListener, removePropertyChangeListener, replaceInList, setCreated, setCreatedBy, setId, setNewEntityListener, setUuid, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
getCreated, getCreatedBy, getId, getUuid, isInstanceOf, isPersited, setCreated, setCreatedBy, setId, setUuid
protected RelationshipBase()
protected RelationshipBase(FROM from, TO to, TYPE type, Reference citation, java.lang.String citationMicroReference)
from
- to
- type
- citation
- citationMicroReference
- public abstract TYPE getType()
public abstract void setType(TYPE type)
protected abstract FROM getRelatedFrom()
protected abstract void setRelatedFrom(FROM relatedFrom)
protected abstract TO getRelatedTo()
protected abstract void setRelatedTo(TO relatedTo)
public boolean isDoubtful()
public void setDoubtful(boolean doubtful)
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class ReferencedEntityBase
java.lang.CloneNotSupportedException
clone()
,
Object.clone()
Copyright © 2007-2020 EDIT. All Rights Reserved.