|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--uk.ac.ic.doc.automed.wrappers.AutoMedWrapper
|
+--uk.ac.ic.doc.automed.wrappers.YattaWrapper
A YATTA wrapper for semistructured data source.
| Field Summary |
| Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapper |
am, awf, debug, driver, password, protocol, s, url, username |
| Constructor Summary | |
YattaWrapper(AccessMethod am,
java.lang.String password)
|
|
| Method Summary | |
protected void |
connect()
Connect to a semistructured textfile --- i.e. |
ASG |
executeIQL(ASG q)
Execute an IQL query on the datasource. |
AutoMedResult |
executeLocalQuery(AutoMedQuery q)
Execute a query in the datasource's native query language, and obtain a result in an AutoMedResult class |
YattaQueryResult |
executeYattaQuery(YattaQuery q)
|
protected java.util.Vector |
getDatafromYattaData(java.util.Vector orderedschemes)
|
protected AutoMedWrapperFactory |
getDefaultWrapperFactory()
Returns a new instance of the default wrapper factory for this wrapper |
static java.lang.String |
getDriver()
The name of the driver string that identifies this wrapper |
java.lang.String |
getProtocolName()
The name of the Protocol in the repository used to represent
flat files with a YATTA schema. |
SSDFormat |
getSSDFormat()
|
java.lang.String |
getSSDSource()
|
Schema |
getWrapperSchema()
|
SchemaObject |
getYattaRootNode(Schema sc)
|
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)
Create an AutoMed Schema containing SchemaObjects
that represent a database, in such a form that queries on that
schema can be mapped by executeQuery in the query lanuage of the database. |
protected void |
readMetaData()
|
| Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapper |
atDebugLevel, cacheWrapper, deleteIQL, getAccessMethod, getAutoMedWrapper, getAutoMedWrapper, getAutoMedWrapperFactory, getOption, getOptionKeys, getProtocol, getSchema, getSchema, insertIQL, newAutoMedSchema, newAutoMedWrapper, newAutoMedWrapper, registerWrapper, selectNewAutoMedWrapper, selectNewAutoMedWrapper, setDebugLevel, setOption |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public YattaWrapper(AccessMethod am,
java.lang.String password)
throws DataSourceException
| Method Detail |
public static java.lang.String getDriver()
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
Schema containing SchemaObjects
that represent a database, in such a form that queries on that
schema can be mapped by executeQuery in the query lanuage of the database.
This should be called once per database, so as to configure
the repository. Subsequent uses of the database should call
the constructor for YattaWrapper with the AccessMethod of
the YattaWrapper returned here.
schemaName - is the name of the Schema to create in the
repository to represent the data source. If this is left null then
a connection is established to the data source, and the Schema
may be created later using AutoMedWrapper.getSchema(String)awf - is an YattaWrapperFactory instance configured to model
the source schema in the desired manner. This may be left null,
in which case an YattaWrapperFactory with default settings will be
created.
IntegrityException
DataSourceException
protected void connect()
throws DataSourceException
connect in class AutoMedWrapperDataSourceException - if unable to connect to the data source
protected void readMetaData()
throws AutoMedException,
java.sql.SQLException,
java.io.IOException
AutoMedException
java.sql.SQLException
java.io.IOExceptionpublic Schema getWrapperSchema()
public SSDFormat getSSDFormat()
public java.lang.String getSSDSource()
public SchemaObject getYattaRootNode(Schema sc)
public AutoMedResult executeLocalQuery(AutoMedQuery q)
throws DataSourceException
AutoMedWrapper
executeLocalQuery in class AutoMedWrapperDataSourceException
public YattaQueryResult executeYattaQuery(YattaQuery q)
throws DataSourceException
DataSourceExceptionprotected java.util.Vector getDatafromYattaData(java.util.Vector orderedschemes)
public ASG executeIQL(ASG q)
throws DataSourceException
AutoMedWrapper
executeIQL in class AutoMedWrapperq - An IQL query held in an ASG which complies with
the limitations of what this wrapper is able to process
ASG containing the results of the query
DataSourceExceptionprotected AutoMedWrapperFactory getDefaultWrapperFactory()
getDefaultWrapperFactory in class AutoMedWrapperpublic java.lang.String getProtocolName()
Protocol in the repository used to represent
flat files with a YATTA schema.
getProtocolName in class AutoMedWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||