You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jb...@apache.org on 2011/06/20 06:05:48 UTC
svn commit: r1137493 - in /cassandra/drivers/java: README.txt
src/org/apache/cassandra/cql/jdbc/AbstractCassandraConnection.java
src/org/apache/cassandra/cql/jdbc/AbstractStatement.java
Author: jbellis
Date: Mon Jun 20 04:05:48 2011
New Revision: 1137493
URL: http://svn.apache.org/viewvc?rev=1137493&view=rev
Log:
add build instructions, fix patch application
Added:
cassandra/drivers/java/README.txt
Modified:
cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/AbstractCassandraConnection.java
cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/AbstractStatement.java
Added: cassandra/drivers/java/README.txt
URL: http://svn.apache.org/viewvc/cassandra/drivers/java/README.txt?rev=1137493&view=auto
==============================================================================
--- cassandra/drivers/java/README.txt (added)
+++ cassandra/drivers/java/README.txt Mon Jun 20 04:05:48 2011
@@ -0,0 +1,6 @@
+Building
+========
+Edit build.properties to point cassandra.dir to your main Cassandra tree
+checkout. Currently, jdbc builds against 0.8 and trunk:
+
+$ echo 'cassandra.dir=../../svn-trunk' > build.properties
Modified: cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/AbstractCassandraConnection.java
URL: http://svn.apache.org/viewvc/cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/AbstractCassandraConnection.java?rev=1137493&r1=1137492&r2=1137493&view=diff
==============================================================================
--- cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/AbstractCassandraConnection.java (original)
+++ cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/AbstractCassandraConnection.java Mon Jun 20 04:05:48 2011
@@ -127,132 +127,3 @@ public class AbstractCassandraConnection
}
}
-/*
- *
- * 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.
- *
- */
-package org.apache.cassandra.cql.jdbc;
-
-import java.sql.Array;
-import java.sql.Blob;
-import java.sql.CallableStatement;
-import java.sql.Clob;
-import java.sql.NClob;
-import java.sql.PreparedStatement;
-import java.sql.SQLException;
-import java.sql.SQLFeatureNotSupportedException;
-import java.sql.SQLXML;
-import java.sql.Savepoint;
-import java.sql.Struct;
-import java.util.Map;
-
-public class AbstractCassandraConnection
-{
- protected static final String NOT_SUPPORTED = "the Cassandra implementation does not support this method";
-
- public Array createArrayOf(String arg0, Object[] arg1) throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public Blob createBlob() throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public Clob createClob() throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public NClob createNClob() throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public SQLXML createSQLXML() throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public Struct createStruct(String arg0, Object[] arg1) throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public Map<String, Class<?>> getTypeMap() throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public CallableStatement prepareCall(String arg0) throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public CallableStatement prepareCall(String arg0, int arg1, int arg2) throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public CallableStatement prepareCall(String arg0, int arg1, int arg2, int arg3) throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public PreparedStatement prepareStatement(String arg0, int arg1) throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public PreparedStatement prepareStatement(String arg0, int[] arg1) throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public PreparedStatement prepareStatement(String arg0, String[] arg1) throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public void releaseSavepoint(Savepoint arg0) throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public void rollback(Savepoint arg0) throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public Savepoint setSavepoint() throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
- public Savepoint setSavepoint(String arg0) throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public void setTypeMap(Map<String, Class<?>> arg0) throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
-}
Modified: cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/AbstractStatement.java
URL: http://svn.apache.org/viewvc/cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/AbstractStatement.java?rev=1137493&r1=1137492&r2=1137493&view=diff
==============================================================================
--- cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/AbstractStatement.java (original)
+++ cassandra/drivers/java/src/org/apache/cassandra/cql/jdbc/AbstractStatement.java Mon Jun 20 04:05:48 2011
@@ -1,69 +1,5 @@
/*
- *
- * 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.
- *
- */
-package org.apache.cassandra.cql.jdbc;
-
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.SQLFeatureNotSupportedException;
-
-public class AbstractStatement
-{
- protected static final String NOT_SUPPORTED = "the Cassandra implementation does not support this method";
-
- public void cancel() throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public boolean execute(String arg0, int[] arg1) throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public boolean execute(String arg0, String[] arg1) throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public int executeUpdate(String arg0, int[] arg1) throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public int executeUpdate(String arg0, String[] arg1) throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
- public ResultSet getGeneratedKeys() throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-
- public void setCursorName(String arg0) throws SQLException
- {
- throw new SQLFeatureNotSupportedException(NOT_SUPPORTED);
- }
-}
-/*
- *
+ *
* 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