Class ColumnAndValueInfoBean
java.lang.Object
jp.ecuacion.tool.housekeepdb.bean.ColumnInfoBean
jp.ecuacion.tool.housekeepdb.bean.ColumnAndValueInfoBean
- All Implemented Interfaces:
SqlConditionInterface
Stores database column and its value information to create condition clause.
-
Constructor Summary
ConstructorsConstructorDescriptionColumnAndValueInfoBean(String column, boolean needsQuationMark, Object value) Construct a new instance.ColumnAndValueInfoBean(String column, String needsQuationMark, Object value) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionBuilds string and returns a condition part o fcondition statement.getValue()Adds quotation mark at the both side of the string if isNeedsQuotationMark() == true.Methods inherited from class jp.ecuacion.tool.housekeepdb.bean.ColumnInfoBean
getColumn, getColumnAndValueInfo, getTimestampColumnNowInfo, isNeedsQuotationMark, setColumn, setNeedsQuotationMark
-
Constructor Details
-
ColumnAndValueInfoBean
Construct a new instance.- Parameters:
column- columnneedsQuationMark- needsQuationMarkvalue- value
-
ColumnAndValueInfoBean
public ColumnAndValueInfoBean(String column, String needsQuationMark, Object value) throws jp.ecuacion.lib.core.exception.checked.BizLogicAppException Construct a new instance.- Parameters:
column- columnneedsQuationMark- needsQuationMarkvalue- value- Throws:
jp.ecuacion.lib.core.exception.checked.BizLogicAppException
-
-
Method Details
-
getValue
-
surroundWithQuotationMarks
Adds quotation mark at the both side of the string if isNeedsQuotationMark() == true.- Returns:
- String
-
getCondition
Description copied from interface:SqlConditionInterfaceBuilds string and returns a condition part o fcondition statement.- Specified by:
getConditionin interfaceSqlConditionInterface- Returns:
- condition string
-