org.apache.derby.impl.load
Class ExportWriteData
java.lang.Object
org.apache.derby.impl.load.ExportWriteDataAbstract
org.apache.derby.impl.load.ExportWriteData
- All Implemented Interfaces:
- java.security.PrivilegedExceptionAction
- final class ExportWriteData
- extends ExportWriteDataAbstract
- implements java.security.PrivilegedExceptionAction
Method Summary |
protected void |
loadPropertiesInfo()
|
private java.lang.String |
makeDoubleDelimiterString(java.lang.String inputString,
java.lang.String charDelimiter)
|
void |
noMoreRows()
if nothing more to write, then close the file and write a message of completion
in message file |
private void |
openFile()
|
java.lang.Object |
run()
|
void |
setColumnLengths(int[] columnLengths)
|
void |
writeColumnDefinitionOptionally(java.lang.String[] columnNames,
java.lang.String[] columnTypes)
if control file says true for column definition, write it as first line of the
data file |
void |
writeData(java.lang.String[] oneRow,
boolean[] isNumeric)
write the passed row into the data file |
private void |
writeNextColumn(java.lang.String oneColumn,
boolean isNumeric)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outputFileName
private java.lang.String outputFileName
aStream
private java.io.OutputStreamWriter aStream
controlFileReader
protected ControlInfo controlFileReader
columnLengths
protected int[] columnLengths
fieldSeparator
protected java.lang.String fieldSeparator
recordSeparator
protected java.lang.String recordSeparator
nullString
protected java.lang.String nullString
columnDefinition
protected java.lang.String columnDefinition
format
protected java.lang.String format
fieldStartDelimiter
protected java.lang.String fieldStartDelimiter
fieldStopDelimiter
protected java.lang.String fieldStopDelimiter
dataCodeset
protected java.lang.String dataCodeset
dataLocale
protected java.lang.String dataLocale
hasDelimiterAtEnd
protected boolean hasDelimiterAtEnd
doubleDelimiter
protected boolean doubleDelimiter
ExportWriteData
public ExportWriteData(java.lang.String outputFileName,
ControlInfo controlFileReader)
throws java.lang.Exception
run
public final java.lang.Object run()
throws java.lang.Exception
- Specified by:
run
in interface java.security.PrivilegedExceptionAction
- Throws:
java.lang.Exception
openFile
private void openFile()
throws java.lang.Exception
- Throws:
java.lang.Exception
writeColumnDefinitionOptionally
public void writeColumnDefinitionOptionally(java.lang.String[] columnNames,
java.lang.String[] columnTypes)
throws java.lang.Exception
- if control file says true for column definition, write it as first line of the
data file
- Specified by:
writeColumnDefinitionOptionally
in class ExportWriteDataAbstract
- Throws:
java.lang.Exception
- if there is an error
writeNextColumn
private void writeNextColumn(java.lang.String oneColumn,
boolean isNumeric)
throws java.lang.Exception
- Throws:
java.lang.Exception
writeData
public void writeData(java.lang.String[] oneRow,
boolean[] isNumeric)
throws java.lang.Exception
- write the passed row into the data file
- Specified by:
writeData
in class ExportWriteDataAbstract
- Throws:
java.lang.Exception
- if there is an error
noMoreRows
public void noMoreRows()
throws java.io.IOException
- if nothing more to write, then close the file and write a message of completion
in message file
- Specified by:
noMoreRows
in class ExportWriteDataAbstract
- Throws:
java.lang.Exception
- if there is an error
java.io.IOException
makeDoubleDelimiterString
private java.lang.String makeDoubleDelimiterString(java.lang.String inputString,
java.lang.String charDelimiter)
loadPropertiesInfo
protected void loadPropertiesInfo()
throws java.lang.Exception
- Throws:
java.lang.Exception
setColumnLengths
public void setColumnLengths(int[] columnLengths)
Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.