Changeset 32 for trunk/fmgVen/src/com/fmguler/ven/Criteria.java
- Timestamp:
- Oct 21, 2011, 3:37:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/fmgVen/src/com/fmguler/ven/Criteria.java
r30 r32 104 104 * Add a criterion where an attribue equals a value (SQL = operator) 105 105 */ 106 public Criteria eq(String attribute, Stringvalue) {106 public Criteria eq(String attribute, Object value) { 107 107 criterionList.add(new Criterion(attribute, Criterion.OP_EQUALS, value)); 108 108 return this; … … 112 112 * Add a criterion where an attribue is like a value (SQL like operator) 113 113 */ 114 public Criteria like(String attribute, Stringvalue) {114 public Criteria like(String attribute, Object value) { 115 115 criterionList.add(new Criterion(attribute, Criterion.OP_LIKE, value)); 116 116 return this; … … 120 120 * Add a criterion where an attribue is similar to a value (SQL similar to operator) 121 121 */ 122 public Criteria similarto(String attribute, Stringvalue) {122 public Criteria similarto(String attribute, Object value) { 123 123 criterionList.add(new Criterion(attribute, Criterion.OP_SIMILAR_TO, value)); 124 124 return this; … … 128 128 * Add a criterion where an attribue is greater than a value (SQL > operator) 129 129 */ 130 public Criteria gt(String attribute, Stringvalue) {130 public Criteria gt(String attribute, Object value) { 131 131 criterionList.add(new Criterion(attribute, Criterion.OP_GREATER_THAN, value)); 132 132 return this; … … 136 136 * Add a criterion where an attribue is less than a value (SQL < operator) 137 137 */ 138 public Criteria lt(String attribute, Stringvalue) {138 public Criteria lt(String attribute, Object value) { 139 139 criterionList.add(new Criterion(attribute, Criterion.OP_LESS_THAN, value)); 140 140 return this;
Note: See TracChangeset
for help on using the changeset viewer.