atg.service.datacollection
Class SQLColumnMappingEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by atg.service.datacollection.SQLColumnMappingEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class SQLColumnMappingEditor
extends java.beans.PropertyEditorSupport

PropertyEditor for SQLColumnMapping

See Also:
SQLColumnMapping

Field Summary
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 Summary
SQLColumnMappingEditor()
          Construct an empty parser
 
Method Summary
 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.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


SEPARATOR_CHAR

public static final char SEPARATOR_CHAR
separates the name from the column name

See Also:
Constant Field Values

VARIABLE_INTRODUCER_CHAR

public static final char VARIABLE_INTRODUCER_CHAR
character that introduces variables

See Also:
Constant Field Values

ADD_COLUMN_TAG

public static final java.lang.String ADD_COLUMN_TAG
tag that indicates sum columns for doing updates. sum columns are added to the corresponding values in the DB

See Also:
Constant Field Values

SET_COLUMN_TAG

public static final java.lang.String SET_COLUMN_TAG
tag that indicates set columns for doing updates. set columns replace the corresponding values in the DB.

See Also:
Constant Field Values
Constructor Detail

SQLColumnMappingEditor

public SQLColumnMappingEditor()
Construct an empty parser

Method Detail

getAsText

public java.lang.String getAsText()
Get the property value as a human editable String

Specified by:
getAsText in interface java.beans.PropertyEditor
Overrides:
getAsText in class java.beans.PropertyEditorSupport
Returns:
the property value as a human editable String, or null if the

setAsText

public void setAsText(java.lang.String pValue)
               throws java.lang.IllegalArgumentException
Set the value of the SQLColumnMapping Set the property value by parsing a given String.

Specified by:
setAsText in interface java.beans.PropertyEditor
Overrides:
setAsText in class java.beans.PropertyEditorSupport
Parameters:
pValue - the String value to set
Throws:
java.lang.IllegalArgumentException - if the String is badly formatted

parsePropertyValue

public java.lang.Object parsePropertyValue(java.lang.String pString)
                                    throws atg.nucleus.PropertyValueParseException
Parse the supplied string into a SQLColumnMapping

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.

Parameters:
pString - the string to parse
pClass - the desired class (not used)
Throws:
atg.nucleus.PropertyValueParseException
See Also:
SQLTableSummaryLoggers