public class DocRelation extends org.sistema.persist.Persistent implements IDocRelation
Constructor and Description |
---|
DocRelation() |
DocRelation(IDoc s,
IDoc t,
IDocRelationType type) |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getId() |
IDoc |
getSource()
Retrieves the source document of the relation.
|
IDoc |
getTarget()
Retrieves the target document of the relation.
|
IDocRelationType |
getType()
Retrieves the type of relationship.
|
void |
setSource(IDoc source)
Sets the source document of the relationship.
|
void |
setTarget(IDoc target)
Sets the target document of the relationship.
|
void |
setType(IDocRelationType type)
Sets the type of relationship between the source and target documents.
|
addAttribute, addAttribute, equals, getAttribute, getAttributeMaximumLength, getAttributeMinimumLength, getAttributeValue, getField, getFieldFlagValue, getFieldNames, getFields, getFieldsUnsavedElements, getFieldValue, getPrimaryKey, getValue, hasUnsavedElements, isAttributeEditable, isAttributeRequired, isAttributeVisible, isAttributeVisible, isDeletable, isDeleted, isEditable, isFieldModified, isFieldState, isModified, isModifiedBase, isNew, setAttributeValue, setDeletable, setDeleted, setFieldFlag, setFieldState, setFieldValue, setNew
public DocRelation()
public DocRelation(IDoc s, IDoc t, IDocRelationType type)
s
- source document of the relationshipt
- target document of the relationshiptype
- type of relationshippublic java.lang.Integer getId()
getId
in interface org.sistema.persist.IPersistent
public IDoc getSource()
IDocRelation
getSource
in interface IDocRelation
public IDoc getTarget()
IDocRelation
getTarget
in interface IDocRelation
public IDocRelationType getType()
IDocRelation
getType
in interface IDocRelation
public void setSource(IDoc source)
IDocRelation
setSource
in interface IDocRelation
source
- documentpublic void setTarget(IDoc target)
IDocRelation
setTarget
in interface IDocRelation
target
- Target documentpublic void setType(IDocRelationType type)
IDocRelation
setType
in interface IDocRelation
type
- Type of relationship