Class ExportAbstract
java.lang.Object
org.apache.derby.impl.load.ExportAbstract
- Direct Known Subclasses:
Export
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Connectionprotected ControlInfoprotected Stringprotected ExportResultSetForObjectprotected ExportWriteDataAbstractprotected booleanprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected ControlInfoprotected abstract ExportWriteDataAbstractprivate String[]getOneRowAtATime(ResultSet rs, boolean[] isLargeBinary, boolean[] isLargeChar) convert resultset data for the current row to string array.protected ResultSetstatic StringstringifyObject(Object udt)
-
Field Details
-
controlFileReader
-
exportResultSetForObject
-
exportWriteData
-
con
-
entityName
-
schemaName
-
selectStatement
-
lobsInExtFile
protected boolean lobsInExtFile
-
-
Constructor Details
-
ExportAbstract
ExportAbstract()
-
-
Method Details
-
resultSetForEntity
-
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
-
getControlFileReader
-
getExportWriteData
- Throws:
Exception
-
doAllTheWork
-