public class XmlDumpWriter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATT_PATTERN
pattern
|
static java.lang.String |
ATT_TABLE
the table name
|
static java.lang.String |
TAG_EXCLUDE
Exclude a table
|
static java.lang.String |
TAG_INCLUDE
Include the table
|
static java.lang.String |
TAG_TRUNCATE
truncate a table
|
static java.lang.String |
TAG_WHERE
Truncate a table
|
| Constructor and Description |
|---|
XmlDumpWriter(DataBase db) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTag(java.io.Writer w,
java.lang.String tag) |
void |
beginTag(java.io.Writer w,
java.lang.String tag,
boolean wrap) |
void |
configure(java.lang.String fileName) |
void |
createTable(java.sql.Connection connection,
java.io.Writer w,
java.lang.String tableName) |
void |
dump(java.io.Writer w) |
void |
endTag(java.io.Writer w,
java.lang.String tag) |
void |
endTag(java.io.Writer w,
java.lang.String tag,
boolean wrap) |
void |
setExclude(java.lang.String exclude) |
void |
setIgnoreBadData(boolean fg) |
void |
setInclude(java.lang.String include) |
public static final java.lang.String TAG_EXCLUDE
public static final java.lang.String TAG_TRUNCATE
public static final java.lang.String TAG_WHERE
public static final java.lang.String TAG_INCLUDE
public static final java.lang.String ATT_PATTERN
public static final java.lang.String ATT_TABLE
public XmlDumpWriter(@Nonnull
DataBase db)
db - the databasepublic void setExclude(java.lang.String exclude)
exclude - a set of tablespublic void setInclude(java.lang.String include)
include - a set of tables.public void setIgnoreBadData(boolean fg)
fg - flagpublic void configure(java.lang.String fileName)
throws java.lang.Exception
fileName - the file namejava.lang.Exception - a serious problempublic void dump(@Nonnull
java.io.Writer w)
throws java.lang.Exception
w - the writerjava.lang.Exception - a serious problempublic void createTable(@Nonnull
java.sql.Connection connection,
@Nonnull
java.io.Writer w,
@Nonnull
java.lang.String tableName)
throws java.lang.Exception
connection - the connectionw - the writertableName - the tablejava.lang.Exception - a serious problempublic void beginTag(java.io.Writer w,
java.lang.String tag)
throws java.io.IOException
w - the writertag - the tagjava.io.IOException - a problempublic void beginTag(java.io.Writer w,
java.lang.String tag,
boolean wrap)
throws java.io.IOException
w - the writertag - the tagwrap - should we wrapjava.io.IOException - a problempublic void endTag(java.io.Writer w,
java.lang.String tag)
throws java.io.IOException
w - the writertag - the tagjava.io.IOException - a problempublic void endTag(@Nonnull
java.io.Writer w,
java.lang.String tag,
boolean wrap)
throws java.io.IOException
w - the writertag - the tagwrap - the wrapjava.io.IOException - a problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.