|
|||||||||
| 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)
NodeAssocThe association attributes still have to be set.
buildAssociation in interface NodeAssoc#setName(String)public AssociationRef getNodeAssocRef(QNameDAO qnameDAO)
NodeAssoc
getNodeAssocRef in interface NodeAssocqnameDAO - helper DAO
public QName getTypeQName(QNameDAO qnameDAO)
NodeAssoc
getTypeQName in interface NodeAssocqnameDAO - helper DAO
public void setTypeQName(QNameDAO qnameDAO,
QName typeQName)
NodeAssoc
setTypeQName in interface NodeAssocqnameDAO - the helper DAOtypeQName - the association's type QNamepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Long getId()
getId in interface NodeAssocpublic java.lang.Long getVersion()
getVersion in interface NodeAssocpublic Node getSource()
getSource in interface NodeAssocpublic Node getTarget()
getTarget in interface NodeAssocpublic java.lang.Long getTypeQNameId()
getTypeQNameId in interface NodeAssocpublic void setTypeQNameId(java.lang.Long typeQNameId)
setTypeQNameId in interface NodeAssoctypeQNameId - the association's dictionary type
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||