public class SQLColumnMappingEditor
extends java.beans.PropertyEditorSupport
SQLColumnMapping
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ADD_COLUMN_TAG
tag that indicates sum columns for doing updates.
|
static java.lang.String |
CLASS_VERSION
Class version string
|
static char |
SEPARATOR_CHAR
separates the name from the column name
|
static java.lang.String |
SET_COLUMN_TAG
tag that indicates set columns for doing updates.
|
static char |
VARIABLE_INTRODUCER_CHAR
character that introduces variables
|
Constructor and Description |
---|
SQLColumnMappingEditor()
Construct an empty parser
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAsText()
Get the property value as a human editable String
|
java.lang.Object |
parsePropertyValue(java.lang.String pString)
Parse the supplied string into a SQLColumnMapping
|
void |
setAsText(java.lang.String pValue)
Set the value of the SQLColumnMapping Set the property value by
parsing a given String.
|
public static java.lang.String CLASS_VERSION
public static final char SEPARATOR_CHAR
public static final char VARIABLE_INTRODUCER_CHAR
public static final java.lang.String ADD_COLUMN_TAG
public static final java.lang.String SET_COLUMN_TAG
public java.lang.String getAsText()
getAsText
in interface java.beans.PropertyEditor
getAsText
in class java.beans.PropertyEditorSupport
public void setAsText(java.lang.String pValue) throws java.lang.IllegalArgumentException
setAsText
in interface java.beans.PropertyEditor
setAsText
in class java.beans.PropertyEditorSupport
pValue
- the String value to setjava.lang.IllegalArgumentException
- if the String is badly
formattedpublic java.lang.Object parsePropertyValue(java.lang.String pString) throws atg.nucleus.PropertyValueParseException
A valid string is of the form:
propname:colname[:methodType]
where propname
refers to a named property
of the event or of the summary item, colname
is the
name of the SQL column to hold the property, and the optional
methodType
is either "add" or "set". The method
type only applies to SQLTableSummaryLoggers that are configured
to do UPDATE operations when flushed their data.
pString
- the string to parsepClass
- the desired class (not used)atg.nucleus.PropertyValueParseException
SQLTableSummaryLoggers