Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Boolean Scalar.

  • Loading branch information...
commit e2480f5b1f642ea6045c6af0c1b39d413e48f804 1 parent 5ff6b61
@detinho authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/main/java/br/com/detinho/sqlbuilder/SqlBuilder.java
View
9 src/main/java/br/com/detinho/sqlbuilder/SqlBuilder.java
@@ -8,6 +8,7 @@
import br.com.detinho.sqlbuilder.criteria.Not;
import br.com.detinho.sqlbuilder.criteria.Or;
import br.com.detinho.sqlbuilder.scalar.BigDecimalScalar;
+import br.com.detinho.sqlbuilder.scalar.BooleanScalar;
import br.com.detinho.sqlbuilder.scalar.IntegerScalar;
import br.com.detinho.sqlbuilder.scalar.StringScalar;
@@ -39,6 +40,14 @@ public static Scalar decimal(String value, String alias) {
return new BigDecimalScalar(new BigDecimal(value), alias);
}
+ public static Scalar boll(boolean value) {
+ return new BooleanScalar(value);
+ }
+
+ public static Scalar boll(boolean value, String alias) {
+ return new BooleanScalar(value, alias);
+ }
+
public static Column col(String table, String column) {
return new Column(table, column);
}
Please sign in to comment.
Something went wrong with that request. Please try again.