public class MappingConnectionManager extends BaseTable implements IMappingConnectionManager
| Field | Type | Description |
|---|---|---|
| mappingname | VARCHAR(32) | Primary Key |
| description | VARCHAR(255) | |
| classname | VARCHAR(255) | |
| maxcount | BIGINT | |
| configxml | LONGTEXT |
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MappingConnectionManager.MappingConnectionDescription
This is the object description for a mapping connection object.
|
protected static class |
MappingConnectionManager.MappingConnectionExecutor
This is the executor object for locating mapping connection objects.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_rcsid |
protected ICacheManager |
cacheManager |
protected static java.lang.String |
classNameField |
protected static java.lang.String |
configField |
protected static java.lang.String |
descriptionField |
protected static int |
FETCH_MAX |
protected ILockManager |
lockManager |
protected static java.lang.String |
mappingField |
protected static java.lang.String |
mappingsLock |
protected static java.lang.String |
maxCountField |
protected static java.lang.String |
nameField |
protected IThreadContext |
threadContext |
dbInterface, tableName| Constructor and Description |
|---|
MappingConnectionManager(IThreadContext threadContext,
IDBInterface database)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IMappingConnection |
create()
Create a new repository connection object.
|
void |
deinstall()
Uninstall the manager.
|
void |
delete(java.lang.String name)
Delete an authority connection.
|
void |
exportConfiguration(java.io.OutputStream os)
Export configuration
|
IMappingConnection[] |
getAllConnections()
Obtain a list of the repository 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.
|
protected static java.lang.String |
getMappingConnectionKey(java.lang.String connectionName)
Construct a key which represents an individual mapping connection.
|
protected void |
getMappingConnectionsChunk(MappingConnection[] rval,
java.util.Map returnIndex,
java.util.ArrayList params)
Read a chunk of mapping connections.
|
protected static java.lang.String |
getMappingConnectionsKey()
Construct a key which represents the general list of mapping connectors.
|
protected MappingConnection[] |
getMappingConnectionsMultiple(java.lang.String[] connectionNames)
Fetch multiple mapping connections at a single time.
|
java.lang.String |
getMappingNameColumn()
Get the mapping connection name column.
|
void |
importConfiguration(java.io.InputStream is)
Import configuration
|
void |
install()
Install the manager.
|
protected boolean |
isReferenced(java.lang.String mappingName)
Return true if the specified mapping name is referenced.
|
IMappingConnection |
load(java.lang.String name)
Load a mapping connection by name.
|
IMappingConnection[] |
loadMultiple(java.lang.String[] names)
Load multiple mapping connections by name.
|
protected int |
loadMultipleInternal(IMappingConnection[] rval,
int outputIndex,
java.lang.String[] fetchNames,
int inputIndex,
int length) |
protected int |
maxClauseGetMappingConnectionsChunk()
Find the maximum number of clauses for getMappingConnectionsChunk.
|
boolean |
save(IMappingConnection object)
Save a mapping connection object.
|
addTableIndex, analyzeTable, beginTransaction, buildConjunctionClause, constructCountClause, constructDistinctOnClause, constructDoubleCastClause, constructOffsetLimitClause, constructRegexpClause, constructSubstringClause, endTransaction, findConjunctionClauseMax, getDatabaseCacheKey, getDBInterface, getMaxInClause, getMaxOrClause, getSleepAmt, getTableIndexes, getTableName, getTableSchema, getTransactionID, getWindowedReportMaxRows, makeTableKey, noteModifications, performAddIndex, performAlter, performCommit, performCreate, performDelete, performDrop, performInsert, performModification, performQuery, performQuery, performRemoveIndex, performUpdate, prepareRowForSave, readRow, reindexTable, signalRollback, sleepForclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTableNamepublic static final java.lang.String _rcsid
protected static final java.lang.String nameField
protected static final java.lang.String descriptionField
protected static final java.lang.String classNameField
protected static final java.lang.String maxCountField
protected static final java.lang.String configField
protected static final java.lang.String mappingField
protected final ICacheManager cacheManager
protected final IThreadContext threadContext
protected final ILockManager lockManager
protected static final java.lang.String mappingsLock
protected static final int FETCH_MAX
public MappingConnectionManager(IThreadContext threadContext, IDBInterface database) throws ManifoldCFException
threadContext - is the thread context.ManifoldCFExceptionpublic void install()
throws ManifoldCFException
install in interface IMappingConnectionManagerManifoldCFExceptionpublic void deinstall()
throws ManifoldCFException
deinstall in interface IMappingConnectionManagerManifoldCFExceptionpublic void exportConfiguration(java.io.OutputStream os)
throws java.io.IOException,
ManifoldCFException
exportConfiguration in interface IMappingConnectionManagerjava.io.IOExceptionManifoldCFExceptionpublic void importConfiguration(java.io.InputStream is)
throws java.io.IOException,
ManifoldCFException
importConfiguration in interface IMappingConnectionManagerjava.io.IOExceptionManifoldCFExceptionpublic IMappingConnection[] getAllNonLoopingConnections(java.lang.String startingConnectionName) throws ManifoldCFException
getAllNonLoopingConnections in interface IMappingConnectionManagerstartingConnectionName - is the name of the connection we would be starting with.
Pass null for all connections.ManifoldCFExceptionpublic IMappingConnection[] getAllConnections() throws ManifoldCFException
getAllConnections in interface IMappingConnectionManagerManifoldCFExceptionpublic IMappingConnection load(java.lang.String name) throws ManifoldCFException
load in interface IMappingConnectionManagername - is the name of the mapping connection.ManifoldCFExceptionpublic IMappingConnection[] loadMultiple(java.lang.String[] names) throws ManifoldCFException
loadMultiple in interface IMappingConnectionManagernames - are the names to load.ManifoldCFExceptionprotected int loadMultipleInternal(IMappingConnection[] rval, int outputIndex, java.lang.String[] fetchNames, int inputIndex, int length) throws ManifoldCFException
ManifoldCFExceptionpublic IMappingConnection create() throws ManifoldCFException
create in interface IMappingConnectionManagerManifoldCFExceptionpublic boolean save(IMappingConnection object) throws ManifoldCFException
save in interface IMappingConnectionManagerobject - is the object to save.ManifoldCFExceptionpublic void delete(java.lang.String name)
throws ManifoldCFException
delete in interface IMappingConnectionManagername - is the name of the connection to delete. If the
name does not exist, no error is returned.ManifoldCFExceptionpublic java.lang.String getMappingNameColumn()
getMappingNameColumn in interface IMappingConnectionManagerprotected boolean isReferenced(java.lang.String mappingName)
throws ManifoldCFException
mappingName - is the mapping name.ManifoldCFExceptionprotected static java.lang.String getMappingConnectionsKey()
protected static java.lang.String getMappingConnectionKey(java.lang.String connectionName)
connectionName - is the name of the connector.protected MappingConnection[] getMappingConnectionsMultiple(java.lang.String[] connectionNames) throws ManifoldCFException
connectionNames - are a list of connection names.ManifoldCFExceptionprotected int maxClauseGetMappingConnectionsChunk()
protected void getMappingConnectionsChunk(MappingConnection[] rval, java.util.Map returnIndex, java.util.ArrayList params) throws ManifoldCFException
rval - is the place to put the read policies.returnIndex - is a map from the object id (resource id) and the rval index.params - is the set of parameters.ManifoldCFException