incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [33/51] [partial] Fixed BLUR-126.
Date Thu, 06 Jun 2013 18:58:05 GMT
http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b0e26648/blur-jdbc/src/main/java/org/apache/blur/jdbc/BlurResultSetRows.java
----------------------------------------------------------------------
diff --git a/blur-jdbc/src/main/java/org/apache/blur/jdbc/BlurResultSetRows.java b/blur-jdbc/src/main/java/org/apache/blur/jdbc/BlurResultSetRows.java
new file mode 100644
index 0000000..662864f
--- /dev/null
+++ b/blur-jdbc/src/main/java/org/apache/blur/jdbc/BlurResultSetRows.java
@@ -0,0 +1,234 @@
+package org.apache.blur.jdbc;
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import static org.apache.blur.jdbc.BlurResultSetMetaData.FAMILY;
+import static org.apache.blur.jdbc.BlurResultSetMetaData.LOCATIONID;
+import static org.apache.blur.jdbc.BlurResultSetMetaData.RECORDID;
+import static org.apache.blur.jdbc.BlurResultSetMetaData.ROWID;
+import static org.apache.blur.jdbc.BlurResultSetMetaData.SCORE;
+
+import java.sql.ResultSetMetaData;
+import java.sql.SQLException;
+import java.sql.SQLWarning;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Random;
+
+import org.apache.blur.jdbc.abstractimpl.AbstractBlurResultSet;
+import org.apache.blur.jdbc.parser.Parser;
+import org.apache.blur.thirdparty.thrift_0_9_0.TException;
+import org.apache.blur.thrift.generated.Blur.Iface;
+import org.apache.blur.thrift.generated.BlurException;
+import org.apache.blur.thrift.generated.BlurQuery;
+import org.apache.blur.thrift.generated.BlurResult;
+import org.apache.blur.thrift.generated.BlurResults;
+import org.apache.blur.thrift.generated.Column;
+import org.apache.blur.thrift.generated.FetchResult;
+import org.apache.blur.thrift.generated.Record;
+import org.apache.blur.thrift.generated.Row;
+import org.apache.blur.thrift.generated.Schema;
+import org.apache.blur.thrift.generated.Selector;
+import org.apache.blur.thrift.generated.SimpleQuery;
+
+
+public class BlurResultSetRows extends AbstractBlurResultSet {
+
+  private Selector selector;
+  private BlurResults results;
+  private int resultPosition = -1;
+  private int size;
+  private String tableName;
+  private FetchResult fetchResult;
+  private BlurResultSetMetaData blurResultSetMetaData;
+  private String lastValue;
+  private List<List<String>> displayRows = new ArrayList<List<String>>();
+  private int displayRowsPosition;
+  private Schema schema;
+  private final Iface client;
+  private long totalResults;
+  private int overallRowPosition;
+  private int currentFetch;
+  private int currentStart;
+  private Parser parser;
+  private List<String> columnNames;
+
+  public BlurResultSetRows(Iface client, Parser parser) throws SQLException {
+    this.client = client;
+    this.parser = parser;
+    tableName = parser.getTableName();
+    columnNames = parser.getColumnNames();
+    System.out.println(columnNames);
+    runSearch(0, 100);
+  }
+
+  private void runSearch(int start, int fetch) throws SQLException {
+    currentStart = start;
+    currentFetch = fetch;
+    BlurQuery blurQuery = new BlurQuery();
+    blurQuery.minimumNumberOfResults = Long.MAX_VALUE;
+    blurQuery.maxQueryTime = Long.MAX_VALUE;
+    blurQuery.uuid = new Random().nextLong();
+    blurQuery.fetch = fetch;
+    blurQuery.start = start;
+    blurQuery.simpleQuery = new SimpleQuery();
+    blurQuery.simpleQuery.queryStr = parser.getWhere();
+    blurQuery.simpleQuery.superQueryOn = true;
+
+    try {
+      schema = client.schema(tableName);
+    } catch (BlurException e) {
+      e.printStackTrace();
+      throw new SQLException(e);
+    } catch (TException e) {
+      e.printStackTrace();
+      throw new SQLException(e);
+    }
+
+    selector = new Selector();
+    setupSelector(selector, schema, columnNames);
+    selector.recordOnly = !blurQuery.simpleQuery.superQueryOn;
+    blurResultSetMetaData = new BlurResultSetMetaData(columnNames, schema.columnFamilies);
+    try {
+      results = client.query(tableName, blurQuery);
+    } catch (BlurException e) {
+      e.printStackTrace();
+      throw new SQLException(e);
+    } catch (TException e) {
+      e.printStackTrace();
+      throw new SQLException(e);
+    }
+    if (results.totalResults > 0) {
+      size = results.results.size();
+    }
+    totalResults = results.totalResults;
+  }
+
+  private void setupSelector(Selector selector, Schema schema, List<String> columnNames) {
+
+  }
+
+  @Override
+  public ResultSetMetaData getMetaData() throws SQLException {
+    return blurResultSetMetaData;
+  }
+
+  @Override
+  public boolean next() throws SQLException {
+    if (displayRows != null && displayRowsPosition + 1 < displayRows.size()) {
+      overallRowPosition++;
+      displayRowsPosition++;
+      return true;
+    } else if (resultPosition + 1 < size) {
+      displayRows.clear();
+      resultPosition++;
+      displayRowsPosition = 0;
+      final BlurResult result = results.results.get(resultPosition);
+      try {
+        selector.setLocationId(result.getLocationId());
+        fetchResult = client.fetchRow(tableName, selector);
+        Row row = fetchResult.rowResult.row;
+        String rowId = row.id;
+        List<Record> records = row.records;
+        for (Record record : records) {
+          displayRows.add(addColumns(result.getScore(), result.getLocationId(), rowId, record.family, record));
+        }
+        overallRowPosition++;
+        return true;
+      } catch (Exception e) {
+        e.printStackTrace();
+        throw new SQLException(e);
+      }
+    } else if (overallRowPosition < totalResults) {
+      currentStart += currentFetch;
+      runSearch(currentStart, currentFetch);
+      displayRowsPosition = 0;
+      resultPosition = -1;
+      return next();
+    }
+    return false;
+  }
+
+  private List<String> addColumns(double score, String locationId, String rowId, String family, Record record) throws SQLException {
+    int columnCount = blurResultSetMetaData.getColumnCount();
+    List<String> result = new ArrayList<String>(columnCount + 1);
+    for (int i = 0; i < columnCount + 1; i++) {
+      result.add(null);
+    }
+    for (int i = 1; i <= columnCount; i++) {
+      String columnName = blurResultSetMetaData.getColumnName(i);
+      if (columnName.equals(ROWID)) {
+        result.set(i, rowId);
+      } else if (columnName.equals(SCORE)) {
+        result.set(i, Double.toString(score));
+      } else if (columnName.equals(LOCATIONID)) {
+        result.set(i, locationId);
+      } else if (columnName.equals(FAMILY)) {
+        result.set(i, family);
+      } else if (columnName.equals(RECORDID)) {
+        result.set(i, record.recordId);
+      } else {
+        String value = getValue(record, columnName, family);
+        result.set(i, value);
+      }
+    }
+    return result;
+  }
+
+  private String getValue(Record record, String columnNameWithFamilyName, String family) {
+    int index = columnNameWithFamilyName.indexOf('.');
+    if (family.equals(columnNameWithFamilyName.substring(0, index))) {
+      String columnName = columnNameWithFamilyName.substring(index + 1);
+      List<String> values = new ArrayList<String>();
+      for (Column col : record.columns) {
+        if (columnName.equals(col.getName())) {
+          values.add(col.getValue());
+        }
+      }
+      if (values.size() == 1) {
+        return values.get(0);
+      } else {
+        return values.toString();
+      }
+    } else {
+      return null;
+    }
+  }
+
+  @Override
+  public String getString(int columnIndex) throws SQLException {
+    return lastValue = displayRows.get(displayRowsPosition).get(columnIndex);
+  }
+
+  @Override
+  public boolean wasNull() throws SQLException {
+    if (lastValue == null) {
+      return true;
+    }
+    return false;
+  }
+
+  @Override
+  public void close() throws SQLException {
+
+  }
+
+  @Override
+  public SQLWarning getWarnings() throws SQLException {
+    return new BlurWarnings();
+  }
+}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b0e26648/blur-jdbc/src/main/java/org/apache/blur/jdbc/BlurResultSetTest.java
----------------------------------------------------------------------
diff --git a/blur-jdbc/src/main/java/org/apache/blur/jdbc/BlurResultSetTest.java b/blur-jdbc/src/main/java/org/apache/blur/jdbc/BlurResultSetTest.java
new file mode 100644
index 0000000..705e43f
--- /dev/null
+++ b/blur-jdbc/src/main/java/org/apache/blur/jdbc/BlurResultSetTest.java
@@ -0,0 +1,56 @@
+package org.apache.blur.jdbc;
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.sql.ResultSetMetaData;
+import java.util.List;
+
+import org.apache.blur.jdbc.parser.Parser;
+import org.apache.blur.thrift.BlurClient;
+import org.apache.blur.thrift.BlurClientManager;
+import org.apache.blur.thrift.Connection;
+import org.apache.blur.thrift.generated.Blur.Iface;
+
+
+public class BlurResultSetTest {
+
+  public static void main(String[] args) throws Exception {
+    // String sql = "select * from test-table.fam0 where fam0.col0 = 'abroad'";
+    String sql = "select * from test-table.fam0";
+    List<Connection> connections = BlurClientManager.getConnections("10.192.56.10:40010");
+    // BlurResultSetRows resultSet = new BlurResultSetRows(sql,connections);
+
+    Iface client = BlurClient.getClient(connections);
+    Parser parser = new Parser();
+    parser.parse(sql);
+
+    BlurResultSetRecords resultSet = new BlurResultSetRecords(client, parser);
+    int c = 0;
+    while (resultSet.next()) {
+      System.out.println(c + " ------------------------");
+      ResultSetMetaData metaData = resultSet.getMetaData();
+      int columnCount = metaData.getColumnCount();
+      for (int i = 1; i <= columnCount; i++) {
+        String value = resultSet.getString(i);
+        String name = metaData.getColumnName(i);
+        System.out.println("\t" + name + ":[" + value + "]");
+      }
+      c++;
+    }
+  }
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b0e26648/blur-jdbc/src/main/java/org/apache/blur/jdbc/BlurStatement.java
----------------------------------------------------------------------
diff --git a/blur-jdbc/src/main/java/org/apache/blur/jdbc/BlurStatement.java b/blur-jdbc/src/main/java/org/apache/blur/jdbc/BlurStatement.java
new file mode 100644
index 0000000..274e16d
--- /dev/null
+++ b/blur-jdbc/src/main/java/org/apache/blur/jdbc/BlurStatement.java
@@ -0,0 +1,139 @@
+package org.apache.blur.jdbc;
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.sql.Connection;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.sql.SQLWarning;
+import java.util.List;
+
+import org.apache.blur.jdbc.abstractimpl.AbstractBlurStatement;
+import org.apache.blur.jdbc.parser.Parser;
+import org.apache.blur.thirdparty.thrift_0_9_0.TException;
+import org.apache.blur.thrift.BlurClient;
+import org.apache.blur.thrift.generated.Blur.Iface;
+import org.apache.blur.thrift.generated.BlurException;
+
+
+public class BlurStatement extends AbstractBlurStatement {
+
+  private BlurConnection connection;
+  private int maxRows;
+  private String sql;
+
+  public BlurStatement(BlurConnection connection) {
+    this.connection = connection;
+  }
+
+  public int getMaxRows() throws SQLException {
+    return maxRows;
+  }
+
+  public void setMaxRows(int maxRows) throws SQLException {
+    this.maxRows = maxRows;
+  }
+
+  public int getUpdateCount() throws SQLException {
+    return -1;
+  }
+
+  @Override
+  public ResultSet executeQuery(String sql) throws SQLException {
+    execute(sql);
+    return getResultSet();
+  }
+
+  public boolean execute(String sql) throws SQLException {
+    this.sql = sql;
+    return true;
+  }
+
+  public ResultSet getResultSet() throws SQLException {
+    try {
+      System.out.println(sql);
+      Iface client = BlurClient.getClient(connection.getHost() + ":" + connection.getPort());
+      Parser parser = new Parser();
+      parser.parse(sql);
+      if (isSuperQuery(parser, client)) {
+        return new BlurResultSetRows(client, parser);
+      } else {
+        return new BlurResultSetRecords(client, parser);
+      }
+
+    } catch (Exception e) {
+      e.printStackTrace();
+      throw new SQLException("Unknown Error", e);
+    }
+  }
+
+  private boolean isSuperQuery(Parser parser, Iface client) throws BlurException, TException, SQLException {
+    String tableName = parser.getTableName();
+    List<String> tableList = client.tableList();
+    if (tableList.contains(tableName)) {
+      return true;
+    }
+    int lastIndexOf = tableName.lastIndexOf('.');
+    if (tableList.contains(tableName.substring(0, lastIndexOf))) {
+      return false;
+    }
+    throw new SQLException("Table [" + tableName + "] does not exist.");
+  }
+
+  public void addBatch(String s) throws SQLException {
+
+  }
+
+  public void cancel() throws SQLException {
+
+    // @TODO fix this
+
+    // try {
+    // BlurClientManager.execute(connection.getHost() + ":" +
+    // connection.getPort(), new BlurCommand<Void>() {
+    // @Override
+    // public Void call(Client client) throws Exception {
+    // client.cancelQuery(uuid);
+    // return null;
+    // }
+    // });
+    // } catch (Exception e) {
+    // throw new SQLException(e);
+    // }
+  }
+
+  public void clearBatch() throws SQLException {
+
+  }
+
+  public void clearWarnings() throws SQLException {
+
+  }
+
+  public void close() throws SQLException {
+
+  }
+
+  public Connection getConnection() throws SQLException {
+    return connection;
+  }
+
+  public SQLWarning getWarnings() throws SQLException {
+    return new BlurWarnings();
+  }
+
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b0e26648/blur-jdbc/src/main/java/org/apache/blur/jdbc/BlurWarnings.java
----------------------------------------------------------------------
diff --git a/blur-jdbc/src/main/java/org/apache/blur/jdbc/BlurWarnings.java b/blur-jdbc/src/main/java/org/apache/blur/jdbc/BlurWarnings.java
new file mode 100644
index 0000000..da31cb6
--- /dev/null
+++ b/blur-jdbc/src/main/java/org/apache/blur/jdbc/BlurWarnings.java
@@ -0,0 +1,25 @@
+package org.apache.blur.jdbc;
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.sql.SQLWarning;
+
+public class BlurWarnings extends SQLWarning {
+
+  private static final long serialVersionUID = 9142092749428230656L;
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b0e26648/blur-jdbc/src/main/java/org/apache/blur/jdbc/QueryData.java
----------------------------------------------------------------------
diff --git a/blur-jdbc/src/main/java/org/apache/blur/jdbc/QueryData.java b/blur-jdbc/src/main/java/org/apache/blur/jdbc/QueryData.java
new file mode 100644
index 0000000..d95049e
--- /dev/null
+++ b/blur-jdbc/src/main/java/org/apache/blur/jdbc/QueryData.java
@@ -0,0 +1,72 @@
+package org.apache.blur.jdbc;
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to You under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+public class QueryData {
+
+  protected String name;
+  protected String alias;
+
+  public QueryData(String name, String alias) {
+    this.name = name;
+    this.alias = alias;
+  }
+
+  public String getName() {
+    return name;
+  }
+
+  public String getAlias() {
+    return alias;
+  }
+
+  @Override
+  public String toString() {
+    return "QueryData [name=" + name + ", alias=" + alias + "]";
+  }
+
+  @Override
+  public int hashCode() {
+    final int prime = 31;
+    int result = 1;
+    result = prime * result + ((alias == null) ? 0 : alias.hashCode());
+    result = prime * result + ((name == null) ? 0 : name.hashCode());
+    return result;
+  }
+
+  @Override
+  public boolean equals(Object obj) {
+    if (this == obj)
+      return true;
+    if (obj == null)
+      return false;
+    if (getClass() != obj.getClass())
+      return false;
+    QueryData other = (QueryData) obj;
+    if (alias == null) {
+      if (other.alias != null)
+        return false;
+    } else if (!alias.equals(other.alias))
+      return false;
+    if (name == null) {
+      if (other.name != null)
+        return false;
+    } else if (!name.equals(other.name))
+      return false;
+    return true;
+  }
+}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b0e26648/blur-jdbc/src/main/java/org/apache/blur/jdbc/abstractimpl/AbstractBlurConnection.java
----------------------------------------------------------------------
diff --git a/blur-jdbc/src/main/java/org/apache/blur/jdbc/abstractimpl/AbstractBlurConnection.java b/blur-jdbc/src/main/java/org/apache/blur/jdbc/abstractimpl/AbstractBlurConnection.java
new file mode 100644
index 0000000..d6bf95d
--- /dev/null
+++ b/blur-jdbc/src/main/java/org/apache/blur/jdbc/abstractimpl/AbstractBlurConnection.java
@@ -0,0 +1,280 @@
+package org.apache.blur.jdbc.abstractimpl;
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.lang.reflect.InvocationHandler;
+import java.lang.reflect.Method;
+import java.lang.reflect.Proxy;
+import java.sql.Array;
+import java.sql.Blob;
+import java.sql.CallableStatement;
+import java.sql.Clob;
+import java.sql.Connection;
+import java.sql.DatabaseMetaData;
+import java.sql.NClob;
+import java.sql.PreparedStatement;
+import java.sql.SQLClientInfoException;
+import java.sql.SQLException;
+import java.sql.SQLWarning;
+import java.sql.SQLXML;
+import java.sql.Savepoint;
+import java.sql.Statement;
+import java.sql.Struct;
+import java.util.Map;
+import java.util.Properties;
+
+import org.apache.blur.jdbc.util.NotImplemented;
+
+/**
+ * This Connection implementation is simply to provide the major of the method
+ * implementations that only throw not implemented exceptions. That way it's
+ * easier to see what has been implemented in the real class.
+ */
+public abstract class AbstractBlurConnection implements Connection {
+
+  private Connection throwExceptionDelegate;
+
+  public AbstractBlurConnection() {
+    throwExceptionDelegate = (Connection) Proxy.newProxyInstance(Connection.class.getClassLoader(),
+        new Class[] { Connection.class }, new InvocationHandler() {
+          @Override
+          public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
+            throw new NotImplemented(method.getName());
+          }
+        });
+  }
+
+  public void clearWarnings() throws SQLException {
+    throwExceptionDelegate.clearWarnings();
+  }
+
+  public void close() throws SQLException {
+    throwExceptionDelegate.close();
+  }
+
+  public void commit() throws SQLException {
+    throwExceptionDelegate.commit();
+  }
+
+  public Array createArrayOf(String arg0, Object[] arg1) throws SQLException {
+    return throwExceptionDelegate.createArrayOf(arg0, arg1);
+  }
+
+  public Blob createBlob() throws SQLException {
+    return throwExceptionDelegate.createBlob();
+  }
+
+  public Clob createClob() throws SQLException {
+    return throwExceptionDelegate.createClob();
+  }
+
+  public NClob createNClob() throws SQLException {
+    return throwExceptionDelegate.createNClob();
+  }
+
+  public SQLXML createSQLXML() throws SQLException {
+    return throwExceptionDelegate.createSQLXML();
+  }
+
+  public Statement createStatement() throws SQLException {
+    return throwExceptionDelegate.createStatement();
+  }
+
+  public Statement createStatement(int arg0, int arg1, int arg2) throws SQLException {
+    return throwExceptionDelegate.createStatement(arg0, arg1, arg2);
+  }
+
+  public Statement createStatement(int arg0, int arg1) throws SQLException {
+    return throwExceptionDelegate.createStatement(arg0, arg1);
+  }
+
+  public Struct createStruct(String arg0, Object[] arg1) throws SQLException {
+    return throwExceptionDelegate.createStruct(arg0, arg1);
+  }
+
+  public boolean getAutoCommit() throws SQLException {
+    return throwExceptionDelegate.getAutoCommit();
+  }
+
+  public String getCatalog() throws SQLException {
+    return throwExceptionDelegate.getCatalog();
+  }
+
+  public Properties getClientInfo() throws SQLException {
+    return throwExceptionDelegate.getClientInfo();
+  }
+
+  public String getClientInfo(String arg0) throws SQLException {
+    return throwExceptionDelegate.getClientInfo(arg0);
+  }
+
+  public int getHoldability() throws SQLException {
+    return throwExceptionDelegate.getHoldability();
+  }
+
+  public DatabaseMetaData getMetaData() throws SQLException {
+    return throwExceptionDelegate.getMetaData();
+  }
+
+  public int getTransactionIsolation() throws SQLException {
+    return throwExceptionDelegate.getTransactionIsolation();
+  }
+
+  public Map<String, Class<?>> getTypeMap() throws SQLException {
+    return throwExceptionDelegate.getTypeMap();
+  }
+
+  public SQLWarning getWarnings() throws SQLException {
+    return throwExceptionDelegate.getWarnings();
+  }
+
+  public boolean isClosed() throws SQLException {
+    return throwExceptionDelegate.isClosed();
+  }
+
+  public boolean isReadOnly() throws SQLException {
+    return throwExceptionDelegate.isReadOnly();
+  }
+
+  public boolean isValid(int arg0) throws SQLException {
+    return throwExceptionDelegate.isValid(arg0);
+  }
+
+  public boolean isWrapperFor(Class<?> iface) throws SQLException {
+    return throwExceptionDelegate.isWrapperFor(iface);
+  }
+
+  public String nativeSQL(String arg0) throws SQLException {
+    return throwExceptionDelegate.nativeSQL(arg0);
+  }
+
+  public CallableStatement prepareCall(String arg0, int arg1, int arg2, int arg3) throws SQLException {
+    return throwExceptionDelegate.prepareCall(arg0, arg1, arg2, arg3);
+  }
+
+  public CallableStatement prepareCall(String arg0, int arg1, int arg2) throws SQLException {
+    return throwExceptionDelegate.prepareCall(arg0, arg1, arg2);
+  }
+
+  public CallableStatement prepareCall(String arg0) throws SQLException {
+    return throwExceptionDelegate.prepareCall(arg0);
+  }
+
+  public PreparedStatement prepareStatement(String arg0, int arg1, int arg2, int arg3) throws SQLException {
+    return throwExceptionDelegate.prepareStatement(arg0, arg1, arg2, arg3);
+  }
+
+  public PreparedStatement prepareStatement(String arg0, int arg1, int arg2) throws SQLException {
+    return throwExceptionDelegate.prepareStatement(arg0, arg1, arg2);
+  }
+
+  public PreparedStatement prepareStatement(String arg0, int arg1) throws SQLException {
+    return throwExceptionDelegate.prepareStatement(arg0, arg1);
+  }
+
+  public PreparedStatement prepareStatement(String arg0, int[] arg1) throws SQLException {
+    return throwExceptionDelegate.prepareStatement(arg0, arg1);
+  }
+
+  public PreparedStatement prepareStatement(String arg0, String[] arg1) throws SQLException {
+    return throwExceptionDelegate.prepareStatement(arg0, arg1);
+  }
+
+  public PreparedStatement prepareStatement(String arg0) throws SQLException {
+    return throwExceptionDelegate.prepareStatement(arg0);
+  }
+
+  public void releaseSavepoint(Savepoint arg0) throws SQLException {
+    throwExceptionDelegate.releaseSavepoint(arg0);
+  }
+
+  public void rollback() throws SQLException {
+    throwExceptionDelegate.rollback();
+  }
+
+  public void rollback(Savepoint arg0) throws SQLException {
+    throwExceptionDelegate.rollback(arg0);
+  }
+
+  public void setAutoCommit(boolean arg0) throws SQLException {
+    throwExceptionDelegate.setAutoCommit(arg0);
+  }
+
+  public void setCatalog(String arg0) throws SQLException {
+    throwExceptionDelegate.setCatalog(arg0);
+  }
+
+  public void setClientInfo(Properties arg0) throws SQLClientInfoException {
+    throwExceptionDelegate.setClientInfo(arg0);
+  }
+
+  public void setClientInfo(String arg0, String arg1) throws SQLClientInfoException {
+    throwExceptionDelegate.setClientInfo(arg0, arg1);
+  }
+
+  public void setHoldability(int arg0) throws SQLException {
+    throwExceptionDelegate.setHoldability(arg0);
+  }
+
+  public void setReadOnly(boolean arg0) throws SQLException {
+    throwExceptionDelegate.setReadOnly(arg0);
+  }
+
+  public Savepoint setSavepoint() throws SQLException {
+    return throwExceptionDelegate.setSavepoint();
+  }
+
+  public Savepoint setSavepoint(String arg0) throws SQLException {
+    return throwExceptionDelegate.setSavepoint(arg0);
+  }
+
+  public void setTransactionIsolation(int arg0) throws SQLException {
+    throwExceptionDelegate.setTransactionIsolation(arg0);
+  }
+
+  public void setTypeMap(Map<String, Class<?>> arg0) throws SQLException {
+    throwExceptionDelegate.setTypeMap(arg0);
+  }
+
+  public <T> T unwrap(Class<T> iface) throws SQLException {
+    return throwExceptionDelegate.unwrap(iface);
+  }
+
+  // java 7
+
+  // public void setSchema(String schema) throws SQLException {
+  // throwExceptionDelegate.setSchema(schema);
+  // }
+  //
+  // public String getSchema() throws SQLException {
+  // return throwExceptionDelegate.getSchema();
+  // }
+  //
+  // public void abort(Executor executor) throws SQLException {
+  // throwExceptionDelegate.abort(executor);
+  // }
+  //
+  // public void setNetworkTimeout(Executor executor, int milliseconds) throws
+  // SQLException {
+  // throwExceptionDelegate.setNetworkTimeout(executor, milliseconds);
+  // }
+  //
+  // public int getNetworkTimeout() throws SQLException {
+  // return throwExceptionDelegate.getNetworkTimeout();
+  // }
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b0e26648/blur-jdbc/src/main/java/org/apache/blur/jdbc/abstractimpl/AbstractBlurDatabaseMetaData.java
----------------------------------------------------------------------
diff --git a/blur-jdbc/src/main/java/org/apache/blur/jdbc/abstractimpl/AbstractBlurDatabaseMetaData.java b/blur-jdbc/src/main/java/org/apache/blur/jdbc/abstractimpl/AbstractBlurDatabaseMetaData.java
new file mode 100644
index 0000000..a4354b2
--- /dev/null
+++ b/blur-jdbc/src/main/java/org/apache/blur/jdbc/abstractimpl/AbstractBlurDatabaseMetaData.java
@@ -0,0 +1,771 @@
+package org.apache.blur.jdbc.abstractimpl;
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.lang.reflect.InvocationHandler;
+import java.lang.reflect.Method;
+import java.lang.reflect.Proxy;
+import java.sql.Connection;
+import java.sql.DatabaseMetaData;
+import java.sql.ResultSet;
+import java.sql.RowIdLifetime;
+import java.sql.SQLException;
+
+import org.apache.blur.jdbc.util.NotImplemented;
+
+/**
+ * This DatabaseMetaData implementation is simply to provide the major of the method
+ * implementations that only throw not implemented exceptions. That way it's
+ * easier to see what has been implemented in the real class.
+ */
+public abstract class AbstractBlurDatabaseMetaData implements DatabaseMetaData {
+
+  private DatabaseMetaData throwExceptionDelegate;
+
+  public AbstractBlurDatabaseMetaData() {
+    throwExceptionDelegate = (DatabaseMetaData) Proxy.newProxyInstance(DatabaseMetaData.class.getClassLoader(),
+        new Class[] { DatabaseMetaData.class }, new InvocationHandler() {
+          @Override
+          public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
+            Class<?> clazz = method.getReturnType();
+            if (clazz.equals(Boolean.class) || clazz.equals(Boolean.TYPE)) {
+              return false;
+            }
+            throw new NotImplemented(method.getName());
+          }
+        });
+  }
+
+  public boolean allProceduresAreCallable() throws SQLException {
+    return throwExceptionDelegate.allProceduresAreCallable();
+  }
+
+  public boolean allTablesAreSelectable() throws SQLException {
+    return throwExceptionDelegate.allTablesAreSelectable();
+  }
+
+  public boolean autoCommitFailureClosesAllResultSets() throws SQLException {
+    return throwExceptionDelegate.autoCommitFailureClosesAllResultSets();
+  }
+
+  public boolean dataDefinitionCausesTransactionCommit() throws SQLException {
+    return throwExceptionDelegate.dataDefinitionCausesTransactionCommit();
+  }
+
+  public boolean dataDefinitionIgnoredInTransactions() throws SQLException {
+    return throwExceptionDelegate.dataDefinitionIgnoredInTransactions();
+  }
+
+  public boolean deletesAreDetected(int type) throws SQLException {
+    return throwExceptionDelegate.deletesAreDetected(type);
+  }
+
+  public boolean doesMaxRowSizeIncludeBlobs() throws SQLException {
+    return throwExceptionDelegate.doesMaxRowSizeIncludeBlobs();
+  }
+
+  public ResultSet getAttributes(String catalog, String schemaPattern, String typeNamePattern,
+      String attributeNamePattern) throws SQLException {
+    return throwExceptionDelegate.getAttributes(catalog, schemaPattern, typeNamePattern, attributeNamePattern);
+  }
+
+  public ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable)
+      throws SQLException {
+    return throwExceptionDelegate.getBestRowIdentifier(catalog, schema, table, scope, nullable);
+  }
+
+  public ResultSet getCatalogs() throws SQLException {
+    return throwExceptionDelegate.getCatalogs();
+  }
+
+  public String getCatalogSeparator() throws SQLException {
+    return throwExceptionDelegate.getCatalogSeparator();
+  }
+
+  public String getCatalogTerm() throws SQLException {
+    return throwExceptionDelegate.getCatalogTerm();
+  }
+
+  public ResultSet getClientInfoProperties() throws SQLException {
+    return throwExceptionDelegate.getClientInfoProperties();
+  }
+
+  public ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern)
+      throws SQLException {
+    return throwExceptionDelegate.getColumnPrivileges(catalog, schema, table, columnNamePattern);
+  }
+
+  public ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern)
+      throws SQLException {
+    return throwExceptionDelegate.getColumns(catalog, schemaPattern, tableNamePattern, columnNamePattern);
+  }
+
+  public Connection getConnection() throws SQLException {
+    return throwExceptionDelegate.getConnection();
+  }
+
+  public ResultSet getCrossReference(String parentCatalog, String parentSchema, String parentTable,
+      String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException {
+    return throwExceptionDelegate.getCrossReference(parentCatalog, parentSchema, parentTable, foreignCatalog,
+        foreignSchema, foreignTable);
+  }
+
+  public int getDatabaseMajorVersion() throws SQLException {
+    return throwExceptionDelegate.getDatabaseMajorVersion();
+  }
+
+  public int getDatabaseMinorVersion() throws SQLException {
+    return throwExceptionDelegate.getDatabaseMinorVersion();
+  }
+
+  public String getDatabaseProductName() throws SQLException {
+    return throwExceptionDelegate.getDatabaseProductName();
+  }
+
+  public String getDatabaseProductVersion() throws SQLException {
+    return throwExceptionDelegate.getDatabaseProductVersion();
+  }
+
+  public int getDefaultTransactionIsolation() throws SQLException {
+    return throwExceptionDelegate.getDefaultTransactionIsolation();
+  }
+
+  public int getDriverMajorVersion() {
+    return throwExceptionDelegate.getDriverMajorVersion();
+  }
+
+  public int getDriverMinorVersion() {
+    return throwExceptionDelegate.getDriverMinorVersion();
+  }
+
+  public String getDriverName() throws SQLException {
+    return throwExceptionDelegate.getDriverName();
+  }
+
+  public String getDriverVersion() throws SQLException {
+    return throwExceptionDelegate.getDriverVersion();
+  }
+
+  public ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException {
+    return throwExceptionDelegate.getExportedKeys(catalog, schema, table);
+  }
+
+  public String getExtraNameCharacters() throws SQLException {
+    return throwExceptionDelegate.getExtraNameCharacters();
+  }
+
+  public ResultSet getFunctionColumns(String catalog, String schemaPattern, String functionNamePattern,
+      String columnNamePattern) throws SQLException {
+    return throwExceptionDelegate.getFunctionColumns(catalog, schemaPattern, functionNamePattern, columnNamePattern);
+  }
+
+  public ResultSet getFunctions(String catalog, String schemaPattern, String functionNamePattern) throws SQLException {
+    return throwExceptionDelegate.getFunctions(catalog, schemaPattern, functionNamePattern);
+  }
+
+  public String getIdentifierQuoteString() throws SQLException {
+    return throwExceptionDelegate.getIdentifierQuoteString();
+  }
+
+  public ResultSet getImportedKeys(String catalog, String schema, String table) throws SQLException {
+    return throwExceptionDelegate.getImportedKeys(catalog, schema, table);
+  }
+
+  public ResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate)
+      throws SQLException {
+    return throwExceptionDelegate.getIndexInfo(catalog, schema, table, unique, approximate);
+  }
+
+  public int getJDBCMajorVersion() throws SQLException {
+    return throwExceptionDelegate.getJDBCMajorVersion();
+  }
+
+  public int getJDBCMinorVersion() throws SQLException {
+    return throwExceptionDelegate.getJDBCMinorVersion();
+  }
+
+  public int getMaxBinaryLiteralLength() throws SQLException {
+    return throwExceptionDelegate.getMaxBinaryLiteralLength();
+  }
+
+  public int getMaxCatalogNameLength() throws SQLException {
+    return throwExceptionDelegate.getMaxCatalogNameLength();
+  }
+
+  public int getMaxCharLiteralLength() throws SQLException {
+    return throwExceptionDelegate.getMaxCharLiteralLength();
+  }
+
+  public int getMaxColumnNameLength() throws SQLException {
+    return throwExceptionDelegate.getMaxColumnNameLength();
+  }
+
+  public int getMaxColumnsInGroupBy() throws SQLException {
+    return throwExceptionDelegate.getMaxColumnsInGroupBy();
+  }
+
+  public int getMaxColumnsInIndex() throws SQLException {
+    return throwExceptionDelegate.getMaxColumnsInIndex();
+  }
+
+  public int getMaxColumnsInOrderBy() throws SQLException {
+    return throwExceptionDelegate.getMaxColumnsInOrderBy();
+  }
+
+  public int getMaxColumnsInSelect() throws SQLException {
+    return throwExceptionDelegate.getMaxColumnsInSelect();
+  }
+
+  public int getMaxColumnsInTable() throws SQLException {
+    return throwExceptionDelegate.getMaxColumnsInTable();
+  }
+
+  public int getMaxConnections() throws SQLException {
+    return throwExceptionDelegate.getMaxConnections();
+  }
+
+  public int getMaxCursorNameLength() throws SQLException {
+    return throwExceptionDelegate.getMaxCursorNameLength();
+  }
+
+  public int getMaxIndexLength() throws SQLException {
+    return throwExceptionDelegate.getMaxIndexLength();
+  }
+
+  public int getMaxProcedureNameLength() throws SQLException {
+    return throwExceptionDelegate.getMaxProcedureNameLength();
+  }
+
+  public int getMaxRowSize() throws SQLException {
+    return throwExceptionDelegate.getMaxRowSize();
+  }
+
+  public int getMaxSchemaNameLength() throws SQLException {
+    return throwExceptionDelegate.getMaxSchemaNameLength();
+  }
+
+  public int getMaxStatementLength() throws SQLException {
+    return throwExceptionDelegate.getMaxStatementLength();
+  }
+
+  public int getMaxStatements() throws SQLException {
+    return throwExceptionDelegate.getMaxStatements();
+  }
+
+  public int getMaxTableNameLength() throws SQLException {
+    return throwExceptionDelegate.getMaxTableNameLength();
+  }
+
+  public int getMaxTablesInSelect() throws SQLException {
+    return throwExceptionDelegate.getMaxTablesInSelect();
+  }
+
+  public int getMaxUserNameLength() throws SQLException {
+    return throwExceptionDelegate.getMaxUserNameLength();
+  }
+
+  public String getNumericFunctions() throws SQLException {
+    return throwExceptionDelegate.getNumericFunctions();
+  }
+
+  public ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException {
+    return throwExceptionDelegate.getPrimaryKeys(catalog, schema, table);
+  }
+
+  public ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern,
+      String columnNamePattern) throws SQLException {
+    return throwExceptionDelegate.getProcedureColumns(catalog, schemaPattern, procedureNamePattern, columnNamePattern);
+  }
+
+  public ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern) throws SQLException {
+    return throwExceptionDelegate.getProcedures(catalog, schemaPattern, procedureNamePattern);
+  }
+
+  public String getProcedureTerm() throws SQLException {
+    return throwExceptionDelegate.getProcedureTerm();
+  }
+
+  public int getResultSetHoldability() throws SQLException {
+    return throwExceptionDelegate.getResultSetHoldability();
+  }
+
+  public RowIdLifetime getRowIdLifetime() throws SQLException {
+    return throwExceptionDelegate.getRowIdLifetime();
+  }
+
+  public ResultSet getSchemas() throws SQLException {
+    return throwExceptionDelegate.getSchemas();
+  }
+
+  public ResultSet getSchemas(String catalog, String schemaPattern) throws SQLException {
+    return throwExceptionDelegate.getSchemas(catalog, schemaPattern);
+  }
+
+  public String getSchemaTerm() throws SQLException {
+    return throwExceptionDelegate.getSchemaTerm();
+  }
+
+  public String getSearchStringEscape() throws SQLException {
+    return throwExceptionDelegate.getSearchStringEscape();
+  }
+
+  public String getSQLKeywords() throws SQLException {
+    return throwExceptionDelegate.getSQLKeywords();
+  }
+
+  public int getSQLStateType() throws SQLException {
+    return throwExceptionDelegate.getSQLStateType();
+  }
+
+  public String getStringFunctions() throws SQLException {
+    return throwExceptionDelegate.getStringFunctions();
+  }
+
+  public ResultSet getSuperTables(String catalog, String schemaPattern, String tableNamePattern) throws SQLException {
+    return throwExceptionDelegate.getSuperTables(catalog, schemaPattern, tableNamePattern);
+  }
+
+  public ResultSet getSuperTypes(String catalog, String schemaPattern, String typeNamePattern) throws SQLException {
+    return throwExceptionDelegate.getSuperTypes(catalog, schemaPattern, typeNamePattern);
+  }
+
+  public String getSystemFunctions() throws SQLException {
+    return throwExceptionDelegate.getSystemFunctions();
+  }
+
+  public ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern)
+      throws SQLException {
+    return throwExceptionDelegate.getTablePrivileges(catalog, schemaPattern, tableNamePattern);
+  }
+
+  public ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String[] types)
+      throws SQLException {
+    return throwExceptionDelegate.getTables(catalog, schemaPattern, tableNamePattern, types);
+  }
+
+  public ResultSet getTableTypes() throws SQLException {
+    return throwExceptionDelegate.getTableTypes();
+  }
+
+  public String getTimeDateFunctions() throws SQLException {
+    return throwExceptionDelegate.getTimeDateFunctions();
+  }
+
+  public ResultSet getTypeInfo() throws SQLException {
+    return throwExceptionDelegate.getTypeInfo();
+  }
+
+  public ResultSet getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types)
+      throws SQLException {
+    return throwExceptionDelegate.getUDTs(catalog, schemaPattern, typeNamePattern, types);
+  }
+
+  public String getURL() throws SQLException {
+    return throwExceptionDelegate.getURL();
+  }
+
+  public String getUserName() throws SQLException {
+    return throwExceptionDelegate.getUserName();
+  }
+
+  public ResultSet getVersionColumns(String catalog, String schema, String table) throws SQLException {
+    return throwExceptionDelegate.getVersionColumns(catalog, schema, table);
+  }
+
+  public boolean insertsAreDetected(int type) throws SQLException {
+    return throwExceptionDelegate.insertsAreDetected(type);
+  }
+
+  public boolean isCatalogAtStart() throws SQLException {
+    return throwExceptionDelegate.isCatalogAtStart();
+  }
+
+  public boolean isReadOnly() throws SQLException {
+    return throwExceptionDelegate.isReadOnly();
+  }
+
+  public boolean isWrapperFor(Class<?> iface) throws SQLException {
+    return throwExceptionDelegate.isWrapperFor(iface);
+  }
+
+  public boolean locatorsUpdateCopy() throws SQLException {
+    return throwExceptionDelegate.locatorsUpdateCopy();
+  }
+
+  public boolean nullPlusNonNullIsNull() throws SQLException {
+    return throwExceptionDelegate.nullPlusNonNullIsNull();
+  }
+
+  public boolean nullsAreSortedAtEnd() throws SQLException {
+    return throwExceptionDelegate.nullsAreSortedAtEnd();
+  }
+
+  public boolean nullsAreSortedAtStart() throws SQLException {
+    return throwExceptionDelegate.nullsAreSortedAtStart();
+  }
+
+  public boolean nullsAreSortedHigh() throws SQLException {
+    return throwExceptionDelegate.nullsAreSortedHigh();
+  }
+
+  public boolean nullsAreSortedLow() throws SQLException {
+    return throwExceptionDelegate.nullsAreSortedLow();
+  }
+
+  public boolean othersDeletesAreVisible(int type) throws SQLException {
+    return throwExceptionDelegate.othersDeletesAreVisible(type);
+  }
+
+  public boolean othersInsertsAreVisible(int type) throws SQLException {
+    return throwExceptionDelegate.othersInsertsAreVisible(type);
+  }
+
+  public boolean othersUpdatesAreVisible(int type) throws SQLException {
+    return throwExceptionDelegate.othersUpdatesAreVisible(type);
+  }
+
+  public boolean ownDeletesAreVisible(int type) throws SQLException {
+    return throwExceptionDelegate.ownDeletesAreVisible(type);
+  }
+
+  public boolean ownInsertsAreVisible(int type) throws SQLException {
+    return throwExceptionDelegate.ownInsertsAreVisible(type);
+  }
+
+  public boolean ownUpdatesAreVisible(int type) throws SQLException {
+    return throwExceptionDelegate.ownUpdatesAreVisible(type);
+  }
+
+  public boolean storesLowerCaseIdentifiers() throws SQLException {
+    return throwExceptionDelegate.storesLowerCaseIdentifiers();
+  }
+
+  public boolean storesLowerCaseQuotedIdentifiers() throws SQLException {
+    return throwExceptionDelegate.storesLowerCaseQuotedIdentifiers();
+  }
+
+  public boolean storesMixedCaseIdentifiers() throws SQLException {
+    return throwExceptionDelegate.storesMixedCaseIdentifiers();
+  }
+
+  public boolean storesMixedCaseQuotedIdentifiers() throws SQLException {
+    return throwExceptionDelegate.storesMixedCaseQuotedIdentifiers();
+  }
+
+  public boolean storesUpperCaseIdentifiers() throws SQLException {
+    return throwExceptionDelegate.storesUpperCaseIdentifiers();
+  }
+
+  public boolean storesUpperCaseQuotedIdentifiers() throws SQLException {
+    return throwExceptionDelegate.storesUpperCaseQuotedIdentifiers();
+  }
+
+  public boolean supportsAlterTableWithAddColumn() throws SQLException {
+    return throwExceptionDelegate.supportsAlterTableWithAddColumn();
+  }
+
+  public boolean supportsAlterTableWithDropColumn() throws SQLException {
+    return throwExceptionDelegate.supportsAlterTableWithDropColumn();
+  }
+
+  public boolean supportsANSI92EntryLevelSQL() throws SQLException {
+    return throwExceptionDelegate.supportsANSI92EntryLevelSQL();
+  }
+
+  public boolean supportsANSI92FullSQL() throws SQLException {
+    return throwExceptionDelegate.supportsANSI92FullSQL();
+  }
+
+  public boolean supportsANSI92IntermediateSQL() throws SQLException {
+    return throwExceptionDelegate.supportsANSI92IntermediateSQL();
+  }
+
+  public boolean supportsBatchUpdates() throws SQLException {
+    return throwExceptionDelegate.supportsBatchUpdates();
+  }
+
+  public boolean supportsCatalogsInDataManipulation() throws SQLException {
+    return throwExceptionDelegate.supportsCatalogsInDataManipulation();
+  }
+
+  public boolean supportsCatalogsInIndexDefinitions() throws SQLException {
+    return throwExceptionDelegate.supportsCatalogsInIndexDefinitions();
+  }
+
+  public boolean supportsCatalogsInPrivilegeDefinitions() throws SQLException {
+    return throwExceptionDelegate.supportsCatalogsInPrivilegeDefinitions();
+  }
+
+  public boolean supportsCatalogsInProcedureCalls() throws SQLException {
+    return throwExceptionDelegate.supportsCatalogsInProcedureCalls();
+  }
+
+  public boolean supportsCatalogsInTableDefinitions() throws SQLException {
+    return throwExceptionDelegate.supportsCatalogsInTableDefinitions();
+  }
+
+  public boolean supportsColumnAliasing() throws SQLException {
+    return throwExceptionDelegate.supportsColumnAliasing();
+  }
+
+  public boolean supportsConvert() throws SQLException {
+    return throwExceptionDelegate.supportsConvert();
+  }
+
+  public boolean supportsConvert(int fromType, int toType) throws SQLException {
+    return throwExceptionDelegate.supportsConvert(fromType, toType);
+  }
+
+  public boolean supportsCoreSQLGrammar() throws SQLException {
+    return throwExceptionDelegate.supportsCoreSQLGrammar();
+  }
+
+  public boolean supportsCorrelatedSubqueries() throws SQLException {
+    return throwExceptionDelegate.supportsCorrelatedSubqueries();
+  }
+
+  public boolean supportsDataDefinitionAndDataManipulationTransactions() throws SQLException {
+    return throwExceptionDelegate.supportsDataDefinitionAndDataManipulationTransactions();
+  }
+
+  public boolean supportsDataManipulationTransactionsOnly() throws SQLException {
+    return throwExceptionDelegate.supportsDataManipulationTransactionsOnly();
+  }
+
+  public boolean supportsDifferentTableCorrelationNames() throws SQLException {
+    return throwExceptionDelegate.supportsDifferentTableCorrelationNames();
+  }
+
+  public boolean supportsExpressionsInOrderBy() throws SQLException {
+    return throwExceptionDelegate.supportsExpressionsInOrderBy();
+  }
+
+  public boolean supportsExtendedSQLGrammar() throws SQLException {
+    return throwExceptionDelegate.supportsExtendedSQLGrammar();
+  }
+
+  public boolean supportsFullOuterJoins() throws SQLException {
+    return throwExceptionDelegate.supportsFullOuterJoins();
+  }
+
+  public boolean supportsGetGeneratedKeys() throws SQLException {
+    return throwExceptionDelegate.supportsGetGeneratedKeys();
+  }
+
+  public boolean supportsGroupBy() throws SQLException {
+    return throwExceptionDelegate.supportsGroupBy();
+  }
+
+  public boolean supportsGroupByBeyondSelect() throws SQLException {
+    return throwExceptionDelegate.supportsGroupByBeyondSelect();
+  }
+
+  public boolean supportsGroupByUnrelated() throws SQLException {
+    return throwExceptionDelegate.supportsGroupByUnrelated();
+  }
+
+  public boolean supportsIntegrityEnhancementFacility() throws SQLException {
+    return throwExceptionDelegate.supportsIntegrityEnhancementFacility();
+  }
+
+  public boolean supportsLikeEscapeClause() throws SQLException {
+    return throwExceptionDelegate.supportsLikeEscapeClause();
+  }
+
+  public boolean supportsLimitedOuterJoins() throws SQLException {
+    return throwExceptionDelegate.supportsLimitedOuterJoins();
+  }
+
+  public boolean supportsMinimumSQLGrammar() throws SQLException {
+    return throwExceptionDelegate.supportsMinimumSQLGrammar();
+  }
+
+  public boolean supportsMixedCaseIdentifiers() throws SQLException {
+    return throwExceptionDelegate.supportsMixedCaseIdentifiers();
+  }
+
+  public boolean supportsMixedCaseQuotedIdentifiers() throws SQLException {
+    return throwExceptionDelegate.supportsMixedCaseQuotedIdentifiers();
+  }
+
+  public boolean supportsMultipleOpenResults() throws SQLException {
+    return throwExceptionDelegate.supportsMultipleOpenResults();
+  }
+
+  public boolean supportsMultipleResultSets() throws SQLException {
+    return throwExceptionDelegate.supportsMultipleResultSets();
+  }
+
+  public boolean supportsMultipleTransactions() throws SQLException {
+    return throwExceptionDelegate.supportsMultipleTransactions();
+  }
+
+  public boolean supportsNamedParameters() throws SQLException {
+    return throwExceptionDelegate.supportsNamedParameters();
+  }
+
+  public boolean supportsNonNullableColumns() throws SQLException {
+    return throwExceptionDelegate.supportsNonNullableColumns();
+  }
+
+  public boolean supportsOpenCursorsAcrossCommit() throws SQLException {
+    return throwExceptionDelegate.supportsOpenCursorsAcrossCommit();
+  }
+
+  public boolean supportsOpenCursorsAcrossRollback() throws SQLException {
+    return throwExceptionDelegate.supportsOpenCursorsAcrossRollback();
+  }
+
+  public boolean supportsOpenStatementsAcrossCommit() throws SQLException {
+    return throwExceptionDelegate.supportsOpenStatementsAcrossCommit();
+  }
+
+  public boolean supportsOpenStatementsAcrossRollback() throws SQLException {
+    return throwExceptionDelegate.supportsOpenStatementsAcrossRollback();
+  }
+
+  public boolean supportsOrderByUnrelated() throws SQLException {
+    return throwExceptionDelegate.supportsOrderByUnrelated();
+  }
+
+  public boolean supportsOuterJoins() throws SQLException {
+    return throwExceptionDelegate.supportsOuterJoins();
+  }
+
+  public boolean supportsPositionedDelete() throws SQLException {
+    return throwExceptionDelegate.supportsPositionedDelete();
+  }
+
+  public boolean supportsPositionedUpdate() throws SQLException {
+    return throwExceptionDelegate.supportsPositionedUpdate();
+  }
+
+  public boolean supportsResultSetConcurrency(int type, int concurrency) throws SQLException {
+    return throwExceptionDelegate.supportsResultSetConcurrency(type, concurrency);
+  }
+
+  public boolean supportsResultSetHoldability(int holdability) throws SQLException {
+    return throwExceptionDelegate.supportsResultSetHoldability(holdability);
+  }
+
+  public boolean supportsResultSetType(int type) throws SQLException {
+    return throwExceptionDelegate.supportsResultSetType(type);
+  }
+
+  public boolean supportsSavepoints() throws SQLException {
+    return throwExceptionDelegate.supportsSavepoints();
+  }
+
+  public boolean supportsSchemasInDataManipulation() throws SQLException {
+    return throwExceptionDelegate.supportsSchemasInDataManipulation();
+  }
+
+  public boolean supportsSchemasInIndexDefinitions() throws SQLException {
+    return throwExceptionDelegate.supportsSchemasInIndexDefinitions();
+  }
+
+  public boolean supportsSchemasInPrivilegeDefinitions() throws SQLException {
+    return throwExceptionDelegate.supportsSchemasInPrivilegeDefinitions();
+  }
+
+  public boolean supportsSchemasInProcedureCalls() throws SQLException {
+    return throwExceptionDelegate.supportsSchemasInProcedureCalls();
+  }
+
+  public boolean supportsSchemasInTableDefinitions() throws SQLException {
+    return throwExceptionDelegate.supportsSchemasInTableDefinitions();
+  }
+
+  public boolean supportsSelectForUpdate() throws SQLException {
+    return throwExceptionDelegate.supportsSelectForUpdate();
+  }
+
+  public boolean supportsStatementPooling() throws SQLException {
+    return throwExceptionDelegate.supportsStatementPooling();
+  }
+
+  public boolean supportsStoredFunctionsUsingCallSyntax() throws SQLException {
+    return throwExceptionDelegate.supportsStoredFunctionsUsingCallSyntax();
+  }
+
+  public boolean supportsStoredProcedures() throws SQLException {
+    return throwExceptionDelegate.supportsStoredProcedures();
+  }
+
+  public boolean supportsSubqueriesInComparisons() throws SQLException {
+    return throwExceptionDelegate.supportsSubqueriesInComparisons();
+  }
+
+  public boolean supportsSubqueriesInExists() throws SQLException {
+    return throwExceptionDelegate.supportsSubqueriesInExists();
+  }
+
+  public boolean supportsSubqueriesInIns() throws SQLException {
+    return throwExceptionDelegate.supportsSubqueriesInIns();
+  }
+
+  public boolean supportsSubqueriesInQuantifieds() throws SQLException {
+    return throwExceptionDelegate.supportsSubqueriesInQuantifieds();
+  }
+
+  public boolean supportsTableCorrelationNames() throws SQLException {
+    return throwExceptionDelegate.supportsTableCorrelationNames();
+  }
+
+  public boolean supportsTransactionIsolationLevel(int level) throws SQLException {
+    return throwExceptionDelegate.supportsTransactionIsolationLevel(level);
+  }
+
+  public boolean supportsTransactions() throws SQLException {
+    return throwExceptionDelegate.supportsTransactions();
+  }
+
+  public boolean supportsUnion() throws SQLException {
+    return throwExceptionDelegate.supportsUnion();
+  }
+
+  public boolean supportsUnionAll() throws SQLException {
+    return throwExceptionDelegate.supportsUnionAll();
+  }
+
+  public <T> T unwrap(Class<T> iface) throws SQLException {
+    return throwExceptionDelegate.unwrap(iface);
+  }
+
+  public boolean updatesAreDetected(int type) throws SQLException {
+    return throwExceptionDelegate.updatesAreDetected(type);
+  }
+
+  public boolean usesLocalFilePerTable() throws SQLException {
+    return throwExceptionDelegate.usesLocalFilePerTable();
+  }
+
+  public boolean usesLocalFiles() throws SQLException {
+    return throwExceptionDelegate.usesLocalFiles();
+  }
+
+  // java 7
+
+//  public ResultSet getPseudoColumns(String catalog, String schemaPattern, String tableNamePattern,
+//      String columnNamePattern) throws SQLException {
+//    return throwExceptionDelegate.getPseudoColumns(catalog, schemaPattern, tableNamePattern, columnNamePattern);
+//  }
+//
+//  public boolean generatedKeyAlwaysReturned() throws SQLException {
+//    return throwExceptionDelegate.generatedKeyAlwaysReturned();
+//  }
+}

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/b0e26648/blur-jdbc/src/main/java/org/apache/blur/jdbc/abstractimpl/AbstractBlurPreparedStatement.java
----------------------------------------------------------------------
diff --git a/blur-jdbc/src/main/java/org/apache/blur/jdbc/abstractimpl/AbstractBlurPreparedStatement.java b/blur-jdbc/src/main/java/org/apache/blur/jdbc/abstractimpl/AbstractBlurPreparedStatement.java
new file mode 100644
index 0000000..1c6c6df
--- /dev/null
+++ b/blur-jdbc/src/main/java/org/apache/blur/jdbc/abstractimpl/AbstractBlurPreparedStatement.java
@@ -0,0 +1,465 @@
+package org.apache.blur.jdbc.abstractimpl;
+
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import java.io.InputStream;
+import java.io.Reader;
+import java.lang.reflect.InvocationHandler;
+import java.lang.reflect.Method;
+import java.lang.reflect.Proxy;
+import java.math.BigDecimal;
+import java.net.URL;
+import java.sql.Array;
+import java.sql.Blob;
+import java.sql.Clob;
+import java.sql.Connection;
+import java.sql.Date;
+import java.sql.NClob;
+import java.sql.ParameterMetaData;
+import java.sql.PreparedStatement;
+import java.sql.Ref;
+import java.sql.ResultSet;
+import java.sql.ResultSetMetaData;
+import java.sql.RowId;
+import java.sql.SQLException;
+import java.sql.SQLWarning;
+import java.sql.SQLXML;
+import java.sql.Time;
+import java.sql.Timestamp;
+import java.util.Calendar;
+
+import org.apache.blur.jdbc.util.NotImplemented;
+
+/**
+ * This PreparedStatement implementation is simply to provide the major of the
+ * method implementations that only throw not implemented exceptions. That way
+ * it's easier to see what has been implemented in the real class.
+ */
+public class AbstractBlurPreparedStatement implements PreparedStatement {
+
+  private PreparedStatement throwExceptionDelegate;
+
+  public void addBatch() throws SQLException {
+    throwExceptionDelegate.addBatch();
+  }
+
+  public void addBatch(String sql) throws SQLException {
+    throwExceptionDelegate.addBatch(sql);
+  }
+
+  public void cancel() throws SQLException {
+    throwExceptionDelegate.cancel();
+  }
+
+  public void clearBatch() throws SQLException {
+    throwExceptionDelegate.clearBatch();
+  }
+
+  public void clearParameters() throws SQLException {
+    throwExceptionDelegate.clearParameters();
+  }
+
+  public void clearWarnings() throws SQLException {
+    throwExceptionDelegate.clearWarnings();
+  }
+
+  public void close() throws SQLException {
+    throwExceptionDelegate.close();
+  }
+
+  public boolean execute() throws SQLException {
+    return throwExceptionDelegate.execute();
+  }
+
+  public boolean execute(String sql, int autoGeneratedKeys) throws SQLException {
+    return throwExceptionDelegate.execute(sql, autoGeneratedKeys);
+  }
+
+  public boolean execute(String sql, int[] columnIndexes) throws SQLException {
+    return throwExceptionDelegate.execute(sql, columnIndexes);
+  }
+
+  public boolean execute(String sql, String[] columnNames) throws SQLException {
+    return throwExceptionDelegate.execute(sql, columnNames);
+  }
+
+  public boolean execute(String sql) throws SQLException {
+    return throwExceptionDelegate.execute(sql);
+  }
+
+  public int[] executeBatch() throws SQLException {
+    return throwExceptionDelegate.executeBatch();
+  }
+
+  public ResultSet executeQuery() throws SQLException {
+    return throwExceptionDelegate.executeQuery();
+  }
+
+  public ResultSet executeQuery(String sql) throws SQLException {
+    return throwExceptionDelegate.executeQuery(sql);
+  }
+
+  public int executeUpdate() throws SQLException {
+    return throwExceptionDelegate.executeUpdate();
+  }
+
+  public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException {
+    return throwExceptionDelegate.executeUpdate(sql, autoGeneratedKeys);
+  }
+
+  public int executeUpdate(String sql, int[] columnIndexes) throws SQLException {
+    return throwExceptionDelegate.executeUpdate(sql, columnIndexes);
+  }
+
+  public int executeUpdate(String sql, String[] columnNames) throws SQLException {
+    return throwExceptionDelegate.executeUpdate(sql, columnNames);
+  }
+
+  public int executeUpdate(String sql) throws SQLException {
+    return throwExceptionDelegate.executeUpdate(sql);
+  }
+
+  public Connection getConnection() throws SQLException {
+    return throwExceptionDelegate.getConnection();
+  }
+
+  public int getFetchDirection() throws SQLException {
+    return throwExceptionDelegate.getFetchDirection();
+  }
+
+  public int getFetchSize() throws SQLException {
+    return throwExceptionDelegate.getFetchSize();
+  }
+
+  public ResultSet getGeneratedKeys() throws SQLException {
+    return throwExceptionDelegate.getGeneratedKeys();
+  }
+
+  public int getMaxFieldSize() throws SQLException {
+    return throwExceptionDelegate.getMaxFieldSize();
+  }
+
+  public int getMaxRows() throws SQLException {
+    return throwExceptionDelegate.getMaxRows();
+  }
+
+  public ResultSetMetaData getMetaData() throws SQLException {
+    return throwExceptionDelegate.getMetaData();
+  }
+
+  public boolean getMoreResults() throws SQLException {
+    return throwExceptionDelegate.getMoreResults();
+  }
+
+  public boolean getMoreResults(int current) throws SQLException {
+    return throwExceptionDelegate.getMoreResults(current);
+  }
+
+  public ParameterMetaData getParameterMetaData() throws SQLException {
+    return throwExceptionDelegate.getParameterMetaData();
+  }
+
+  public int getQueryTimeout() throws SQLException {
+    return throwExceptionDelegate.getQueryTimeout();
+  }
+
+  public ResultSet getResultSet() throws SQLException {
+    return throwExceptionDelegate.getResultSet();
+  }
+
+  public int getResultSetConcurrency() throws SQLException {
+    return throwExceptionDelegate.getResultSetConcurrency();
+  }
+
+  public int getResultSetHoldability() throws SQLException {
+    return throwExceptionDelegate.getResultSetHoldability();
+  }
+
+  public int getResultSetType() throws SQLException {
+    return throwExceptionDelegate.getResultSetType();
+  }
+
+  public int getUpdateCount() throws SQLException {
+    return throwExceptionDelegate.getUpdateCount();
+  }
+
+  public SQLWarning getWarnings() throws SQLException {
+    return throwExceptionDelegate.getWarnings();
+  }
+
+  public boolean isClosed() throws SQLException {
+    return throwExceptionDelegate.isClosed();
+  }
+
+  public boolean isPoolable() throws SQLException {
+    return throwExceptionDelegate.isPoolable();
+  }
+
+  public boolean isWrapperFor(Class<?> iface) throws SQLException {
+    return throwExceptionDelegate.isWrapperFor(iface);
+  }
+
+  public void setArray(int parameterIndex, Array x) throws SQLException {
+    throwExceptionDelegate.setArray(parameterIndex, x);
+  }
+
+  public void setAsciiStream(int parameterIndex, InputStream x, int length) throws SQLException {
+    throwExceptionDelegate.setAsciiStream(parameterIndex, x, length);
+  }
+
+  public void setAsciiStream(int parameterIndex, InputStream x, long length) throws SQLException {
+    throwExceptionDelegate.setAsciiStream(parameterIndex, x, length);
+  }
+
+  public void setAsciiStream(int parameterIndex, InputStream x) throws SQLException {
+    throwExceptionDelegate.setAsciiStream(parameterIndex, x);
+  }
+
+  public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException {
+    throwExceptionDelegate.setBigDecimal(parameterIndex, x);
+  }
+
+  public void setBinaryStream(int parameterIndex, InputStream x, int length) throws SQLException {
+    throwExceptionDelegate.setBinaryStream(parameterIndex, x, length);
+  }
+
+  public void setBinaryStream(int parameterIndex, InputStream x, long length) throws SQLException {
+    throwExceptionDelegate.setBinaryStream(parameterIndex, x, length);
+  }
+
+  public void setBinaryStream(int parameterIndex, InputStream x) throws SQLException {
+    throwExceptionDelegate.setBinaryStream(parameterIndex, x);
+  }
+
+  public void setBlob(int parameterIndex, Blob x) throws SQLException {
+    throwExceptionDelegate.setBlob(parameterIndex, x);
+  }
+
+  public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException {
+    throwExceptionDelegate.setBlob(parameterIndex, inputStream, length);
+  }
+
+  public void setBlob(int parameterIndex, InputStream inputStream) throws SQLException {
+    throwExceptionDelegate.setBlob(parameterIndex, inputStream);
+  }
+
+  public void setBoolean(int parameterIndex, boolean x) throws SQLException {
+    throwExceptionDelegate.setBoolean(parameterIndex, x);
+  }
+
+  public void setByte(int parameterIndex, byte x) throws SQLException {
+    throwExceptionDelegate.setByte(parameterIndex, x);
+  }
+
+  public void setBytes(int parameterIndex, byte[] x) throws SQLException {
+    throwExceptionDelegate.setBytes(parameterIndex, x);
+  }
+
+  public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException {
+    throwExceptionDelegate.setCharacterStream(parameterIndex, reader, length);
+  }
+
+  public void setCharacterStream(int parameterIndex, Reader reader, long length) throws SQLException {
+    throwExceptionDelegate.setCharacterStream(parameterIndex, reader, length);
+  }
+
+  public void setCharacterStream(int parameterIndex, Reader reader) throws SQLException {
+    throwExceptionDelegate.setCharacterStream(parameterIndex, reader);
+  }
+
+  public void setClob(int parameterIndex, Clob x) throws SQLException {
+    throwExceptionDelegate.setClob(parameterIndex, x);
+  }
+
+  public void setClob(int parameterIndex, Reader reader, long length) throws SQLException {
+    throwExceptionDelegate.setClob(parameterIndex, reader, length);
+  }
+
+  public void setClob(int parameterIndex, Reader reader) throws SQLException {
+    throwExceptionDelegate.setClob(parameterIndex, reader);
+  }
+
+  public void setCursorName(String name) throws SQLException {
+    throwExceptionDelegate.setCursorName(name);
+  }
+
+  public void setDate(int parameterIndex, Date x, Calendar cal) throws SQLException {
+    throwExceptionDelegate.setDate(parameterIndex, x, cal);
+  }
+
+  public void setDate(int parameterIndex, Date x) throws SQLException {
+    throwExceptionDelegate.setDate(parameterIndex, x);
+  }
+
+  public void setDouble(int parameterIndex, double x) throws SQLException {
+    throwExceptionDelegate.setDouble(parameterIndex, x);
+  }
+
+  public void setEscapeProcessing(boolean enable) throws SQLException {
+    throwExceptionDelegate.setEscapeProcessing(enable);
+  }
+
+  public void setFetchDirection(int direction) throws SQLException {
+    throwExceptionDelegate.setFetchDirection(direction);
+  }
+
+  public void setFetchSize(int rows) throws SQLException {
+    throwExceptionDelegate.setFetchSize(rows);
+  }
+
+  public void setFloat(int parameterIndex, float x) throws SQLException {
+    throwExceptionDelegate.setFloat(parameterIndex, x);
+  }
+
+  public void setInt(int parameterIndex, int x) throws SQLException {
+    throwExceptionDelegate.setInt(parameterIndex, x);
+  }
+
+  public void setLong(int parameterIndex, long x) throws SQLException {
+    throwExceptionDelegate.setLong(parameterIndex, x);
+  }
+
+  public void setMaxFieldSize(int max) throws SQLException {
+    throwExceptionDelegate.setMaxFieldSize(max);
+  }
+
+  public void setMaxRows(int max) throws SQLException {
+    throwExceptionDelegate.setMaxRows(max);
+  }
+
+  public void setNCharacterStream(int parameterIndex, Reader value, long length) throws SQLException {
+    throwExceptionDelegate.setNCharacterStream(parameterIndex, value, length);
+  }
+
+  public void setNCharacterStream(int parameterIndex, Reader value) throws SQLException {
+    throwExceptionDelegate.setNCharacterStream(parameterIndex, value);
+  }
+
+  public void setNClob(int parameterIndex, NClob value) throws SQLException {
+    throwExceptionDelegate.setNClob(parameterIndex, value);
+  }
+
+  public void setNClob(int parameterIndex, Reader reader, long length) throws SQLException {
+    throwExceptionDelegate.setNClob(parameterIndex, reader, length);
+  }
+
+  public void setNClob(int parameterIndex, Reader reader) throws SQLException {
+    throwExceptionDelegate.setNClob(parameterIndex, reader);
+  }
+
+  public void setNString(int parameterIndex, String value) throws SQLException {
+    throwExceptionDelegate.setNString(parameterIndex, value);
+  }
+
+  public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException {
+    throwExceptionDelegate.setNull(parameterIndex, sqlType, typeName);
+  }
+
+  public void setNull(int parameterIndex, int sqlType) throws SQLException {
+    throwExceptionDelegate.setNull(parameterIndex, sqlType);
+  }
+
+  public void setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength) throws SQLException {
+    throwExceptionDelegate.setObject(parameterIndex, x, targetSqlType, scaleOrLength);
+  }
+
+  public void setObject(int parameterIndex, Object x, int targetSqlType) throws SQLException {
+    throwExceptionDelegate.setObject(parameterIndex, x, targetSqlType);
+  }
+
+  public void setObject(int parameterIndex, Object x) throws SQLException {
+    throwExceptionDelegate.setObject(parameterIndex, x);
+  }
+
+  public void setPoolable(boolean poolable) throws SQLException {
+    throwExceptionDelegate.setPoolable(poolable);
+  }
+
+  public void setQueryTimeout(int seconds) throws SQLException {
+    throwExceptionDelegate.setQueryTimeout(seconds);
+  }
+
+  public void setRef(int parameterIndex, Ref x) throws SQLException {
+    throwExceptionDelegate.setRef(parameterIndex, x);
+  }
+
+  public void setRowId(int parameterIndex, RowId x) throws SQLException {
+    throwExceptionDelegate.setRowId(parameterIndex, x);
+  }
+
+  public void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {
+    throwExceptionDelegate.setSQLXML(parameterIndex, xmlObject);
+  }
+
+  public void setShort(int parameterIndex, short x) throws SQLException {
+    throwExceptionDelegate.setShort(parameterIndex, x);
+  }
+
+  public void setString(int parameterIndex, String x) throws SQLException {
+    throwExceptionDelegate.setString(parameterIndex, x);
+  }
+
+  public void setTime(int parameterIndex, Time x, Calendar cal) throws SQLException {
+    throwExceptionDelegate.setTime(parameterIndex, x, cal);
+  }
+
+  public void setTime(int parameterIndex, Time x) throws SQLException {
+    throwExceptionDelegate.setTime(parameterIndex, x);
+  }
+
+  public void setTimestamp(int parameterIndex, Timestamp x, Calendar cal) throws SQLException {
+    throwExceptionDelegate.setTimestamp(parameterIndex, x, cal);
+  }
+
+  public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException {
+    throwExceptionDelegate.setTimestamp(parameterIndex, x);
+  }
+
+  public void setURL(int parameterIndex, URL x) throws SQLException {
+    throwExceptionDelegate.setURL(parameterIndex, x);
+  }
+
+  @SuppressWarnings("deprecation")
+  public void setUnicodeStream(int parameterIndex, InputStream x, int length) throws SQLException {
+    throwExceptionDelegate.setUnicodeStream(parameterIndex, x, length);
+  }
+
+  public <T> T unwrap(Class<T> iface) throws SQLException {
+    return throwExceptionDelegate.unwrap(iface);
+  }
+
+  public AbstractBlurPreparedStatement() {
+    throwExceptionDelegate = (PreparedStatement) Proxy.newProxyInstance(PreparedStatement.class.getClassLoader(),
+        new Class[] { PreparedStatement.class }, new InvocationHandler() {
+          @Override
+          public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
+            throw new NotImplemented(method.getName());
+          }
+        });
+  }
+
+  // java 7
+
+  public void closeOnCompletion() throws SQLException {
+    throw new SQLException("No supported");
+  }
+
+  public boolean isCloseOnCompletion() throws SQLException {
+    throw new SQLException("No supported");
+  }
+
+}


Mime
View raw message