|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.automed.wrappers.AutoMedWrapper
uk.ac.ic.doc.automed.wrappers.CSVWrapper
public class CSVWrapper
Field Summary | |
---|---|
protected static long |
baseDateTime
|
protected Model |
csv
|
protected static int |
dateTimeElementPos
|
protected static java.lang.String |
driver
|
static java.lang.String |
driverString
|
protected Construct |
element
|
protected java.lang.String |
fileName
|
protected Construct |
rootElement
|
protected static long |
timeGap
|
Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapper |
---|
am, awf, debug, emptyKeyProtection, emptyKeys, optionKeyProtection, optionKeys, optionSet, password, protocol, s, url, username |
Constructor Summary | |
---|---|
CSVWrapper()
Creates a new, empty instance of XMLSchemaWrapper |
|
CSVWrapper(AccessMethod am,
java.lang.String password)
This constructor is used when querying the schema |
Method Summary | |
---|---|
protected void |
connect()
Check that the CSV file exists |
protected ASG |
csvQuery(java.lang.String searchNode,
boolean rootNode,
QueryProcessorConfiguration qpc)
|
ASG |
executeIQL(ASG q)
Execute an IQL query on the datasource. |
ASG |
executeSourceIQL(ASG q,
QueryProcessorConfiguration qpc,
int packetNumber)
This is similar to executeIQL(ASG q) except that it takes a configuration object as an extra argument. |
protected AutoMedWrapperFactory |
getDefaultWrapperFactory()
Return the default AutoMedWrapperFactory that is used to generate
Schema instances from information in a data sources |
static java.lang.String |
getDriver()
The name of the driver string that identifies this wrapper |
ResultSetMetadata |
getMetadata(ASG asg,
QueryProcessorConfiguration qpc)
Extract metadata from an ASG object (result or query) |
java.lang.String |
getProtocolName()
The name of the Protocol that this wrapper uses |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String driverString
protected static final int dateTimeElementPos
protected static final long timeGap
protected static final long baseDateTime
protected static java.lang.String driver
protected Model csv
protected Construct rootElement
protected Construct element
protected java.lang.String fileName
Constructor Detail |
---|
public CSVWrapper()
public CSVWrapper(AccessMethod am, java.lang.String password) throws DataSourceException, NotFoundException
DataSourceException
NotFoundException
Method Detail |
---|
protected void connect() throws DataSourceException
connect
in class AutoMedWrapper
DataSourceException
- if unable to connect to the data sourcepublic ASG executeSourceIQL(ASG q, QueryProcessorConfiguration qpc, int packetNumber) throws DataSourceException, NotFoundException
executeIQL(ASG q
} method.
executeSourceIQL
in interface CacheUser
executeSourceIQL
in class AutoMedWrapper
DataSourceException
NotFoundException
public ASG executeIQL(ASG q) throws DataSourceException
AutoMedWrapper
executeIQL
in class AutoMedWrapper
q
- 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
DataSourceException
protected ASG csvQuery(java.lang.String searchNode, boolean rootNode, QueryProcessorConfiguration qpc) throws DataSourceException
DataSourceException
public ResultSetMetadata getMetadata(ASG asg, QueryProcessorConfiguration qpc) throws ASGMetadataException
AutoMedWrapper
getMetadata
in interface CacheUser
getMetadata
in class AutoMedWrapper
ASGMetadataException
public static java.lang.String getDriver()
protected AutoMedWrapperFactory getDefaultWrapperFactory()
AutoMedWrapper
AutoMedWrapperFactory
that is used to generate
Schema
instances from information in a data sources
getDefaultWrapperFactory
in class AutoMedWrapper
public java.lang.String getProtocolName()
AutoMedWrapper
Protocol
that this wrapper uses
getProtocolName
in class AutoMedWrapper
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |