scriptella.driver.text
Class TextConnection

java.lang.Object
  extended by scriptella.spi.AbstractConnection
      extended by scriptella.driver.text.AbstractTextConnection
          extended by scriptella.driver.text.TextConnection
All Implemented Interfaces:
scriptella.spi.Connection

public class TextConnection
extends AbstractTextConnection

Represents a connection to a Text file.

For configuration details and examples see overview page.

Version:
1.0
Author:
Fyodor Kupolov

Nested Class Summary
 
Nested classes/interfaces inherited from class scriptella.spi.AbstractConnection
scriptella.spi.AbstractConnection.StatementCounter
 
Field Summary
 
Fields inherited from class scriptella.driver.text.AbstractTextConnection
encoding, ENCODING, eol, EOL, flush, FLUSH, NULL_STRING, nullString, SKIP_LINES, skipLines, trim, TRIM, url
 
Fields inherited from class scriptella.spi.AbstractConnection
counter
 
Constructor Summary
protected TextConnection()
          For testing purposes only.
  TextConnection(scriptella.spi.ConnectionParameters parameters)
           
 
Method Summary
 void close()
           
 void executeQuery(scriptella.spi.Resource queryContent, scriptella.spi.ParametersCallback parametersCallback, scriptella.spi.QueryCallback queryCallback)
           
 void executeScript(scriptella.spi.Resource scriptContent, scriptella.spi.ParametersCallback parametersCallback)
           
protected  void initOut()
          Lazily initializes script writer.
 
Methods inherited from class scriptella.driver.text.AbstractTextConnection
getEncoding, getEol, getUrl, isTrim, newInputReader, newOutputWriter
 
Methods inherited from class scriptella.spi.AbstractConnection
commit, getDialectIdentifier, getExecutedStatementsCount, isReadonly, rollback, setDialectIdentifier, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextConnection

protected TextConnection()
For testing purposes only.


TextConnection

public TextConnection(scriptella.spi.ConnectionParameters parameters)
Method Detail

executeScript

public void executeScript(scriptella.spi.Resource scriptContent,
                          scriptella.spi.ParametersCallback parametersCallback)
                   throws scriptella.spi.ProviderException
Throws:
scriptella.spi.ProviderException

initOut

protected void initOut()
Lazily initializes script writer.


executeQuery

public void executeQuery(scriptella.spi.Resource queryContent,
                         scriptella.spi.ParametersCallback parametersCallback,
                         scriptella.spi.QueryCallback queryCallback)
                  throws scriptella.spi.ProviderException
Throws:
scriptella.spi.ProviderException

close

public void close()
           throws scriptella.spi.ProviderException
Throws:
scriptella.spi.ProviderException


Copyright © Copyright 2006-2009 The Scriptella Project Team.