org.oddjob.sql
Class ScriptParser

java.lang.Object
  extended by org.oddjob.sql.ScriptParser
All Implemented Interfaces:
ArooaSessionAware, BusAware, Driver<String>, StageNotifier

public class ScriptParser
extends Object
implements ArooaSessionAware, Driver<String>, BusAware, StageNotifier


Constructor Summary
ScriptParser()
           
 
Method Summary
 void addStageListener(StageListener listener)
           
 String getDelimiter()
           
 SQLJob.DelimiterType getDelimiterType()
           
 String getEncoding()
           
 InputStream getInput()
           
 void go()
           
 boolean isExpandProperties()
           
 boolean isKeepFormat()
           
 void removeStageListener(StageListener listener)
           
 void setArooaSession(ArooaSession session)
           
 void setBus(BeanBus bus)
           
 void setDelimiter(String delimiter)
           
 void setDelimiterType(SQLJob.DelimiterType delimiterType)
           
 void setEncoding(String encoding)
           
 void setExpandProperties(boolean expandProperties)
           
 void setInput(InputStream input)
           
 void setKeepFormat(boolean keepformat)
           
 void setTo(Destination<? super String> to)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptParser

public ScriptParser()
Method Detail

setArooaSession

public void setArooaSession(ArooaSession session)
Specified by:
setArooaSession in interface ArooaSessionAware

isKeepFormat

public boolean isKeepFormat()

setKeepFormat

public void setKeepFormat(boolean keepformat)

isExpandProperties

public boolean isExpandProperties()

setExpandProperties

public void setExpandProperties(boolean expandProperties)

getDelimiterType

public SQLJob.DelimiterType getDelimiterType()

setDelimiterType

public void setDelimiterType(SQLJob.DelimiterType delimiterType)

getDelimiter

public String getDelimiter()

setDelimiter

public void setDelimiter(String delimiter)

getEncoding

public String getEncoding()

setEncoding

public void setEncoding(String encoding)

go

public void go()
        throws BusException
Specified by:
go in interface Driver<String>
Throws:
BusException

setBus

public void setBus(BeanBus bus)
Specified by:
setBus in interface BusAware

addStageListener

public void addStageListener(StageListener listener)
Specified by:
addStageListener in interface StageNotifier

removeStageListener

public void removeStageListener(StageListener listener)
Specified by:
removeStageListener in interface StageNotifier

setTo

public void setTo(Destination<? super String> to)
Specified by:
setTo in interface Driver<String>

stop

public void stop()
Specified by:
stop in interface Driver<String>

getInput

public InputStream getInput()

setInput

public void setInput(InputStream input)