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

pack-priv abstract Class ExportAbstract

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.derby.impl.load.Export
Imports
java.sql.Connection, .ResultSet, .ResultSetMetaData, .Types, java.util.Date, java.io.InputStream, .ObjectOutputStream, .Reader, org.apache.derby.iapi.services.io.DynamicByteArrayOutputStream, org.apache.derby.iapi.util.StringUtil

Field Summary

Modifier and TypeField and Description
protected Connection
protected ControlInfo
protected String
protected ExportResultSetForObject
protected ExportWriteDataAbstract
protected boolean
protected String
protected String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected void
protected ControlInfo
protected abstract ExportWriteDataAbstract
private String[]

Returns:

A string array of the row data to write to export file.
getOneRowAtATime
(ResultSet
resultset that contains the data to export.
rs
,
boolean[]
boolean array, whose elements will be true, if the column type is blob/or other large binary type, otherwise false.
isLargeBinary
,
boolean[]
boolean array, whose elements will be true, if the column type is clob/ other large char type, otherwise false.
isLargeChar
)

convert resultset data for the current row to string array.

protected ResultSet
public static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

conback to summary
protected Connection con
controlFileReaderback to summary
protected ControlInfo controlFileReader
entityNameback to summary
protected String entityName
exportResultSetForObjectback to summary
protected ExportResultSetForObject exportResultSetForObject
exportWriteDataback to summary
protected ExportWriteDataAbstract exportWriteData
lobsInExtFileback to summary
protected boolean lobsInExtFile
schemaNameback to summary
protected String schemaName
selectStatementback to summary
protected String selectStatement

Constructor Detail

ExportAbstractback to summary
pack-priv ExportAbstract()

Method Detail

doAllTheWorkback to summary
protected void doAllTheWork() throws Exception
getControlFileReaderback to summary
protected ControlInfo getControlFileReader()
getExportWriteDataback to summary
protected abstract ExportWriteDataAbstract getExportWriteData() throws Exception
getOneRowAtATimeback to summary
private String[] getOneRowAtATime(ResultSet rs, boolean[] isLargeBinary, boolean[] isLargeChar) throws Exception

convert resultset data for the current row to string array. If large objects are being exported to an external file, then write the lob data into the external file and store the lob data location in the string array for that column.

Parameters
rs:ResultSet

resultset that contains the data to export.

isLargeBinary:boolean[]

boolean array, whose elements will be true, if the column type is blob/or other large binary type, otherwise false.

isLargeChar:boolean[]

boolean array, whose elements will be true, if the column type is clob/ other large char type, otherwise false.

Returns:String[]

A string array of the row data to write to export file.

Exceptions
Exception:
if any errors during conversion.
resultSetForEntityback to summary
protected ResultSet resultSetForEntity() throws Exception
stringifyObjectback to summary
public static String stringifyObject(Object udt) throws Exception