Used to write XML entity data from the database to a writer.
The document will have a root element like <entity-facade-xml>.
| Modifiers | Name | Description |
|---|---|---|
enum |
EntityDataWriter.FileType |
| Modifiers | Name | Description |
|---|---|---|
EntityDataWriter.FileType |
JSON |
|
EntityDataWriter.FileType |
XML |
| Type | Name and description |
|---|---|
EntityDataWriter |
allEntities()Write data from all entities. |
EntityDataWriter |
dependentLevels(int levels)The number of levels of dependents to include for records written. |
EntityDataWriter |
dependentRecords(boolean dependents)Should the dependent records of each record be written? |
int |
directory(java.lang.String path)Write the results to a file for each entity in the specified directory. |
EntityDataWriter |
entityName(java.lang.String entityName)Specify the name of an entity to query and export. |
EntityDataWriter |
entityNames(java.util.List<java.lang.String> entityNames)A List of entity names to query and export. |
int |
file(java.lang.String filename)Write all results to a single file. |
EntityDataWriter |
fileType(EntityDataWriter.FileType ft)Used to write XML entity data from the database to a writer. |
EntityDataWriter |
filterMap(java.util.Map<java.lang.String, java.lang.Object> filterMap)A Map of field name, value pairs to filter the results by. |
EntityDataWriter |
fromDate(java.sql.Timestamp fromDate)From date for lastUpdatedStamp on each entity (lastUpdatedStamp must be greater than or equal (>=) to fromDate). |
EntityDataWriter |
master(java.lang.String masterName)The name of a master definition, applied to all written entities that have a matching master definition otherwise just the single record is written, or dependent records if dependentREcords or dependentLevels options specified. |
EntityDataWriter |
orderBy(java.util.List<java.lang.String> orderByList)Field names to order (sort) the results by. |
EntityDataWriter |
thruDate(java.sql.Timestamp thruDate)Thru date for lastUpdatedStamp on each entity (lastUpdatedStamp must be less than (<) to thruDate). |
int |
writer(java.io.Writer writer)Write the results to a Writer. |
int |
zipDirectory(java.lang.String pathWithinZip, java.lang.String zipFilename) |
int |
zipFile(java.lang.String filenameWithinZip, java.lang.String zipFilename) |
Write data from all entities. When set other entity names are excluded instead of included.
The number of levels of dependents to include for records written. If set dependentRecords will be considered true. If dependentRecords is set but no level limit is specified all levels found will be written (may be large and not what is desired).
Should the dependent records of each record be written? If set will include 2 levels of dependents by default, use dependentLevels() to specify a different number of levels.
dependents - Boolean dependents indicatorWrite the results to a file for each entity in the specified directory.
path - The path of the directory to create files inSpecify the name of an entity to query and export. Data is queried and exporting from entities in the order they are added by calling this or entityNames() multiple times.
entityName - The entity nameA List of entity names to query and export. Data is queried and exporting from entities in the order they are specified in this list and other calls to this or entityName().
entityNames - The list of entity namesWrite all results to a single file.
filename - The path and name of the file to write values to Used to write XML entity data from the database to a writer.
The document will have a root element like <entity-facade-xml>.
A Map of field name, value pairs to filter the results by. Each name/value only used on entities that have a field matching the name.
filterMap - Map with name/value pairs to filter byFrom date for lastUpdatedStamp on each entity (lastUpdatedStamp must be greater than or equal (>=) to fromDate).
fromDate - The from dateThe name of a master definition, applied to all written entities that have a matching master definition otherwise just the single record is written, or dependent records if dependentREcords or dependentLevels options specified.
Field names to order (sort) the results by. Each name only used on entities with a field matching the name. May be called multiple times. Each entry may be a comma-separated list of field names.
orderByList - List with field names to order byThru date for lastUpdatedStamp on each entity (lastUpdatedStamp must be less than (<) to thruDate).
thruDate - The thru dateWrite the results to a Writer.
writer - The Writer to write to