org.apache.derby.impl.load
Class ImportAbstract

java.lang.Object
  extended byorg.apache.derby.vti.VTITemplate
      extended byorg.apache.derby.impl.load.ImportAbstract
All Implemented Interfaces:
java.sql.ResultSet
Direct Known Subclasses:
Import

abstract class ImportAbstract
extends VTITemplate


Field Summary
protected static java.lang.String COLUMNNAMEPREFIX
           
protected  java.lang.String[] columnNames
           
protected  int[] columnWidths
           
protected  ControlInfo controlFileReader
           
protected  ImportReadData importReadData
           
protected  java.sql.ResultSetMetaData importResultSetMetaData
           
protected  java.lang.String[] nextRow
           
protected  int noOfColumnsExpected
           
protected  int numberOfColumns
           
private  boolean wasNull
           
 
Fields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
 
Constructor Summary
(package private) ImportAbstract()
           
 
Method Summary
 void close()
          closes the resultset
protected  void doAllTheWork()
          Does all the work
protected abstract  ImportReadData getImportReadData()
           
 java.sql.ResultSetMetaData getMetaData()
          Gets the resultset meta data
 int getRow()
          gets the next row
 java.lang.String getString(int columnIndex)
           
protected  void loadColumnNames()
           
 boolean next()
           
 boolean wasNull()
           
 
Methods inherited from class org.apache.derby.vti.VTITemplate
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getInt, getInt, getLong, getLong, getObject, getObject, getObject, getObject, getRef, getRef, getShort, getShort, getStatement, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, last, moveToCurrentRow, moveToInsertRow, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateShort, updateShort, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controlFileReader

protected ControlInfo controlFileReader

importReadData

protected ImportReadData importReadData

columnNames

protected java.lang.String[] columnNames

numberOfColumns

protected int numberOfColumns

columnWidths

protected int[] columnWidths

nextRow

protected java.lang.String[] nextRow

importResultSetMetaData

protected java.sql.ResultSetMetaData importResultSetMetaData

noOfColumnsExpected

protected int noOfColumnsExpected

wasNull

private boolean wasNull

COLUMNNAMEPREFIX

protected static final java.lang.String COLUMNNAMEPREFIX
See Also:
Constant Field Values
Constructor Detail

ImportAbstract

ImportAbstract()
Method Detail

getImportReadData

protected abstract ImportReadData getImportReadData()
                                             throws java.lang.Exception
Throws:
java.lang.Exception

doAllTheWork

protected void doAllTheWork()
                     throws java.lang.Exception
Does all the work

Throws:
java.lang.Exception - if there is an error

loadColumnNames

protected void loadColumnNames()

getMetaData

public java.sql.ResultSetMetaData getMetaData()
Gets the resultset meta data

Throws:
java.sql.SQLException - if there is an error

getRow

public int getRow()
           throws java.sql.SQLException
gets the next row

Specified by:
getRow in interface java.sql.ResultSet
Overrides:
getRow in class VTITemplate
Throws:
java.sql.SQLException - if there is an error
See Also:
ResultSet

next

public boolean next()
             throws java.sql.SQLException
Throws:
java.sql.SQLException

close

public void close()
           throws java.sql.SQLException
closes the resultset

Throws:
java.sql.SQLException - if there is an error

wasNull

public boolean wasNull()
Specified by:
wasNull in interface java.sql.ResultSet
Overrides:
wasNull in class VTITemplate
See Also:
ResultSet

getString

public java.lang.String getString(int columnIndex)
                           throws java.sql.SQLException
Specified by:
getString in interface java.sql.ResultSet
Overrides:
getString in class VTITemplate
Throws:
java.sql.SQLException - if there is an error
See Also:
ResultSet

Built on Mon 2007-06-04 09:58:47+0400, from revision ???

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.