|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AssociationDAO
Data Access Object for Associations
Method Summary | |
---|---|
void |
addAssociation(String sourcePath,
String targetPath,
String associationType)
Method to persist an association. |
void |
copyAssociations(String fromPath,
String toPath)
Method to copy associations for a given path to a new path. |
Association[] |
getAllAssociations(String resourcePath)
Method to get all association. |
Association[] |
getAllAssociationsForType(String resourcePath,
String associationType)
Method to get all association of a given type. |
void |
removeAllAssociations(String resourcePath)
Method to remove all associations for a given path. |
void |
removeAssociation(String sourcePath,
String targetPath,
String associationType)
Method to remove an association. |
void |
replaceAssociations(String oldPath,
String newPath)
Method to replace all associations, when moving or renaming a resource. |
Method Detail |
---|
void addAssociation(String sourcePath, String targetPath, String associationType) throws RegistryException
sourcePath
- the source pathtargetPath
- the target pathassociationType
- the type of the association
RegistryException
- if some error occurs while adding associationsvoid removeAssociation(String sourcePath, String targetPath, String associationType) throws RegistryException
sourcePath
- the source pathtargetPath
- the target pathassociationType
- the type of the association
RegistryException
- if some error occurs while removing associationsAssociation[] getAllAssociations(String resourcePath) throws RegistryException
resourcePath
- the source path
RegistryException
- if some error occurs while getting all associationsAssociation[] getAllAssociationsForType(String resourcePath, String associationType) throws RegistryException
resourcePath
- the source pathassociationType
- the type of the association
RegistryException
- if some error occurs while getting associations of a given typevoid replaceAssociations(String oldPath, String newPath) throws RegistryException
oldPath
- the old resource pathnewPath
- the new resource path
RegistryException
- if an error occurs whilevoid removeAllAssociations(String resourcePath) throws RegistryException
resourcePath
- the source path
RegistryException
- if an error occurs whilevoid copyAssociations(String fromPath, String toPath) throws RegistryException
fromPath
- the source pathtoPath
- the destination path
RegistryException
- if an error occurs while
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |