1 package org.apache.ojb.broker.platforms; 2 3 17 18 import java.sql.PreparedStatement ; 19 import java.sql.SQLException ; 20 import java.sql.Types ; 21 22 25 public class PlatformDerbyImpl extends PlatformDefaultImpl 26 { 27 30 public byte getJoinSyntaxType() 31 { 32 return SQL92_NOPAREN_JOIN_SYNTAX; 33 } 34 35 38 public boolean supportsMultiColumnCountDistinct() 39 { 40 return false; 42 } 43 44 47 public void setObjectForStatement(PreparedStatement ps, int index, Object value, int jdbcType) throws SQLException 48 { 49 if (((jdbcType == Types.CHAR) || (jdbcType == Types.VARCHAR)) && 50 (value instanceof Character )) 51 { 52 super.setObjectForStatement(ps, index, value.toString(), jdbcType); 58 } 59 else 60 { 61 super.setObjectForStatement(ps, index, value, jdbcType); 62 } 63 } 64 65 68 public String getLastInsertIdentityQuery(String tableName) 69 { 70 return "values IDENTITY_VAL_LOCAL()"; 78 } 79 } 80 | Popular Tags |