com.ibm.commerce.context.content.resources.dynacache

Class InvalidationIDSQLComponentImpl

  • java.lang.Object
    • com.ibm.commerce.context.content.resources.dynacache.InvalidationIDSQLComponentImpl
  • All Implemented Interfaces:
    InvalidationIDComponent


    public class InvalidationIDSQLComponentImpl
    extends java.lang.Object
    implements InvalidationIDComponent
    InvalidationIDSQLComponentImpl implements the InvalidationIDComponent interface. It retrieves the value of a component by executing an SQL statement. The statement parameters should be specified with resource keys. The supported parameter data types are java.sql.Types.CHAR, java.sql.Types.VARCHAR, java.sql.Types.SMALLINT, java.sql.Types.INTEGER, java.sql.Types.BIGINT, java.sql.Types.FLOAT, java.sql.Types.DOUBLE, and java.sql.Types.DECIMAL.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      The internal copyright field.
      static java.lang.String DEFAULT_SCHEMA_MARK
      the place holder for the schema name used in SQL statement.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getValue(java.lang.String resource, java.util.HashMap oneRecord, java.lang.String action, java.sql.Connection connection, java.lang.String schema)
      returns the value of the component.
      void initialize(org.w3c.dom.Node component)
      initializes the component.
      java.lang.String toString()
      returns a string representation of the object.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
      • DEFAULT_SCHEMA_MARK

        public static final java.lang.String DEFAULT_SCHEMA_MARK
        the place holder for the schema name used in SQL statement.
        See Also:
        Constant Field Values
    • Constructor Detail

      • InvalidationIDSQLComponentImpl

        public InvalidationIDSQLComponentImpl()
        the resource key used in the component.
    • Method Detail

      • getValue

        public java.lang.String getValue(java.lang.String resource,
                                         java.util.HashMap oneRecord,
                                         java.lang.String action,
                                         java.sql.Connection connection,
                                         java.lang.String schema)
        returns the value of the component.
        Specified by:
        getValue in interface InvalidationIDComponent
        Parameters:
        resource - the resource.
        oneRecord - a HashMap object containing the values in the resource object.
        action - the action performed against the resource object.
        connection - the database connection.
        schema - the database schema name.
        Returns:
        the value of the component.
      • toString

        public java.lang.String toString()
        returns a string representation of the object.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of the object.