Package org.apache.derby.impl.load
Class ExportAbstract
java.lang.Object
org.apache.derby.impl.load.ExportAbstract
- Direct Known Subclasses:
Export
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Connection
protected ControlInfo
protected String
protected ExportResultSetForObject
protected ExportWriteDataAbstract
protected boolean
protected String
protected String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected ControlInfo
protected abstract ExportWriteDataAbstract
private String[]
getOneRowAtATime
(ResultSet rs, boolean[] isLargeBinary, boolean[] isLargeChar) convert resultset data for the current row to string array.protected ResultSet
static String
stringifyObject
(Object udt)
-
Field Details
-
controlFileReader
-
exportResultSetForObject
-
exportWriteData
-
con
-
entityName
-
schemaName
-
selectStatement
-
lobsInExtFile
protected boolean lobsInExtFile
-
-
Constructor Details
-
ExportAbstract
ExportAbstract()
-
-
Method Details
-
resultSetForEntity
- Throws:
Exception
-
getOneRowAtATime
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 that contains the data to export.isLargeBinary
- boolean array, whose elements will be true, if the column type is blob/or other large binary type, otherwise false.isLargeChar
- boolean array, whose elements will be true, if the column type is clob/ other large char type, otherwise false.- Returns:
- A string array of the row data to write to export file.
- Throws:
Exception
- if any errors during conversion.
-
stringifyObject
- Throws:
Exception
-
getControlFileReader
-
getExportWriteData
- Throws:
Exception
-
doAllTheWork
- Throws:
Exception
-