diff --git a/src/main/java/org/springframework/cassandra/core/BoundStatementFactory.java b/src/main/java/org/springframework/cassandra/core/BoundStatementFactory.java new file mode 100644 index 000000000..21c4fd1cd --- /dev/null +++ b/src/main/java/org/springframework/cassandra/core/BoundStatementFactory.java @@ -0,0 +1,31 @@ +/* + * Copyright 2011-2013 the original author or authors. + * + * Licensed 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.springframework.cassandra.core; + +/** + * This is the primary class in core for binding many values to a Cassandra PreparedStatement. + * + *

+ * This factory will hold a cached version of the PreparedStatement, and bind many value sets to that statement + * returning a BoundStatement that can be passed to a Session.execute(Query). + *

+ * + * @author David Webb + * + */ +public class BoundStatementFactory { + +} diff --git a/src/main/java/org/springframework/cassandra/core/PreparedStatementCreatorFactory.java b/src/main/java/org/springframework/cassandra/core/PreparedStatementCreatorFactory.java index 974b0436e..677a20d7e 100644 --- a/src/main/java/org/springframework/cassandra/core/PreparedStatementCreatorFactory.java +++ b/src/main/java/org/springframework/cassandra/core/PreparedStatementCreatorFactory.java @@ -120,6 +120,8 @@ public class PreparedStatementCreatorFactory { private final List parameters; + private PreparedStatement preparedStatement; + public PreparedStatementCreatorImpl(List parameters) { this(cql, parameters); } @@ -147,6 +149,7 @@ public class PreparedStatementCreatorFactory { + " parameters but expected " + declaredParameters.size()); } } + } /* (non-Javadoc)