Interface IMappingConnectionManager
-
- All Known Implementing Classes:
MappingConnectionManager
public interface IMappingConnectionManagerThis interface describes the functionality in the mapping connection manager. The authority connection manager manages the definitions of individual connections, and allows them to be defined, edited, and removed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IMappingConnectioncreate()Create a new mapping connection object.voiddeinstall()Uninstall the manager.voiddelete(java.lang.String name)Delete an mapping connection.voidexportConfiguration(java.io.OutputStream os)Export configurationIMappingConnection[]getAllConnections()Obtain a list of the mapping connections, ordered by name.IMappingConnection[]getAllNonLoopingConnections(java.lang.String startingConnectionName)Obtain a list of the mapping connections, ordered by name, excluding those that would form a prerequisite loop if chosen.java.lang.StringgetMappingNameColumn()Get the mapping connection name column.java.lang.StringgetTableName()Get the authority connection table name.voidimportConfiguration(java.io.InputStream is)Import configurationvoidinstall()Install the manager.IMappingConnectionload(java.lang.String name)Load a mapping connection by name.IMappingConnection[]loadMultiple(java.lang.String[] names)Load multiple mapping connections by name.booleansave(IMappingConnection object)Save an mapping connection object.
-
-
-
Method Detail
-
install
void install() throws ManifoldCFExceptionInstall the manager.- Throws:
ManifoldCFException
-
deinstall
void deinstall() throws ManifoldCFExceptionUninstall the manager.- Throws:
ManifoldCFException
-
exportConfiguration
void exportConfiguration(java.io.OutputStream os) throws java.io.IOException, ManifoldCFExceptionExport configuration- Throws:
java.io.IOExceptionManifoldCFException
-
importConfiguration
void importConfiguration(java.io.InputStream is) throws java.io.IOException, ManifoldCFExceptionImport configuration- Throws:
java.io.IOExceptionManifoldCFException
-
getAllConnections
IMappingConnection[] getAllConnections() throws ManifoldCFException
Obtain a list of the mapping connections, ordered by name.- Returns:
- an array of connection objects.
- Throws:
ManifoldCFException
-
getAllNonLoopingConnections
IMappingConnection[] getAllNonLoopingConnections(java.lang.String startingConnectionName) throws ManifoldCFException
Obtain a list of the mapping connections, ordered by name, excluding those that would form a prerequisite loop if chosen.- Parameters:
startingConnectionName- is the name of the connection we would be starting with. Pass null for all connections.- Returns:
- an array of connection objects.
- Throws:
ManifoldCFException
-
load
IMappingConnection load(java.lang.String name) throws ManifoldCFException
Load a mapping connection by name.- Parameters:
name- is the name of the mapping connection.- Returns:
- the loaded connection object, or null if not found.
- Throws:
ManifoldCFException
-
loadMultiple
IMappingConnection[] loadMultiple(java.lang.String[] names) throws ManifoldCFException
Load multiple mapping connections by name.- Parameters:
names- are the names to load.- Returns:
- the loaded connection objects.
- Throws:
ManifoldCFException
-
create
IMappingConnection create() throws ManifoldCFException
Create a new mapping connection object.- Returns:
- the new object.
- Throws:
ManifoldCFException
-
save
boolean save(IMappingConnection object) throws ManifoldCFException
Save an mapping connection object.- Parameters:
object- is the object to save.- Returns:
- true if the object was created, false otherwise.
- Throws:
ManifoldCFException
-
delete
void delete(java.lang.String name) throws ManifoldCFExceptionDelete an mapping connection.- Parameters:
name- is the name of the connection to delete. If the name does not exist, no error is returned.- Throws:
ManifoldCFException
-
getTableName
java.lang.String getTableName()
Get the authority connection table name.- Returns:
- the table name.
-
getMappingNameColumn
java.lang.String getMappingNameColumn()
Get the mapping connection name column.- Returns:
- the name column.
-
-