db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r617095 - in /db/derby/code/trunk/java/client/org/apache/derby/client/am/stmtcache: JDBCStatementCache.java StatementKey.java StatementKeyFactory.java
Date Thu, 31 Jan 2008 10:38:10 GMT
Author: kristwaa
Date: Thu Jan 31 02:38:07 2008
New Revision: 617095

URL: http://svn.apache.org/viewvc?rev=617095&view=rev
Log:
DERBY-3324: JDBC statement cache implementation. Removed trailing whitespace.
Patch file: n/a

Modified:
    db/derby/code/trunk/java/client/org/apache/derby/client/am/stmtcache/JDBCStatementCache.java
    db/derby/code/trunk/java/client/org/apache/derby/client/am/stmtcache/StatementKey.java
    db/derby/code/trunk/java/client/org/apache/derby/client/am/stmtcache/StatementKeyFactory.java

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/am/stmtcache/JDBCStatementCache.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/am/stmtcache/JDBCStatementCache.java?rev=617095&r1=617094&r2=617095&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/am/stmtcache/JDBCStatementCache.java
(original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/am/stmtcache/JDBCStatementCache.java
Thu Jan 31 02:38:07 2008
@@ -1,22 +1,22 @@
 /*
- 
+
    Derby - Class org.apache.derby.client.am.stmtcache.JDBCStatementCache
- 
+
    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.derby.client.am.stmtcache;
@@ -57,9 +57,9 @@
 
     /**
      * Creates a new, empty JDBC statement cache.
-     * 
+     *
      * @param maxSize maximum number of statements in the cache
-     * 
+     *
      * @throws IllegalArgumentException if <code>maxSize</code> is less than
one
      */
     public JDBCStatementCache(int maxSize) {
@@ -72,7 +72,7 @@
 
     /**
      * Retrieves a cached prepared statement if one exists.
-     * 
+     *
      * @param statementKey key for the prepared statement to look up
      * @return A cached statement if one exists, <code>null</code> otherwise.
      */
@@ -88,7 +88,7 @@
 
     /**
      * Cache the prepared statement if it does not already exist.
-     * 
+     *
      * @param statementKey key to insert prepared statement with
      * @param ps prepared statement to cache
      * @return <code>true</code> if added to the cache, <code>false</code>
if
@@ -127,7 +127,7 @@
          * size.
          * <p>
          * Iteration is by insertion-order.
-         * 
+         *
          * @param maxCapacity maximum size of the map
          */
         public BoundedLinkedHashMap(int maxCapacity) {
@@ -141,7 +141,7 @@
          * If the cache has exceeded its maximum size, the oldest element will
          * be marked for removal. The oldest element will be removed after the
          * new element has been inserted.
-         * 
+         *
          * @param eldest the element picked out for removal
          * @return <code>true</code> if the element is to be removed,
          *      <code>false</code> if not.

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/am/stmtcache/StatementKey.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/am/stmtcache/StatementKey.java?rev=617095&r1=617094&r2=617095&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/am/stmtcache/StatementKey.java
(original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/am/stmtcache/StatementKey.java
Thu Jan 31 02:38:07 2008
@@ -1,22 +1,22 @@
 /*
- 
+
    Derby - Class org.apache.derby.client.am.stmtcache.StatementKey
- 
+
    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.derby.client.am.stmtcache;
@@ -30,7 +30,7 @@
  * cache.
  * <p>
  * Key instances are created by a statement key factory.
- * 
+ *
  * @see StatementKeyFactory
  */
 //@Immutable
@@ -53,7 +53,7 @@
 
     /**
      * Creates a statement key with all the common properties.
-     * 
+     *
      * @param isCallableStatement <code>true</code> is this is a key for a
      *      <code>java.sql.CallableStatement</code>
      * @param sql SQL query string
@@ -62,7 +62,7 @@
      * @param rsConcurrency result set concurrency
      * @param rsHoldability result set holdability
      * @param autogeneratedKeys if auto-generated keys are returned
-     * 
+     *
      * @throws IllegalArgumentException if <code>sql</code> and/or
      *      <code>schema</code> is <code>null</code>
      */

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/am/stmtcache/StatementKeyFactory.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/am/stmtcache/StatementKeyFactory.java?rev=617095&r1=617094&r2=617095&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/am/stmtcache/StatementKeyFactory.java
(original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/am/stmtcache/StatementKeyFactory.java
Thu Jan 31 02:38:07 2008
@@ -27,12 +27,12 @@
 /**
  * A factory for creating JDBC statement keys for use with the JDBC statement
  * cache.
- * 
+ *
  * @see JDBCStatementCache
  */
 //@ThreadSafe
 public final class StatementKeyFactory {
-    
+
     private static final boolean CALLABLE = true;
     private static final boolean PREPARED = false;
 
@@ -46,7 +46,7 @@
      * <code>ResultSet.TYPE_FORWARD_ONLY</code>, concurrency will be
      * <code>ResultSet.CONCUR_READ_ONLY</code> and the statement will not
      * return auto-generated keys.
-     * 
+     *
      * @param sql SQL query string
      * @param schema current compilation schema
      * @param holdability result set holdability
@@ -67,7 +67,7 @@
      * Unspecified settings will be according to the JDBC standard; result set
      * type will be <code>ResultSet.TYPE_FORWARD_ONLY</code>, concurrency will
      * be <code>ResultSet.CONCUR_READ_ONLY</code>.
-     * 
+     *
      * @param sql SQL query string
      * @param schema current compilation schema
      * @param holdability result set holdability
@@ -87,7 +87,7 @@
      * Creates a key for a query specifying result set type and concurrency.
      * <p>
      * The returned key is for a statement not returning auto-generated keys.
-     * 
+     *
      * @param sql SQL query string
      * @param schema current compilation schema
      * @param holdability result set holdability
@@ -107,7 +107,7 @@
      * Unspecified settings will be according to the JDBC standard; result set
      * type will be <code>ResultSet.TYPE_FORWARD_ONLY</code>, concurrency will
      * be <code>ResultSet.CONCUR_READ_ONLY</code>.
-     * 
+     *
      * @param sql SQL query string
      * @param schema current compilation schema
      * @param holdability result set holdability
@@ -124,7 +124,7 @@
      * concurrency.
      * <p>
      * The returned key is for a statement not returning auto-generated keys.
-     * 
+     *
      * @param sql SQL query string
      * @param schema current compilation schema
      * @param holdability result set holdability



Mime
View raw message