|
ThinkUI Data Generator 1.0.2 API | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectthinkui.db.io.AbstractDataObjectWriter
Abstract implementation of the DataObjectWriter interface.
| Constructor Summary | |
AbstractDataObjectWriter()
AbstractDataObjectWriter constructor. |
|
| Method Summary | |
void |
close()
Closes the writer and flush the output stream (if any). |
void |
commit()
Commit the current database transaction (if any). |
FormatFactory |
getFormatFactory(java.lang.String attrName)
|
java.io.OutputStream |
getOutputStream()
Returns the output stream to be used or null if not applicable. |
java.io.Writer |
getWriter()
Returns the writer to be used or null if not applicable. |
void |
init()
Initializes the writer. |
boolean |
isWriteHeader()
Returns whether or not an output header should be written. |
boolean |
isWriteUppercase()
Returns whether or not output should be written in uppercase. |
void |
rollback()
Rollback the current database transaction (if any). |
void |
setFormatFactory(java.lang.String attrName,
FormatFactory formatFactory)
Sets the format factory for the given attribute name. |
void |
setOutputStream(java.io.OutputStream out)
Sets the output stream to be used for writing the output. |
void |
setWriteHeader(boolean writeHeader)
Sets whether or not an output header should be written. |
void |
setWriter(java.io.Writer writer)
Sets the writer to be used for writing the output. |
void |
setWriteUppercase(boolean writeUppercase)
Sets whether or not output should be written in uppercase. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface thinkui.db.io.DataObjectWriter |
getCount, write, write |
| Constructor Detail |
public AbstractDataObjectWriter()
| Method Detail |
public void close()
throws java.lang.Exception
close in interface DataObjectWriterjava.lang.Exception
public void commit()
throws java.lang.Exception
commit in interface DataObjectWriterjava.lang.Exceptionpublic FormatFactory getFormatFactory(java.lang.String attrName)
getFormatFactory in interface DataObjectWriterpublic final java.io.OutputStream getOutputStream()
DataObjectWriter
getOutputStream in interface DataObjectWriterpublic final java.io.Writer getWriter()
DataObjectWriter
getWriter in interface DataObjectWriter
public void init()
throws java.lang.Exception
init in interface DataObjectWriterjava.lang.Exceptionpublic final boolean isWriteHeader()
DataObjectWriter
isWriteHeader in interface DataObjectWriterpublic final boolean isWriteUppercase()
DataObjectWriter
isWriteUppercase in interface DataObjectWriter
public void rollback()
throws java.lang.Exception
rollback in interface DataObjectWriterjava.lang.Exception
public final void setFormatFactory(java.lang.String attrName,
FormatFactory formatFactory)
setFormatFactory in interface DataObjectWriterpublic void setOutputStream(java.io.OutputStream out)
DataObjectWriter
setOutputStream in interface DataObjectWriterpublic final void setWriteHeader(boolean writeHeader)
DataObjectWriter
setWriteHeader in interface DataObjectWriterpublic void setWriter(java.io.Writer writer)
DataObjectWriter
setWriter in interface DataObjectWriterpublic final void setWriteUppercase(boolean writeUppercase)
DataObjectWriter
setWriteUppercase in interface DataObjectWriter
|
ThinkUI Data Generator 1.0.2 API | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
Copyright © 2007-2009. ThinkUI Software Inc. All rights reserved.