Class Hierarchy Index
Class COM.cloudscape.tools.ImportExportSQLException
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----java.sql.SQLException
|
+----COM.cloudscape.tools.ImportExportSQLException
- public class ImportExportSQLException
- extends SQLException
Copyright © 1998-1999, Cloudscape, Inc. All rights reserved.
These exceptions that are thrown by the import and export modules.
- See Also:
- SQLException
-
ImportExportSQLException(String, String, int)
- Constructor for a ImportExportSQLException.
-
columnWidthsMissing()
- Raised if, in case of fixed format, no column widths information is found in the control file.
-
connectionNull()
- Raised if, the Cloudscape database connection is null.
-
controlFileNotFound(String)
- Raised if, the passed control file can't be found.
-
dataAfterStopDelimiter(int, int)
- Raised if, there is data found between the stop delimiter and field/record spearator.
-
dataFileNotFound(String)
- Raised if, the passed data file can't be found.
-
dataFileNull()
- Raised if, null is passed for data file url.
-
entityNameMissing()
- Raised if, the entity (ie table/view) for import/export is missing in the database.
-
errorWritingData()
- Raised if, got IOException while writing data to the file.
-
fieldAndRecordSeparatorsSubset()
- Raised if, field & record separators are substring of each other.
-
invalidColumnName(String)
- Raised if, no column by given name is found in the resultset while importing.
-
invalidColumnNumber(int)
- Raised if, no column by given number is found in the resultset while importing.
-
methodNotSupported(String)
- Raised if, the method invoked on the resultset is not implemented by FileImport.
-
nonSqlTypeColumn(int)
- Raised if, trying to export from an entity which has non-sql columns in it.
-
nullStringGreaterThanColumnWidth(int)
- Raised if, in case of fixed format, the null string length is greater than the column width
for that column.
-
recordSeparatorMissing(int)
- Raised if, in case of fixed format, don't find the record separator for a row in the data file.
-
unexpectedEndOfFile(int)
- Raised if, in case of fixed format, reach end of file before reading data for all the columns.
-
versionInformationMissing()
- Raised if, no version information is found in the control file.
-
versionMisMatch(String)
- Raised if, the version information found in control file doesn't match with current version
of import/export utility.
-
wasNullError()
- Raised if, before calling wasNull() on a column, you didn't do getString on that column.
ImportExportSQLException
public ImportExportSQLException(String message,
String SQLSTATE_Number,
int vendorCode)
- Constructor for a ImportExportSQLException.
- Parameters:
- message - a description of the exception
- SQLSTATE_Number - an XOPEN code identifying the exception
- vendorCode - a database vendor specific exception code
- See Also:
- SQLException
columnWidthsMissing
public static ImportExportSQLException columnWidthsMissing()
- Raised if, in case of fixed format, no column widths information is found in the control file.
connectionNull
public static ImportExportSQLException connectionNull()
- Raised if, the Cloudscape database connection is null.
controlFileNotFound
public static ImportExportSQLException controlFileNotFound(String fileName)
- Raised if, the passed control file can't be found.
- Parameters:
- fileName - the control file name
dataAfterStopDelimiter
public static ImportExportSQLException dataAfterStopDelimiter(int lineNumber,
int columnNumber)
- Raised if, there is data found between the stop delimiter and field/record spearator.
- Parameters:
- lineNumber - Found invalid data on this line number in the data file
- columnNumber - Found invalid data for this column number in the data file
dataFileNotFound
public static ImportExportSQLException dataFileNotFound(String fileName)
- Raised if, the passed data file can't be found.
- Parameters:
- fileName - the data file name
dataFileNull
public static ImportExportSQLException dataFileNull()
- Raised if, null is passed for data file url.
entityNameMissing
public static ImportExportSQLException entityNameMissing()
- Raised if, the entity (ie table/view) for import/export is missing in the database.
fieldAndRecordSeparatorsSubset
public static ImportExportSQLException fieldAndRecordSeparatorsSubset()
- Raised if, field & record separators are substring of each other.
invalidColumnName
public static ImportExportSQLException invalidColumnName(String columnName)
- Raised if, no column by given name is found in the resultset while importing.
- Parameters:
- columnName - the resultset doesn't have this column name
invalidColumnNumber
public static ImportExportSQLException invalidColumnNumber(int numberOfColumns)
- Raised if, no column by given number is found in the resultset while importing.
- Parameters:
- numberOfColumns - the resultset doesn't have this column number
methodNotSupported
public static ImportExportSQLException methodNotSupported(String methodName)
- Raised if, the method invoked on the resultset is not implemented by FileImport.
- Parameters:
- methodName - this method is not implemented by FileImport
nonSqlTypeColumn
public static ImportExportSQLException nonSqlTypeColumn(int columnNumber)
- Raised if, trying to export from an entity which has non-sql columns in it.
nullStringGreaterThanColumnWidth
public static ImportExportSQLException nullStringGreaterThanColumnWidth(int columnNumber)
- Raised if, in case of fixed format, the null string length is greater than the column width
for that column.
- Parameters:
- columnNumber - This column's width(as defined in the control file) is smaller than
the null string length
recordSeparatorMissing
public static ImportExportSQLException recordSeparatorMissing(int lineNumber)
- Raised if, in case of fixed format, don't find the record separator for a row in the data file.
- Parameters:
- lineNumber - the line number with the missing record separator in the data file
unexpectedEndOfFile
public static ImportExportSQLException unexpectedEndOfFile(int lineNumber)
- Raised if, in case of fixed format, reach end of file before reading data for all the columns.
versionInformationMissing
public static ImportExportSQLException versionInformationMissing()
- Raised if, no version information is found in the control file.
versionMisMatch
public static ImportExportSQLException versionMisMatch(String version)
- Raised if, the version information found in control file doesn't match with current version
of import/export utility.
- Parameters:
- version - the version number as found in the control file
wasNullError
public static ImportExportSQLException wasNullError()
- Raised if, before calling wasNull() on a column, you didn't do getString on that column.
errorWritingData
public static ImportExportSQLException errorWritingData()
- Raised if, got IOException while writing data to the file.
Class Hierarchy Index