atg.service.datacollection
Class SQLColumnMappingPropertyValueParser

java.lang.Object
  extended by atg.service.datacollection.SQLColumnMappingPropertyValueParser
All Implemented Interfaces:
atg.nucleus.PropertyValueParser

public class SQLColumnMappingPropertyValueParser
extends java.lang.Object
implements atg.nucleus.PropertyValueParser

PropertyValueParser for SQLColumnMapping

See Also:
SQLTableSummaryLogger

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
SQLColumnMappingPropertyValueParser()
          Construct an empty parser
 
Method Summary
 java.lang.Object parsePropertyValue(java.lang.String pString, java.lang.Class pClass)
          Parse the supplied string into a SQLColumnMapping
 
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

SQLColumnMappingPropertyValueParser

public SQLColumnMappingPropertyValueParser()
Construct an empty parser

Method Detail

parsePropertyValue

public java.lang.Object parsePropertyValue(java.lang.String pString,
                                           java.lang.Class pClass)
                                    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.

Specified by:
parsePropertyValue in interface atg.nucleus.PropertyValueParser
Parameters:
pString - the string to parse
pClass - the desired class (not used)
Throws:
atg.nucleus.PropertyValueParseException
See Also:
SQLTableSummaryLoggers