| java.lang.Object org.apache.derby.impl.load.ColumnInfo
ColumnInfo | class ColumnInfo (Code) | | This class provides supportto create casting/conversions required to
perform import. Import VTI gives all the data in VARCHAR type becuase data
in the files is in CHAR format. There is no implicit cast availabile from
VARCHAR to some of the types. In cases where explicit casting is allowed,
columns are casted with explict cast to the type of table column; in case of
double/real explicit casting is also not allowd , scalar fuction DOUBLE is
used in those cases.
author: suresht |
ColumnInfo | public ColumnInfo(Connection conn, String sName, String tName, String insertColumnList, String vtiColumnIndexes, String vtiColumnPrefix) throws SQLException(Code) | | Initialize the column type and name information
Parameters: conn - - connection to use for metadata queries Parameters: sName - - table's schema Parameters: tName - - table Name Parameters: insertColumnList - - comma seperared insert statement column list Parameters: vtiColumnIndexes - - Indexes in the file Parameters: vtiColumnPrefix - - Prefix to use to generate column names to select from VTI exception: Exception - on error |
getColumnNamesWithCasts | public String getColumnNamesWithCasts()(Code) | | |
getExpectedNumberOfColumnsInFile | public int getExpectedNumberOfColumnsInFile()(Code) | | |
getInsertColumnNames | public String getInsertColumnNames()(Code) | | |
importExportSupportedType | final public static boolean importExportSupportedType(int type)(Code) | | |
|
|