net.ontopia.topicmaps.db2tm
Class CSVDataSource

java.lang.Object
  extended by net.ontopia.topicmaps.db2tm.CSVDataSource
All Implemented Interfaces:
DataSourceIF

public class CSVDataSource
extends java.lang.Object
implements DataSourceIF

INTERNAL: Data source that reads CSV files from a directory.


Field Summary
protected  java.lang.String encoding
           
protected  int ignoreFirstLines
           
protected  RelationMapping mapping
           
protected  java.io.File path
           
protected  char quoteCharacter
           
protected  char separator
           
 
Method Summary
 void close()
          INTERNAL: Closes the data source so that it can release any open resources.
 ChangelogReaderIF getChangelogReader(Changelog changelog, java.lang.String startOrder)
          INTERNAL: Returns a changelog reader.
 java.lang.String getMaxOrderValue(Changelog changelog)
          INTERNAL: Returns the maximum value of the order column for the specified changelog.
 TupleReaderIF getReader(java.lang.String relation)
          INTERNAL: Returns a tuple reader for the given relation.
 java.util.Collection getRelations()
          INTERNAL: Returns the relations that the data source knows of.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mapping

protected RelationMapping mapping

path

protected java.io.File path

encoding

protected java.lang.String encoding

separator

protected char separator

quoteCharacter

protected char quoteCharacter

ignoreFirstLines

protected int ignoreFirstLines
Method Detail

getRelations

public java.util.Collection getRelations()
Description copied from interface: DataSourceIF
INTERNAL: Returns the relations that the data source knows of. The collection return contains Relation instances.

Specified by:
getRelations in interface DataSourceIF

getReader

public TupleReaderIF getReader(java.lang.String relation)
Description copied from interface: DataSourceIF
INTERNAL: Returns a tuple reader for the given relation.

Specified by:
getReader in interface DataSourceIF

getChangelogReader

public ChangelogReaderIF getChangelogReader(Changelog changelog,
                                            java.lang.String startOrder)
Description copied from interface: DataSourceIF
INTERNAL: Returns a changelog reader.

Specified by:
getChangelogReader in interface DataSourceIF

getMaxOrderValue

public java.lang.String getMaxOrderValue(Changelog changelog)
Description copied from interface: DataSourceIF
INTERNAL: Returns the maximum value of the order column for the specified changelog.

Specified by:
getMaxOrderValue in interface DataSourceIF

close

public void close()
Description copied from interface: DataSourceIF
INTERNAL: Closes the data source so that it can release any open resources.

Specified by:
close in interface DataSourceIF

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2000-2012 Ontopia.