Class ColumnAndValueInfoBean

java.lang.Object
jp.ecuacion.tool.housekeepdb.bean.ColumnInfoBean
jp.ecuacion.tool.housekeepdb.bean.ColumnAndValueInfoBean
All Implemented Interfaces:
SqlConditionInterface

public class ColumnAndValueInfoBean extends ColumnInfoBean implements SqlConditionInterface
Stores database column and its value information to create condition clause.
  • Constructor Details

    • ColumnAndValueInfoBean

      public ColumnAndValueInfoBean(String column, boolean needsQuationMark, Object value)
      Construct a new instance.
      Parameters:
      column - column
      needsQuationMark - needsQuationMark
      value - value
    • ColumnAndValueInfoBean

      public ColumnAndValueInfoBean(String column, String needsQuationMark, Object value) throws jp.ecuacion.lib.core.exception.checked.BizLogicAppException
      Construct a new instance.
      Parameters:
      column - column
      needsQuationMark - needsQuationMark
      value - value
      Throws:
      jp.ecuacion.lib.core.exception.checked.BizLogicAppException
  • Method Details

    • getValue

      public Object getValue()
    • surroundWithQuotationMarks

      public String surroundWithQuotationMarks()
      Adds quotation mark at the both side of the string if isNeedsQuotationMark() == true.
      Returns:
      String
    • getCondition

      public String getCondition()
      Description copied from interface: SqlConditionInterface
      Builds string and returns a condition part o fcondition statement.
      Specified by:
      getCondition in interface SqlConditionInterface
      Returns:
      condition string