|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.domain.hibernate.NodeAssocImpl
public class NodeAssocImpl
Hibernate-specific implementation of the generic node association
Constructor Summary | |
---|---|
NodeAssocImpl()
|
Method Summary | |
---|---|
void |
buildAssociation(Node sourceNode,
Node targetNode)
Wires up the necessary bits on the source and target nodes so that the association is immediately bidirectional. |
boolean |
equals(java.lang.Object obj)
|
java.lang.Long |
getId()
|
AssociationRef |
getNodeAssocRef(QNameDAO qnameDAO)
Convenience method to retrieve the association's reference |
Node |
getSource()
|
Node |
getTarget()
|
QName |
getTypeQName(QNameDAO qnameDAO)
Convenience method to retrieve the association's type QName |
java.lang.Long |
getTypeQNameId()
|
java.lang.Long |
getVersion()
|
int |
hashCode()
|
void |
setTypeQName(QNameDAO qnameDAO,
QName typeQName)
Convenience method to set the association's type |
void |
setTypeQNameId(java.lang.Long typeQNameId)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NodeAssocImpl()
Method Detail |
---|
public void buildAssociation(Node sourceNode, Node targetNode)
NodeAssoc
The association attributes still have to be set.
buildAssociation
in interface NodeAssoc
#setName(String)
public AssociationRef getNodeAssocRef(QNameDAO qnameDAO)
NodeAssoc
getNodeAssocRef
in interface NodeAssoc
qnameDAO
- helper DAO
public QName getTypeQName(QNameDAO qnameDAO)
NodeAssoc
getTypeQName
in interface NodeAssoc
qnameDAO
- helper DAO
public void setTypeQName(QNameDAO qnameDAO, QName typeQName)
NodeAssoc
setTypeQName
in interface NodeAssoc
qnameDAO
- the helper DAOtypeQName
- the association's type QNamepublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Long getId()
getId
in interface NodeAssoc
public java.lang.Long getVersion()
getVersion
in interface NodeAssoc
public Node getSource()
getSource
in interface NodeAssoc
public Node getTarget()
getTarget
in interface NodeAssoc
public java.lang.Long getTypeQNameId()
getTypeQNameId
in interface NodeAssoc
public void setTypeQNameId(java.lang.Long typeQNameId)
setTypeQNameId
in interface NodeAssoc
typeQNameId
- the association's dictionary type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |