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