public class Import extends ImportAbstract
COLUMNNAMEPREFIX, columnNames, columnTypeNames, columnTypeNamesString, columnWidths, controlFileReader, importReadData, importResultSetMetaData, lineNumber, lobsInExtFile, nextRow, noOfColumnsExpected, numberOfColumns, tableColumnTypes, tableColumnTypesStr, udtClasses, udtClassNamesString
Constructor and Description |
---|
Import(java.lang.String inputFileName,
java.lang.String columnDelimiter,
java.lang.String characterDelimiter,
java.lang.String codeset,
int noOfColumnsExpected,
java.lang.String columnTypes,
boolean lobsInExtFile,
int importCounter,
java.lang.String columnTypeNames,
java.lang.String udtClassNamesString)
Constructior to Invoke Import from a select statement
|
Modifier and Type | Method and Description |
---|---|
(package private) ImportReadData |
getImportReadData()
virtual method from the abstract class
|
static void |
importData(java.sql.Connection connection,
java.lang.String schemaName,
java.lang.String tableName,
java.lang.String insertColumnList,
java.lang.String columnIndexes,
java.lang.String inputFileName,
java.lang.String columnDelimiter,
java.lang.String characterDelimiter,
java.lang.String tableDefinition,
boolean lobsInExtFile)
SYSCS_IMPORT_DATA system Procedure from ij or from a Java application
invokes this method to perform import to a table from a file.
|
static void |
importTable(java.sql.Connection connection,
java.lang.String schemaName,
java.lang.String tableName,
java.lang.String inputFileName,
java.lang.String columnDelimiter,
java.lang.String characterDelimiter,
java.lang.String tableDefinition,
boolean lobsInExtFile)
SYSCS_IMPORT_TABLE system Procedure from ij or from a Java application
invokes this method to perform import to a table from a file.
|
close, destringifyObject, doAllTheWork, getBlob, getBytes, getClob, getCurrentLineNumber, getMetaData, getObject, getRow, getString, importError, loadColumnNames, next, readObject, wasNull
getBigDecimal, getBigDecimal, getBoolean, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, getTime, getTimestamp
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBoolean, getByte, getCharacterStream, getCharacterStream, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDouble, getFetchDirection, getFetchSize, getFloat, getHoldability, getInt, getLong, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getRef, getRef, getRowId, getRowId, getShort, getSQLXML, getSQLXML, getStatement, getTime, getTime, getTime, 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, 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, updateTimestamp
public Import(java.lang.String inputFileName, java.lang.String columnDelimiter, java.lang.String characterDelimiter, java.lang.String codeset, int noOfColumnsExpected, java.lang.String columnTypes, boolean lobsInExtFile, int importCounter, java.lang.String columnTypeNames, java.lang.String udtClassNamesString) throws java.sql.SQLException
inputFileName
- The URL of the ASCII file from which import will happenjava.lang.Exception
- on errorjava.sql.SQLException
public static void importTable(java.sql.Connection connection, java.lang.String schemaName, java.lang.String tableName, java.lang.String inputFileName, java.lang.String columnDelimiter, java.lang.String characterDelimiter, java.lang.String tableDefinition, boolean lobsInExtFile) throws java.sql.SQLException
connection
- The Derby database connection URL for the database containing the tableschemaName
- The name of the schema where table to import existstableName
- Name of the Table the data has to be imported to.inputFileName
- Name of the file from which data has to be imported.columnDelimiter
- Delimiter that seperates columns in the filecharacterDelimiter
- Delimiter that is used to quiote non-numeric typestableDefinition
- table definition for the data in the filelobsInExtFile
- true, if the lobs data is stored in an external file,
and the reference to it is stored in the main import file.java.sql.SQLException
- on errorspublic static void importData(java.sql.Connection connection, java.lang.String schemaName, java.lang.String tableName, java.lang.String insertColumnList, java.lang.String columnIndexes, java.lang.String inputFileName, java.lang.String columnDelimiter, java.lang.String characterDelimiter, java.lang.String tableDefinition, boolean lobsInExtFile) throws java.sql.SQLException
connection
- The Derby database connection URL for the database containing the tableschemaName
- The name of the schema where table to import existstableName
- Name of the Table the data has to be imported to.insertColumnList
- Comma Seperated column name list to which data
has to be imported from file.eg: 'c2,c2,'c3'.columnIndexes
- Comma sepearted Lit Index of the columns in the file(first column
starts at 1). eg: '3 ,4 , 5'inputFileName
- Name of the file from which data has to be imported.columnDelimiter
- Delimiter that seperates columns in the filecharacterDelimiter
- Delimiter that is used to quiote non-numeric typestableDefinition
- table definition for the data in the filelobsInExtFile
- true, if the lobs data is stored in an external file,
and the reference is stored in the main import file.java.sql.SQLException
- on errorsImportReadData getImportReadData() throws java.lang.Exception
getImportReadData
in class ImportAbstract
java.lang.Exception
- on error