public abstract class DBOXmlWriter<C extends ApplicationContext> extends XmlTagWriter<C> implements DBOTags
DEFAULT_XML_ENCODING
attrs, DEFAULT_ENCODING
childTaskRef, isTestMode, monitorController, resultRef, stateFlag
ATTR_DATABASE_NAME, ATTR_DBOBJECT_NAME, ATTR_DBOBJECT_VERSION, ATTR_FIELD_FKREF, ATTR_FIELD_NAME, ATTR_FIELD_PK, ATTR_FIELD_TYPE, ATTR_TABLE_NAME, ATTR_TABLE_PACKAGE, TAG_DATABASE, TAG_DBOBJECT, TAG_FIELD, TAG_TABLE
Constructor and Description |
---|
DBOXmlWriter(C ctx,
java.io.File file) |
DBOXmlWriter(C ctx,
java.io.File file,
java.lang.String encoding) |
DBOXmlWriter(C ctx,
java.io.OutputStream out) |
DBOXmlWriter(C ctx,
java.io.OutputStream out,
java.lang.String encoding) |
DBOXmlWriter(C ctx,
java.lang.String fileName) |
DBOXmlWriter(C ctx,
java.lang.String fileName,
java.lang.String encoding) |
Modifier and Type | Method and Description |
---|---|
void |
closeDatabase() |
void |
closeTable() |
protected void |
doOnRecordsWritten(DBObject master,
int count) |
void |
openDatabase() |
void |
openDatabase(java.lang.String dbName) |
void |
openTable(DBObject master) |
void |
writeDBObject(DBObject dbo)
Prints the given DBObject's data in XML format
|
void |
writeTable(DBObject master)
Writes the content of the table of the given DBObject master
|
void |
writeTable(DBObject master,
SqlCondition cond)
Writes the selected records of the table of the given DBObject master
|
void |
writeTable(DBObject master,
SqlCondition cond,
SqlOrder order)
Writes the selected records of the table of the given DBObject master in the given order
|
closeNameSpace, getSimpleTagCloseBracket, getTag, openNameSpace, performWriteHeader
attr, close, closeTag, isWritingEmptyTags, openTag, openTag, performWrite, performWriteBody, performWriteFooter, printIndent, setIndentString, setWriteEmptyTags, writeComment, writeTag, writeTag, writeTag, writeTag, writeValue, writeXmlHeader
createFileOutputStream, executeAsync, flush, format, format, getEncoding, getOutputFile, getWriteDuration, getWriter, openStream, print, print, print, print, print, print, print, print, print, printf, printf, printLine, println, println, println, println, println, println, println, println, println, println, setCloseStreamWhenFinished, setEncoding, setOutputFile, setOutputStream, write, write, write, write, write
addMonitor, checkCancelled, checkForErrorAndRethrow, clearMonitors, createRunStateFlag, doOnCancel, doOnFailure, execute, executeSubTask, getError, getMaxProgressSteps, getMonitorCount, getMonitors, getName, getProgressStepCount, getResult, getRunStateFlag, getTaskId, getType, handleCancellation, handleFailure, handleFinish, handleStart, handleSuccess, hasError, hasMonitor, isCancellable, notifyProceeded, registerTaskStateChange, removeMonitor, resetProgress, setCancellable, setLogLevel, setMaxProgressSteps, setMonitor, setName, setName, setResult, setRunStateFlag, setTaskId, setType, shouldFireMonitor, sleepChecked, wasCancelled
getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getApplicationContext
getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
public DBOXmlWriter(C ctx, java.lang.String fileName, java.lang.String encoding)
public DBOXmlWriter(C ctx, java.lang.String fileName)
public DBOXmlWriter(C ctx, java.io.File file, java.lang.String encoding)
public DBOXmlWriter(C ctx, java.io.File file)
public DBOXmlWriter(C ctx, java.io.OutputStream out, java.lang.String encoding)
public DBOXmlWriter(C ctx, java.io.OutputStream out)
public void openDatabase()
public void openDatabase(java.lang.String dbName)
public void closeDatabase()
public void openTable(DBObject master)
public void closeTable()
public void writeTable(DBObject master) throws java.sql.SQLException
java.sql.SQLException
public void writeTable(DBObject master, SqlCondition cond) throws java.sql.SQLException
java.sql.SQLException
public void writeTable(DBObject master, SqlCondition cond, SqlOrder order) throws java.sql.SQLException
java.sql.SQLException
protected void doOnRecordsWritten(DBObject master, int count)
public void writeDBObject(DBObject dbo)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.