|
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
thinkui.datagen.io.DefaultDataObjectWriter
Extends AbstractDataObjectWriter to implement a DataObjectWriter for writing the generated data to the configured database table.
| Constructor Summary | |
DefaultDataObjectWriter()
DefaultDataObjectWriter constructor. |
|
| Method Summary | |
void |
close()
Closes the database connection (if any) and shutdown any embedded database. |
void |
commit()
Commit the current database transaction (if any). |
int |
getCommitInterval()
|
int |
getCount()
|
thinkui.db.jdbc.JDBCDataObjectManager |
getDataObjectManager()
|
int |
getMaxNumErrors()
|
int |
getNumErrors()
|
java.lang.String |
getOutputMode()
|
java.lang.String |
getTableName()
|
void |
init()
Initializes the writer by processing the "outputMode" setting and resetting the various counters. |
boolean |
isOutputSQL()
|
boolean |
isRequireSyncOnInsert()
|
void |
rollback()
Rollback the current database transaction (if any). |
void |
setCommitInterval(int commitInterval)
Sets the interval between automatically committing the current transaction. |
void |
setDataObjectManager(thinkui.db.jdbc.JDBCDataObjectManager dataObjectManager)
Sets the data object manager to use to write the data objects. |
void |
setMaxNumErrors(int maxNumErrors)
Sets the maximum number of errors that can occur before aborting. |
void |
setOutputMode(java.lang.String outputMode)
Sets the output mode. |
void |
setOutputSQL(boolean outputSQL)
Sets whether or not to output the SQL. |
void |
setRequireSyncOnInsert(boolean requireSyncOnInsert)
Sets whether or not synchronization is required on insert. |
void |
setTableName(java.lang.String tableName)
Sets the table name. |
void |
write(DataClass dataClass)
Write the given data class. |
DataObject |
write(DataObject dataObject)
Write the given data object. |
| Methods inherited from class thinkui.db.io.AbstractDataObjectWriter |
getFormatFactory, getOutputStream, getWriter, isWriteHeader, isWriteUppercase, setFormatFactory, setOutputStream, setWriteHeader, setWriter, setWriteUppercase |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultDataObjectWriter()
| Method Detail |
public void close()
throws java.lang.Exception
close in interface DataObjectWriterclose in class AbstractDataObjectWriterjava.lang.Exception
public void commit()
throws java.lang.Exception
commit in interface DataObjectWritercommit in class AbstractDataObjectWriterjava.lang.Exceptionpublic final int getCommitInterval()
public final int getCount()
public final thinkui.db.jdbc.JDBCDataObjectManager getDataObjectManager()
public final int getMaxNumErrors()
public final int getNumErrors()
public final java.lang.String getOutputMode()
public final java.lang.String getTableName()
public void init()
throws java.lang.Exception
init in interface DataObjectWriterinit in class AbstractDataObjectWriterjava.lang.Exceptionpublic final boolean isOutputSQL()
public final boolean isRequireSyncOnInsert()
public void rollback()
throws java.lang.Exception
rollback in interface DataObjectWriterrollback in class AbstractDataObjectWriterjava.lang.Exceptionpublic final void setCommitInterval(int commitInterval)
public final void setDataObjectManager(thinkui.db.jdbc.JDBCDataObjectManager dataObjectManager)
public final void setMaxNumErrors(int maxNumErrors)
public final void setOutputMode(java.lang.String outputMode)
public final void setOutputSQL(boolean outputSQL)
public final void setRequireSyncOnInsert(boolean requireSyncOnInsert)
public final void setTableName(java.lang.String tableName)
public final void write(DataClass dataClass)
throws java.lang.Exception
java.lang.Exception
public DataObject write(DataObject dataObject)
throws java.lang.Exception
java.lang.Exception
|
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.