1 package org.apache.ojb.broker.platforms; 2 3 17 18 19 26 public class PlatformHsqldbImpl extends PlatformDefaultImpl 27 { 28 private static final String LAST_INSERT = "CALL IDENTITY()"; 29 30 33 public byte getJoinSyntaxType() 34 { 35 return SQL92_NOPAREN_JOIN_SYNTAX; 36 } 37 38 public String getLastInsertIdentityQuery(String tableName) 39 { 40 return LAST_INSERT; 41 } 42 43 46 public void addPagingSql(StringBuffer anSqlString) 47 { 48 anSqlString.insert(6, " LIMIT ? ? "); 49 } 50 51 54 public boolean bindPagingParametersFirst() 55 { 56 return true; 57 } 58 59 62 public boolean supportsPaging() 63 { 64 return true; 65 } 66 67 78 } 79 | Popular Tags |