AwareVTIImportabstract class ImportAbstract extends VTITemplate
VTITemplate.ColumnDescriptor| Modifier and Type | Field | Description |
|---|---|---|
(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 |
| Constructor | Description |
|---|---|
ImportAbstract() |
| Modifier and Type | Method | Description |
|---|---|---|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdateObject, updateObject, updateObject, updateObjectabsolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getCharacterStream, getCharacterStream, getClob, getConcurrency, getContext, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getLong, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getReturnTableSignature, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, notImplemented, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setContext, setFetchDirection, setFetchSize, unwrap, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestampControlInfo 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
abstract ImportReadData getImportReadData() throws java.lang.Exception
java.lang.Exceptionvoid doAllTheWork()
throws java.lang.Exception
java.lang.Exception - if there is an errorvoid loadColumnNames()
public java.sql.ResultSetMetaData getMetaData()
getMetaData in class VTITemplatejava.sql.SQLException - if there is an errorpublic int getRow()
throws java.sql.SQLException
getRow in class VTITemplatejava.sql.SQLException - if there is an errorpublic int getCurrentLineNumber()
public boolean next()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void close()
throws java.sql.SQLException
java.sql.SQLException - if there is an errorpublic boolean wasNull()
wasNull in class VTITemplatepublic java.lang.String getString(int columnIndex)
throws java.sql.SQLException
getString in class VTITemplatejava.sql.SQLException - if there is an errorpublic 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 class VTITemplatecolumnIndex - number of the column. starts at 1.java.sql.SQLException - if any occurs during create of the clob object.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 class VTITemplatecolumnIndex - number of the column. starts at 1.java.sql.SQLException - if any occurs during create of the blob object.public java.lang.Object getObject(int columnIndex)
throws java.sql.SQLException
getObject in class VTITemplatecolumnIndex - number of the column. starts at 1.java.sql.SQLException - if any error occurs.public static java.lang.Object readObject(byte[] bytes)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.Object destringifyObject(java.lang.String raw)
throws java.lang.Exception
java.lang.Exceptionpublic byte[] getBytes(int columnIndex)
throws java.sql.SQLException
getBytes in class VTITemplatecolumnIndex - number of the column. starts at 1.java.sql.SQLException - if any error occurs.private 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 errorjava.sql.SQLExceptionApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.