uk.ac.bbk.dcs.automed.xml.wrappers
Class XindiceWrapper
java.lang.Object
uk.ac.ic.doc.automed.wrappers.AutoMedWrapper
uk.ac.bbk.dcs.automed.xml.wrappers.XindiceWrapper
public class XindiceWrapper
- extends AutoMedWrapper
The url must be of the form: xmldb:vendordb://host:port/path/to/collection
- Author:
- Lucas Zamboulis
| Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapper |
am, awf, debug, driver, emptyKeyProtection, emptyKeys, optionKeyProtection, optionKeys, password, protocol, s, url, username |
| Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapper |
atDebugLevel, cacheWrapper, deleteIQL, executeLocalQuery, getAccessMethod, getAutoMedWrapper, getAutoMedWrapper, getAutoMedWrapperFactory, getDrivers, getOption, getOptionKeyProtection, getOptionKeys, getProtocol, getQueryParser, getSchema, getSchema, insertIQL, newAutoMedSchema, newAutoMedWrapper, newAutoMedWrapper, registerWrapper, selectNewAutoMedWrapper, selectNewAutoMedWrapper, setDebugLevel, setOption |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XindiceWrapper
public XindiceWrapper(AccessMethod am,
java.lang.String password)
throws DataSourceException
- Throws:
DataSourceException
newAutoMedWrapper
public static AutoMedWrapper newAutoMedWrapper(java.lang.String username,
java.lang.String password,
java.lang.String driver,
java.lang.String url,
java.lang.String schemaName,
AutoMedWrapperFactory awf)
throws IntegrityException,
DataSourceException
- Throws:
IntegrityException
DataSourceException
connect
public void connect()
throws DataSourceException
- Description copied from class:
AutoMedWrapper
- Use the connection details held with this wrapper to connect to
the data source.
- Specified by:
connect in class AutoMedWrapper
- Throws:
DataSourceException - if unable to connect to the data source
getProtocolName
public java.lang.String getProtocolName()
- Description copied from class:
AutoMedWrapper
- The name of the
Protocol that this wrapper uses
- Specified by:
getProtocolName in class AutoMedWrapper
getDefaultWrapperFactory
public AutoMedWrapperFactory getDefaultWrapperFactory()
- Description copied from class:
AutoMedWrapper
- Return the default
AutoMedWrapperFactory that is used to
generate Schema instances from information in a data sources
- Specified by:
getDefaultWrapperFactory in class AutoMedWrapper
executeIQL
public ASG executeIQL(ASG g)
- Description copied from class:
AutoMedWrapper
- Execute an IQL query on the datasource.
- Specified by:
executeIQL in class AutoMedWrapper
- Parameters:
g - An IQL query held in an ASG which complies with
the limitations of what this wrapper is able to process
- Returns:
- An
ASG containing the results of the query
finalize
public void finalize()
throws DataSourceException
- Overrides:
finalize in class java.lang.Object
- Throws:
DataSourceException