Top Description Constructors Methods
org.apache.derby.impl.load

pack-priv Class LoadError

extends Object
Class Inheritance
Imports
java.io.IOException, java.sql.SQLException, org.apache.derby.shared.common.error.ExceptionSeverity, .StandardException, .PublicAPI, org.apache.derby.shared.common.reference.SQLState

These exceptions are thrown by the import and export modules.
See Also
SQLException

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static SQLException
connectionNull()

Raised if, the Derby database connection is null.

pack-priv static SQLException
dataAfterStopDelimiter(int
Found invalid data on this line number in the data file
lineNumber
,
int
Found invalid data for this column number in the data file
columnNumber
)

Raised if, there is data found between the stop delimiter and field/record spearator.

pack-priv static SQLException
dataFileExists(String fileName)

Raised if, data file exists.

pack-priv static SQLException
dataFileNotFound(String
the data file name
fileName
,
Exception
the exception that prevented us from opening the file
ex
)

Raised if, the passed data file can't be found.

pack-priv static SQLException
dataFileNull()

Raised if, null is passed for data file url.

pack-priv static SQLException
pack-priv static SQLException
entityNameMissing()

Raised if, the entity (ie table/view) for import/export is missing in the database.

pack-priv static SQLException
errorWritingData(IOException ioe)

Raised if, got IOException while writing data to the file.

pack-priv static SQLException
fieldAndRecordSeparatorsSubset()

Raised if, field and record separators are substring of each other.

pack-priv static SQLException
invalidColumnName(String
the resultset doesn't have this column name
columnName
)

Raised if, no column by given name is found in the resultset while importing.

pack-priv static SQLException
invalidColumnNumber(int
the resultset doesn't have this column number
numberOfColumns
)

Raised if, no column by given number is found in the resultset while importing.

pack-priv static SQLException
lobsFileExists(String fileName)

Raised if, lob file exists.

pack-priv static SQLException
nonSupportedTypeColumn(String columnName, String typeName)

Raised if, trying to export/import from an entity which has non supported type columns in it.

pack-priv static SQLException
pack-priv static SQLException
recordSeparatorMissing(int
the line number with the missing record separator in the data file
lineNumber
)

Raised if, in case of fixed format, don't find the record separator for a row in the data file.

pack-priv static SQLException
tableNotFound(String tableName)

pack-priv static SQLException
unexpectedEndOfFile(int lineNumber)

Raised if, in case of fixed format, reach end of file before reading data for all the columns.

pack-priv static SQLException
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LoadErrorback to summary
pack-priv LoadError()

Method Detail

connectionNullback to summary
pack-priv static SQLException connectionNull()

Raised if, the Derby database connection is null.

dataAfterStopDelimiterback to summary
pack-priv static SQLException dataAfterStopDelimiter(int lineNumber, int columnNumber)

Raised if, there is data found between the stop delimiter and field/record spearator.

Parameters
lineNumber:int

Found invalid data on this line number in the data file

columnNumber:int

Found invalid data for this column number in the data file

dataFileExistsback to summary
pack-priv static SQLException dataFileExists(String fileName)

Raised if, data file exists.

dataFileNotFoundback to summary
pack-priv static SQLException dataFileNotFound(String fileName, Exception ex)

Raised if, the passed data file can't be found.

Parameters
fileName:String

the data file name

ex:Exception

the exception that prevented us from opening the file

dataFileNullback to summary
pack-priv static SQLException dataFileNull()

Raised if, null is passed for data file url.

delimitersAreNotMutuallyExclusiveback to summary
pack-priv static SQLException delimitersAreNotMutuallyExclusive()
entityNameMissingback to summary
pack-priv static SQLException entityNameMissing()

Raised if, the entity (ie table/view) for import/export is missing in the database.

errorWritingDataback to summary
pack-priv static SQLException errorWritingData(IOException ioe)

Raised if, got IOException while writing data to the file.

fieldAndRecordSeparatorsSubsetback to summary
pack-priv static SQLException fieldAndRecordSeparatorsSubset()

Raised if, field and record separators are substring of each other.

invalidColumnNameback to summary
pack-priv static SQLException invalidColumnName(String columnName)

Raised if, no column by given name is found in the resultset while importing.

Parameters
columnName:String

the resultset doesn't have this column name

invalidColumnNumberback to summary
pack-priv static SQLException invalidColumnNumber(int numberOfColumns)

Raised if, no column by given number is found in the resultset while importing.

Parameters
numberOfColumns:int

the resultset doesn't have this column number

lobsFileExistsback to summary
pack-priv static SQLException lobsFileExists(String fileName)

Raised if, lob file exists.

nonSupportedTypeColumnback to summary
pack-priv static SQLException nonSupportedTypeColumn(String columnName, String typeName)

Raised if, trying to export/import from an entity which has non supported type columns in it.

periodAsCharDelimiterNotAllowedback to summary
pack-priv static SQLException periodAsCharDelimiterNotAllowed()
recordSeparatorMissingback to summary
pack-priv static SQLException 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:int

the line number with the missing record separator in the data file

tableNotFoundback to summary
pack-priv static SQLException tableNotFound(String tableName)
unexpectedEndOfFileback to summary
pack-priv static SQLException unexpectedEndOfFile(int lineNumber)

Raised if, in case of fixed format, reach end of file before reading data for all the columns.

unexpectedErrorback to summary
pack-priv static SQLException unexpectedError(Throwable t)