summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2008-05-07 06:16:04 +0000
committerBrian S. O'Neill <bronee@gmail.com>2008-05-07 06:16:04 +0000
commit57023295c1af81b4e4fd3dfd2d5969263179f54c (patch)
tree1b259213658ee880519df45033e3e1dd93f0e183 /src/main
parente41ab77a6299ae147832f0f22a21a0c2b3665ee3 (diff)
Support H2 sequences.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/H2SupportStrategy.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/H2SupportStrategy.java b/src/main/java/com/amazon/carbonado/repo/jdbc/H2SupportStrategy.java
index 30a8810..f92fc6a 100644
--- a/src/main/java/com/amazon/carbonado/repo/jdbc/H2SupportStrategy.java
+++ b/src/main/java/com/amazon/carbonado/repo/jdbc/H2SupportStrategy.java
@@ -25,11 +25,12 @@ package com.amazon.carbonado.repo.jdbc;
* @since 1.2
*/
class H2SupportStrategy extends JDBCSupportStrategy {
+ private static final String DEFAULT_SEQUENCE_SELECT_STATEMENT = "SELECT NEXT VALUE FOR %s";
private static final String TRUNCATE_STATEMENT = "TRUNCATE TABLE %s";
protected H2SupportStrategy(JDBCRepository repo) {
super(repo);
-
+ setSequenceSelectStatement(DEFAULT_SEQUENCE_SELECT_STATEMENT);
setTruncateTableStatement(TRUNCATE_STATEMENT);
}