|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.vti.VTITemplate
org.apache.derby.impl.load.ImportAbstract
abstract class ImportAbstract
| Field Summary | |
|---|---|
(package private) static java.lang.String |
COLUMNNAMEPREFIX
|
(package private) java.lang.String[] |
columnNames
|
(package private) java.lang.String[] |
columnTypeNames
|
(package private) java.lang.String |
columnTypeNamesString
|
(package private) int[] |
columnWidths
|
(package private) ControlInfo |
controlFileReader
|
(package private) ImportReadData |
importReadData
|
(package private) ImportResultSetMetaData |
importResultSetMetaData
|
(package private) int |
lineNumber
|
protected boolean |
lobsInExtFile
|
(package private) java.lang.String[] |
nextRow
|
(package private) int |
noOfColumnsExpected
|
(package private) int |
numberOfColumns
|
(package private) int[] |
tableColumnTypes
|
(package private) java.lang.String |
tableColumnTypesStr
|
(package private) java.util.HashMap |
udtClasses
|
(package private) java.lang.String |
udtClassNamesString
|
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 | |
|---|---|
ImportAbstract()
|
|
| Method Summary | |
|---|---|
void |
close()
closes the resultset |
static java.lang.Object |
destringifyObject(java.lang.String raw)
Read an object which was serialized to a string using StringUtil |
(package private) void |
doAllTheWork()
Does all the work |
java.sql.Blob |
getBlob(int columnIndex)
Returns java.sql.Blob type object that
contains the column data from the import file. |
byte[] |
getBytes(int columnIndex)
Returns byte array that contains the column data from the import file. |
java.sql.Clob |
getClob(int columnIndex)
Returns java.sql.Clob type object that
contains the column data from the import file. |
int |
getCurrentLineNumber()
gets the current line number |
(package private) abstract ImportReadData |
getImportReadData()
|
java.sql.ResultSetMetaData |
getMetaData()
Gets the resultset meta data |
java.lang.Object |
getObject(int columnIndex)
Returns Object that contains the column data from the import file. |
int |
getRow()
gets the next row |
java.lang.String |
getString(int columnIndex)
|
java.sql.SQLException |
importError(java.lang.Exception ex)
Close the stream and wrap exception in a SQLException |
private boolean |
isColumnInExtFile(int colIndex)
Check if for this column type, real data is stored in an external file and only the reference is in the main import file. |
(package private) void |
loadColumnNames()
|
boolean |
next()
|
static java.lang.Object |
readObject(byte[] bytes)
Read a serializable from a set of bytes. |
boolean |
wasNull()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.ResultSet |
|---|
getHoldability, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getRowId, getRowId, getSQLXML, getSQLXML, isClosed, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateRowId, updateRowId, updateSQLXML, updateSQLXML |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Field Detail |
|---|
ControlInfo controlFileReader
ImportReadData importReadData
java.lang.String[] columnNames
int numberOfColumns
int[] columnWidths
int lineNumber
java.lang.String[] nextRow
ImportResultSetMetaData importResultSetMetaData
int noOfColumnsExpected
protected boolean lobsInExtFile
java.lang.String tableColumnTypesStr
int[] tableColumnTypes
java.lang.String columnTypeNamesString
java.lang.String[] columnTypeNames
java.lang.String udtClassNamesString
java.util.HashMap udtClasses
private boolean wasNull
static final java.lang.String COLUMNNAMEPREFIX
| Constructor Detail |
|---|
ImportAbstract()
| Method Detail |
|---|
abstract ImportReadData getImportReadData()
throws java.lang.Exception
java.lang.Exception
void doAllTheWork()
throws java.lang.Exception
java.lang.Exception - if there is an errorvoid loadColumnNames()
public java.sql.ResultSetMetaData getMetaData()
java.sql.SQLException - if there is an error
public int getRow()
throws java.sql.SQLException
getRow in interface java.sql.ResultSetgetRow in class VTITemplatejava.sql.SQLException - if there is an errorResultSetpublic int getCurrentLineNumber()
public boolean next()
throws java.sql.SQLException
java.sql.SQLException
public void close()
throws java.sql.SQLException
java.sql.SQLException - if there is an errorpublic boolean wasNull()
wasNull in interface java.sql.ResultSetwasNull in class VTITemplateResultSet
public java.lang.String getString(int columnIndex)
throws java.sql.SQLException
getString in interface java.sql.ResultSetgetString in class VTITemplatejava.sql.SQLException - if there is an errorResultSet
public java.sql.Clob getClob(int columnIndex)
throws java.sql.SQLException
java.sql.Clob type object that
contains the column data from the import file.
getClob in interface java.sql.ResultSetgetClob in class VTITemplatecolumnIndex - number of the column. starts at 1.
java.sql.SQLException - if any occurs during create of the clob object.ResultSet
public java.sql.Blob getBlob(int columnIndex)
throws java.sql.SQLException
java.sql.Blob type object that
contains the column data from the import file.
getBlob in interface java.sql.ResultSetgetBlob in class VTITemplatecolumnIndex - number of the column. starts at 1.
java.sql.SQLException - if any occurs during create of the blob object.ResultSet
public java.lang.Object getObject(int columnIndex)
throws java.sql.SQLException
getObject in interface java.sql.ResultSetgetObject in class VTITemplatecolumnIndex - number of the column. starts at 1.
java.sql.SQLException - if any error occurs.ResultSet
public static java.lang.Object readObject(byte[] bytes)
throws java.lang.Exception
java.lang.Exception
public static java.lang.Object destringifyObject(java.lang.String raw)
throws java.lang.Exception
java.lang.Exception
public byte[] getBytes(int columnIndex)
throws java.sql.SQLException
getBytes in interface java.sql.ResultSetgetBytes in class VTITemplatecolumnIndex - number of the column. starts at 1.
java.sql.SQLException - if any error occurs.ResultSetprivate boolean isColumnInExtFile(int colIndex)
colIndex - number of the column. starts at 1.
public java.sql.SQLException importError(java.lang.Exception ex)
ex - Exception causing the import error
java.sql.SQLException
|
Built on Thu 2012-03-29 21:53:33+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||