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

Constructor Index

 o ImportExportSQLException(String, String, int)
Constructor for a ImportExportSQLException.

Method Index

 o columnWidthsMissing()
Raised if, in case of fixed format, no column widths information is found in the control file.
 o connectionNull()
Raised if, the Cloudscape database connection is null.
 o controlFileNotFound(String)
Raised if, the passed control file can't be found.
 o dataAfterStopDelimiter(int, int)
Raised if, there is data found between the stop delimiter and field/record spearator.
 o dataFileNotFound(String)
Raised if, the passed data file can't be found.
 o dataFileNull()
Raised if, null is passed for data file url.
 o entityNameMissing()
Raised if, the entity (ie table/view) for import/export is missing in the database.
 o errorWritingData()
Raised if, got IOException while writing data to the file.
 o fieldAndRecordSeparatorsSubset()
Raised if, field & record separators are substring of each other.
 o invalidColumnName(String)
Raised if, no column by given name is found in the resultset while importing.
 o invalidColumnNumber(int)
Raised if, no column by given number is found in the resultset while importing.
 o methodNotSupported(String)
Raised if, the method invoked on the resultset is not implemented by FileImport.
 o nonSqlTypeColumn(int)
Raised if, trying to export from an entity which has non-sql columns in it.
 o nullStringGreaterThanColumnWidth(int)
Raised if, in case of fixed format, the null string length is greater than the column width for that column.
 o recordSeparatorMissing(int)
Raised if, in case of fixed format, don't find the record separator for a row in the data file.
 o unexpectedEndOfFile(int)
Raised if, in case of fixed format, reach end of file before reading data for all the columns.
 o versionInformationMissing()
Raised if, no version information is found in the control file.
 o versionMisMatch(String)
Raised if, the version information found in control file doesn't match with current version of import/export utility.
 o wasNullError()
Raised if, before calling wasNull() on a column, you didn't do getString on that column.

Constructors

 o 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

Methods

 o columnWidthsMissing
 public static ImportExportSQLException columnWidthsMissing()
Raised if, in case of fixed format, no column widths information is found in the control file.

 o connectionNull
 public static ImportExportSQLException connectionNull()
Raised if, the Cloudscape database connection is null.

 o controlFileNotFound
 public static ImportExportSQLException controlFileNotFound(String fileName)
Raised if, the passed control file can't be found.

Parameters:
fileName - the control file name
 o 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
 o dataFileNotFound
 public static ImportExportSQLException dataFileNotFound(String fileName)
Raised if, the passed data file can't be found.

Parameters:
fileName - the data file name
 o dataFileNull
 public static ImportExportSQLException dataFileNull()
Raised if, null is passed for data file url.

 o entityNameMissing
 public static ImportExportSQLException entityNameMissing()
Raised if, the entity (ie table/view) for import/export is missing in the database.

 o fieldAndRecordSeparatorsSubset
 public static ImportExportSQLException fieldAndRecordSeparatorsSubset()
Raised if, field & record separators are substring of each other.

 o 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
 o 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
 o 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
 o nonSqlTypeColumn
 public static ImportExportSQLException nonSqlTypeColumn(int columnNumber)
Raised if, trying to export from an entity which has non-sql columns in it.

 o 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
 o 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
 o 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.

 o versionInformationMissing
 public static ImportExportSQLException versionInformationMissing()
Raised if, no version information is found in the control file.

 o 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
 o wasNullError
 public static ImportExportSQLException wasNullError()
Raised if, before calling wasNull() on a column, you didn't do getString on that column.

 o errorWritingData
 public static ImportExportSQLException errorWritingData()
Raised if, got IOException while writing data to the file.


  Class Hierarchy        Index