1 21 package org.apache.derby.client.net; 22 23 import org.apache.derby.client.am.Configuration; 24 import org.apache.derby.client.am.ProductLevel; 25 import org.apache.derby.client.am.SqlException; 26 import org.apache.derby.shared.common.reference.JDBC30Translation; 27 28 29 public class NetDatabaseMetaData extends org.apache.derby.client.am.DatabaseMetaData { 30 31 private final NetAgent netAgent_; 32 33 34 private boolean supportsQryclsimp_; 35 36 public NetDatabaseMetaData(NetAgent netAgent, NetConnection netConnection) { 37 super(netAgent, netConnection, new ProductLevel(netConnection.productID_, 39 netConnection.targetSrvclsnm_, 40 netConnection.targetSrvrlslv_)); 41 netAgent_ = netAgent; 43 } 44 45 47 public String getURL_() throws SqlException { 48 String urlProtocol; 49 50 urlProtocol = Configuration.jdbcDerbyNETProtocol; 51 52 return 53 urlProtocol + 54 connection_.serverNameIP_ + 55 ":" + 56 connection_.portNumber_ + 57 "/" + 58 connection_.databaseName_; 59 } 60 61 63 protected void computeFeatureSet_() { 83 84 if (productLevel_.greaterThanOrEqualTo(10, 2, 0)) { 86 supportsQryclsimp_ = true; 87 } else { 88 supportsQryclsimp_ = false; 89 } 90 } 91 92 98 final boolean serverSupportsQryclsimp() { 99 return supportsQryclsimp_; 100 } 101 102 } 103 | Popular Tags |