com.partnersoft.v3x.io.sql
Class DatabaseExtractorConfig

java.lang.Object
  extended by com.partnersoft.v3x.io.sql.DatabaseExtractorConfig
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SQL2PointDatafileConfig

public class DatabaseExtractorConfig
extends java.lang.Object
implements java.io.Serializable

Configuration for a single extraction query.

See Also:
Serialized Form

Constructor Summary
DatabaseExtractorConfig()
          Create a new DatabaseExtractorConfig.
 
Method Summary
 DatabaseConnectionConfig getConnection()
          Database connection details.
 java.lang.String getDumpPath()
          Directory to dump the results to.
 java.lang.String getIndexField()
          Name of field to index the results by.
 java.lang.String getName()
          Name of dump to place results in.
 boolean getNoLowerCase()
           
 boolean getNoTrim()
           
 java.lang.String getQuery()
          SQL query to run.
 boolean getSortOnDisk()
          If true, sorts on disk rather than in memory.
 void setConnection(DatabaseConnectionConfig newConnection)
          Database connection details.
 void setDumpPath(java.lang.String newDumpPath)
          Directory to dump the results to.
 void setIndexField(java.lang.String newIndexField)
          Name of field to index the results by.
 void setName(java.lang.String newName)
          Name of dump to place results in.
 void setNoLowerCase(boolean tizit)
           
 void setNoTrim(boolean tizit)
           
 void setQuery(java.lang.String newQuery)
          SQL query to run.
 void setSortOnDisk(boolean shouldI)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatabaseExtractorConfig

public DatabaseExtractorConfig()
Create a new DatabaseExtractorConfig.

Method Detail

toString

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

getConnection

public DatabaseConnectionConfig getConnection()
Database connection details.


setConnection

public void setConnection(DatabaseConnectionConfig newConnection)
Database connection details.


getDumpPath

public java.lang.String getDumpPath()
Directory to dump the results to.


setDumpPath

public void setDumpPath(java.lang.String newDumpPath)
Directory to dump the results to.


getIndexField

public java.lang.String getIndexField()
Name of field to index the results by.


setIndexField

public void setIndexField(java.lang.String newIndexField)
Name of field to index the results by.


getName

public java.lang.String getName()
Name of dump to place results in. (generates name.index, name.dump, and name.fields files in dumpPath directory).


setName

public void setName(java.lang.String newName)
Name of dump to place results in. (generates name.index, name.dump, and name.fields files in dumpPath directory).


getQuery

public java.lang.String getQuery()
SQL query to run.


setQuery

public void setQuery(java.lang.String newQuery)
SQL query to run.


getSortOnDisk

public boolean getSortOnDisk()
If true, sorts on disk rather than in memory. Slower, might be more robust.


setSortOnDisk

public void setSortOnDisk(boolean shouldI)

getNoTrim

public boolean getNoTrim()

setNoTrim

public void setNoTrim(boolean tizit)

getNoLowerCase

public boolean getNoLowerCase()

setNoLowerCase

public void setNoLowerCase(boolean tizit)