public class XmlExportMain extends Object
Constructor and Description |
---|
XmlExportMain() |
Modifier and Type | Method and Description |
---|---|
XmlExportMain |
addObjectName(String objectName)
add an object name to export e.g.
|
XmlExportMain |
addStem(String stem)
add a stem pattern e.g.
|
void |
appendHqlStemLikeOrObjectEquals(StringBuilder queryBuilder,
String aliasName,
String fieldName,
boolean forStemsOnly) |
boolean |
filterStemsOrObjects() |
Set<String> |
getAttributeAssignIds() |
Map<String,AttributeAssign> |
getAttributeAssignsForSecondPhase() |
Map<String,AttributeAssignValue> |
getAttributeAssignValuesForSecondPhase() |
Set<String> |
getObjectNames()
get the object names filtering on
|
Set<String> |
getStemNamePatterns()
stem patterns to filter on, e.g.
|
Set<String> |
getStems()
stem patterns to filter on, e.g.
|
void |
incrementRecordCount() |
boolean |
isIncludeAudits()
if audits should be included
|
boolean |
isIncludeComments()
if comments should be included for foreign keys, note, this slows down the export
|
static void |
main(String[] args) |
void |
setIncludeAudits(boolean theIncludeAudits)
include audits, default to true
|
void |
setIncludeComments(boolean includeComments1)
if comments should be included for foreign keys, note, this slows down the export
|
void |
writeAllTables(File file) |
void |
writeAllTables(Writer writer,
String fileName)
write the xml to a writer
|
void |
writeAllTablesGsh(Writer writer,
String fileName)
write the xml to a writer
|
public XmlExportMain addStem(String stem)
stem
- public XmlExportMain addObjectName(String objectName)
objectName
- public Set<String> getObjectNames()
public Set<String> getStems()
public Set<String> getStemNamePatterns()
public void setIncludeAudits(boolean theIncludeAudits)
theIncludeAudits
- public boolean isIncludeAudits()
public boolean isIncludeComments()
public void setIncludeComments(boolean includeComments1)
includeComments1
- the includeComments to setpublic void incrementRecordCount()
public void writeAllTables(File file)
file
- public void writeAllTablesGsh(Writer writer, String fileName)
writer
- fileName
- for loggingpublic void writeAllTables(Writer writer, String fileName)
writer
- fileName
- for loggingpublic Map<String,AttributeAssign> getAttributeAssignsForSecondPhase()
public Map<String,AttributeAssignValue> getAttributeAssignValuesForSecondPhase()
public boolean filterStemsOrObjects()
public void appendHqlStemLikeOrObjectEquals(StringBuilder queryBuilder, String aliasName, String fieldName, boolean forStemsOnly)
queryBuilder
- aliasName
- fieldName
- forStemsOnly
- true to export stems, false to do other objectsCopyright © 2016 Internet2. All rights reserved.