Changeset 32 for trunk/fmgVen/src/com/fmguler/ven
- Timestamp:
- Oct 21, 2011, 3:37:55 PM (13 years ago)
- Location:
- trunk/fmgVen/src/com/fmguler/ven
- Files:
-
- 4 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; -
trunk/fmgVen/src/com/fmguler/ven/QueryGenerator.java
r28 r32 36 36 private Set domainPackages; 37 37 private Set dbClasses; 38 private boolean debug = true;38 private boolean debug = false; 39 39 40 40 public QueryGenerator() { … … 237 237 domainPackages.add(domainPackage); 238 238 } 239 240 /** 241 * Set debug mode, true will log all debug messages to System.out 242 * <p> 243 * Note: Use debug mode to detect problems only. It is not a general purpose logging mode. 244 * @param debug set true to enable debug mode 245 */ 246 public void setDebug(boolean debug) { 247 this.debug = debug; 248 } 239 249 } -
trunk/fmgVen/src/com/fmguler/ven/QueryMapper.java
r28 r32 45 45 private Set domainPackages; 46 46 private Set dbClasses; 47 private boolean debug = true;47 private boolean debug = false; 48 48 49 49 public QueryMapper() { … … 191 191 domainPackages.add(domainPackage); 192 192 } 193 194 /** 195 * Set debug mode, true will log all debug messages to System.out 196 * <p> 197 * Note: Use debug mode to detect problems only. It is not a general purpose logging mode. 198 * @param debug set true to enable debug mode 199 */ 200 public void setDebug(boolean debug) { 201 this.debug = debug; 202 } 193 203 } -
trunk/fmgVen/src/com/fmguler/ven/Ven.java
r30 r32 38 38 private QueryGenerator generator; 39 39 private QueryMapper mapper; 40 private boolean debug = true;40 private boolean debug = false; 41 41 42 42 public Ven() { … … 196 196 return this; 197 197 } 198 199 /** 200 * Set debug mode, true will log all debug messages to System.out 201 * <p> 202 * Note: Use debug mode to detect problems only. It is not a general purpose logging mode. 203 * @param debug set true to enable debug mode 204 */ 205 public void setDebug(boolean debug) { 206 this.debug = debug; 207 generator.setDebug(debug); 208 mapper.setDebug(debug); 209 } 198 210 }
Note: See TracChangeset
for help on using the changeset viewer.