@Plugin(name="Column", category="Core", printObject=true) public final class ColumnConfig extends Object
Modifier and Type | Method and Description |
---|---|
static ColumnConfig |
createColumnConfig(Configuration config,
String name,
String pattern,
String literalValue,
String eventTimestamp,
String unicode,
String clob)
Factory method for creating a column config within the plugin manager.
|
String |
getColumnName() |
PatternLayout |
getLayout() |
String |
getLiteralValue() |
boolean |
isClob() |
boolean |
isEventTimestamp() |
boolean |
isUnicode() |
String |
toString() |
public String getColumnName()
public PatternLayout getLayout()
public String getLiteralValue()
public boolean isEventTimestamp()
public boolean isUnicode()
public boolean isClob()
@PluginFactory public static ColumnConfig createColumnConfig(@PluginConfiguration Configuration config, @PluginAttribute(value="name") String name, @PluginAttribute(value="pattern") String pattern, @PluginAttribute(value="literal") String literalValue, @PluginAttribute(value="isEventTimestamp") String eventTimestamp, @PluginAttribute(value="isUnicode") String unicode, @PluginAttribute(value="isClob") String clob)
config
- The configuration objectname
- The name of the database column as it exists within the database table.pattern
- The PatternLayout
pattern to insert in this column. Mutually exclusive with
literalValue!=null
and eventTimestamp=true
literalValue
- The literal value to insert into the column as-is without any quoting or escaping. Mutually
exclusive with pattern!=null
and eventTimestamp=true
.eventTimestamp
- If "true"
, indicates that this column is a date-time column in which the event
timestamp should be inserted. Mutually exclusive with pattern!=null
and
literalValue!=null
.unicode
- If "true"
, indicates that the column is a Unicode String.clob
- If "true"
, indicates that the column is a character LOB (CLOB).Copyright © 1999-2021 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.