org.hsqldb.scriptio
Class ScriptReaderBase

java.lang.Object
  extended byorg.hsqldb.scriptio.ScriptReaderBase
Direct Known Subclasses:
ScriptReaderText

public abstract class ScriptReaderBase
extends Object


Method Summary
 void close()
           
 int getLineNumber()
           
static ScriptReaderBase newScriptReader(Database db, String file, int scriptType)
           
protected  void openFile()
           
 void readAll(Session session)
           
protected abstract  void readDDL(Session session)
           
protected abstract  void readExistingData(Session session)
           
abstract  String readLoggedStatement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newScriptReader

public static ScriptReaderBase newScriptReader(Database db,
                                               String file,
                                               int scriptType)
                                        throws HsqlException,
                                               IOException
Throws:
HsqlException
IOException

openFile

protected void openFile()
                 throws IOException
Throws:
IOException

readAll

public void readAll(Session session)
             throws IOException,
                    HsqlException
Throws:
IOException
HsqlException

readDDL

protected abstract void readDDL(Session session)
                         throws IOException,
                                HsqlException
Throws:
IOException
HsqlException

readExistingData

protected abstract void readExistingData(Session session)
                                  throws IOException,
                                         HsqlException
Throws:
IOException
HsqlException

readLoggedStatement

public abstract String readLoggedStatement()
                                    throws IOException
Throws:
IOException

getLineNumber

public int getLineNumber()

close

public void close()
           throws IOException
Throws:
IOException


Copyright © 2001 - 2004 HSQL Development Group. All Rights Reserved.