aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/iciql/SQLDialect.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2012-01-04 20:48:04 -0500
committerJames Moger <james.moger@gmail.com>2012-01-04 20:48:04 -0500
commitcc0c4f0e0b632ebfb1635e5ed2fe9a2119240157 (patch)
tree33d6228dfac831b0baf572d788fb77bcf3370606 /src/com/iciql/SQLDialect.java
parent6830a631590ae63b6f80476c0a86b6050a91f953 (diff)
downloadiciql-cc0c4f0e0b632ebfb1635e5ed2fe9a2119240157.tar.gz
iciql-cc0c4f0e0b632ebfb1635e5ed2fe9a2119240157.zip
Added methods to generate static, reusable, parameterized sql statements
Diffstat (limited to 'src/com/iciql/SQLDialect.java')
-rw-r--r--src/com/iciql/SQLDialect.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/iciql/SQLDialect.java b/src/com/iciql/SQLDialect.java
index 7c29d61..28f5566 100644
--- a/src/com/iciql/SQLDialect.java
+++ b/src/com/iciql/SQLDialect.java
@@ -125,4 +125,13 @@ public interface SQLDialect {
* @return preferred DATETIME class
*/
Class<? extends java.util.Date> getDateTimeClass();
+
+ /**
+ * When building static string statements this method flattens an object to
+ * a string representation suitable for a static string statement.
+ *
+ * @param o
+ * @return the string equivalent of this object
+ */
+ String prepareParameter(Object o);
}