|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.registry.core.jdbc.dao.JDBCAssociationDAO
public class JDBCAssociationDAO
An implementation of the AssociationDAO
to store associations on a JDBC-based database.
Constructor Summary | |
---|---|
JDBCAssociationDAO()
|
Method Summary | |
---|---|
void |
addAssociation(java.lang.String sourcePath,
java.lang.String targetPath,
java.lang.String associationType)
Method to persist an association. |
void |
copyAssociations(java.lang.String fromPath,
java.lang.String toPath)
Method to copy associations for a given path to a new path. |
Association[] |
getAllAssociations(java.lang.String resourcePath)
Method to get all association. |
Association[] |
getAllAssociationsForType(java.lang.String resourcePath,
java.lang.String associationType)
Method to get all association of a given type. |
void |
removeAllAssociations(java.lang.String resourcePath)
Method to remove all associations for a given path. |
void |
removeAssociation(java.lang.String sourcePath,
java.lang.String targetPath,
java.lang.String associationType)
Method to remove an association. |
void |
replaceAssociations(java.lang.String oldPath,
java.lang.String newPath)
Method to replace all associations, when moving or renaming a resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCAssociationDAO()
Method Detail |
---|
public void addAssociation(java.lang.String sourcePath, java.lang.String targetPath, java.lang.String associationType) throws RegistryException
AssociationDAO
addAssociation
in interface AssociationDAO
sourcePath
- the source pathtargetPath
- the target pathassociationType
- the type of the association
RegistryException
- if some error occurs while adding associationspublic void removeAssociation(java.lang.String sourcePath, java.lang.String targetPath, java.lang.String associationType) throws RegistryException
AssociationDAO
removeAssociation
in interface AssociationDAO
sourcePath
- the source pathtargetPath
- the target pathassociationType
- the type of the association
RegistryException
- if some error occurs while removing associationspublic Association[] getAllAssociations(java.lang.String resourcePath) throws RegistryException
AssociationDAO
getAllAssociations
in interface AssociationDAO
resourcePath
- the source path
RegistryException
- if some error occurs while getting all associationspublic Association[] getAllAssociationsForType(java.lang.String resourcePath, java.lang.String associationType) throws RegistryException
AssociationDAO
getAllAssociationsForType
in interface AssociationDAO
resourcePath
- the source pathassociationType
- the type of the association
RegistryException
- if some error occurs while getting associations of a given typepublic void replaceAssociations(java.lang.String oldPath, java.lang.String newPath) throws RegistryException
AssociationDAO
replaceAssociations
in interface AssociationDAO
oldPath
- the old resource pathnewPath
- the new resource path
RegistryException
- if an error occurs whilepublic void removeAllAssociations(java.lang.String resourcePath) throws RegistryException
AssociationDAO
removeAllAssociations
in interface AssociationDAO
resourcePath
- the source path
RegistryException
- if an error occurs whilepublic void copyAssociations(java.lang.String fromPath, java.lang.String toPath) throws RegistryException
AssociationDAO
copyAssociations
in interface AssociationDAO
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 |