public class TempTableSchema
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TempTableSchema.Column
Schema information needed to serialize/deserialize a field/column.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<TempTableSchema.Column> |
attributeColumns
List of column schema objects whose data is to be serialized as XML attributes
|
private boolean |
beforeImage
Flags the serialized
BEFORE-BUFFERS . |
private java.util.LinkedHashMap<java.lang.String,TempTableSchema.Column> |
columns
Schema information needed for serialization of all columns/fields
|
private java.util.List<TempTableSchema.Column> |
elementColumns
List of column schema objects whose data is to be serialized as XML elements
|
private java.util.List<TableMapper.LegacyIndexInfo> |
indexes |
private java.lang.String |
name
Legacy name of the temp-table
|
private boolean |
noUndo
Flags the no-undoable temp-tables
NO-UNDO option. |
private java.lang.String |
xmlName
XML serialization name of the temp-table
|
Constructor and Description |
---|
TempTableSchema(RecordBuffer recBuf,
boolean json)
Constructor which gathers table and field data from a temp-table buffer.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<TempTableSchema.Column> |
attributeColumns()
Get an iterable collection of column schema objects whose data is to be serialized as XML
attributes.
|
java.lang.Iterable<TempTableSchema.Column> |
columns()
Get an object to iterate over column schema information objects.
|
java.lang.Iterable<TempTableSchema.Column> |
elementColumns()
Get an iterable collection of column schema objects whose data is to be serialized as XML
elements.
|
private static java.util.List<TempTableSchema.Column> |
filterColumns(java.util.Collection<TempTableSchema.Column> columns,
SerializeOptions.XmlNodeType nodeType)
Filter the given list of column schema objects by the given XML node type.
|
TempTableSchema.Column |
getColumn(java.lang.String name)
Get the column schema information associated with the given serialization name.
|
java.util.List<TableMapper.LegacyIndexInfo> |
getIndexes() |
java.lang.String |
getName()
Get the legacy name of this temp-table.
|
java.lang.String |
getTableName()
Return the name for this table.
|
java.lang.String |
getXmlName()
Return the XML serialization name for this table.
|
boolean |
isBeforeImage()
Check whether the target is a before-table.
|
boolean |
isNoUndo()
Checks whether the temp-table was defined as NO-UNDO.
|
private final java.lang.String name
private final java.lang.String xmlName
private final java.util.LinkedHashMap<java.lang.String,TempTableSchema.Column> columns
private final java.util.List<TableMapper.LegacyIndexInfo> indexes
private final java.util.List<TempTableSchema.Column> attributeColumns
private final java.util.List<TempTableSchema.Column> elementColumns
private final boolean beforeImage
BEFORE-BUFFERS
.private final boolean noUndo
NO-UNDO
option.public TempTableSchema(RecordBuffer recBuf, boolean json)
recBuf
- RecordBuffer on the temp-table.json
- Flag indicating if this is for JSON (when true
) or XML (when false
).private static java.util.List<TempTableSchema.Column> filterColumns(java.util.Collection<TempTableSchema.Column> columns, SerializeOptions.XmlNodeType nodeType)
columns
- Collection of column schema objects to be filtered.nodeType
- Node type which forms the filter criterion.null
.public java.lang.String getName()
public java.lang.String getTableName()
public java.lang.String getXmlName()
public boolean isNoUndo()
true
if this is a NO-UNDO temp-table.public TempTableSchema.Column getColumn(java.lang.String name)
name
- Name used in serialization output for column data.public java.util.List<TableMapper.LegacyIndexInfo> getIndexes()
public java.lang.Iterable<TempTableSchema.Column> columns()
public java.lang.Iterable<TempTableSchema.Column> attributeColumns()
public java.lang.Iterable<TempTableSchema.Column> elementColumns()
public boolean isBeforeImage()
true
if the target is a before-table.