Class Hierarchy    Previous  Next  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 java.sql.SQLException
Copyright © 1998-2000, Informix Software, Inc. All rights reserved.

These exceptions that are thrown by the import and export modules.

See Also:
java.sql.SQLException

Constructor Index

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

Method Index

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

Constructor Detail

 o ImportExportSQLException
public ImportExportSQLException(java.lang.String message,
                                java.lang.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()

Method Detail

 o columnWidthsMissing
public static ImportExportSQLException columnWidthsMissing(COM.cloudscape.internalUtil.AppUI appUI)
          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 connectionNull
public static ImportExportSQLException connectionNull(COM.cloudscape.internalUtil.AppUI appUI)
 o controlFileNotFound
public static ImportExportSQLException controlFileNotFound(java.lang.String fileName,
                                                           COM.cloudscape.internalUtil.AppUI appUI)
          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,
                                                              COM.cloudscape.internalUtil.AppUI appUI)
          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(java.lang.String fileName,
                                                        COM.cloudscape.internalUtil.AppUI appUI)
          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 dataFileNull
public static ImportExportSQLException dataFileNull(COM.cloudscape.internalUtil.AppUI appUI)
 o entityNameMissing
public static ImportExportSQLException entityNameMissing()
          Raised if, the entity (ie table/view) for import/export is missing in the database.
 o entityNameMissing
public static ImportExportSQLException entityNameMissing(COM.cloudscape.internalUtil.AppUI appUI)
 o fieldAndRecordSeparatorsSubset
public static ImportExportSQLException fieldAndRecordSeparatorsSubset(COM.cloudscape.internalUtil.AppUI appUI)
          Raised if, field & record separators are substring of each other.
 o invalidColumnName
public static ImportExportSQLException invalidColumnName(java.lang.String columnName,
                                                         COM.cloudscape.internalUtil.AppUI appUI)
          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,
                                                           COM.cloudscape.internalUtil.AppUI appUI)
          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(java.lang.String methodName,
                                                          COM.cloudscape.internalUtil.AppUI appUI)
          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,
                                                        COM.cloudscape.internalUtil.AppUI appUI)
          Raised if, trying to export from an entity which has non-sql columns in it.
 o nullStringGreaterThanColumnWidth
public static ImportExportSQLException nullStringGreaterThanColumnWidth(int columnNumber,
                                                                        COM.cloudscape.internalUtil.AppUI appUI)
          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,
                                                              COM.cloudscape.internalUtil.AppUI appUI)
          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,
                                                           COM.cloudscape.internalUtil.AppUI appUI)
          Raised if, in case of fixed format, reach end of file before reading data for all the columns.
 o versionInformationMissing
public static ImportExportSQLException versionInformationMissing(COM.cloudscape.internalUtil.AppUI appUI)
          Raised if, no version information is found in the control file.
 o versionMisMatch
public static ImportExportSQLException versionMisMatch(java.lang.String version,
                                                       COM.cloudscape.internalUtil.AppUI appUI)
          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(COM.cloudscape.internalUtil.AppUI appUI)
          Raised if, before calling wasNull() on a column, you didn't do getString on that column.
 o errorWritingData
public static ImportExportSQLException errorWritingData(COM.cloudscape.internalUtil.AppUI appUI)
          Raised if, got IOException while writing data to the file.

  Class Hierarchy    Previous  Next  Index