1 28 29 package com.caucho.jdbc; 30 31 import com.caucho.util.Log; 32 33 import javax.sql.DataSource ; 34 import java.util.logging.Logger ; 35 36 39 public class ResinMetaData extends JdbcMetaData { 40 private static final Logger log = Log.open(ResinMetaData.class); 41 42 protected ResinMetaData(DataSource ds) 43 { 44 super(ds); 45 } 46 47 50 public String getBlobType() 51 { 52 return "BLOB"; 53 } 54 55 58 public String getLongType() 59 { 60 return "BIGINT"; 61 } 62 63 66 public boolean supportsIdentity() 67 { 68 return true; 69 } 70 71 74 public String createIdentitySQL(String sqlType) 75 { 76 return sqlType + " auto_increment"; 77 } 78 79 82 public String limit(String sql, int limit) 83 { 84 if (limit < 0) 85 return sql; 86 else 87 return sql + " LIMIT " + limit; 88 } 89 } 90 | Popular Tags |