Author: tomdz Date: Tue Jul 18 22:52:52 2006 New Revision: 423380 URL: http://svn.apache.org/viewvc?rev=423380&view=rev Log: Javadoc fixes
Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/alteration/ColumnOrderChange.java db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/PlatformImplBase.java db/ddlutils/trunk/src/java/org/apache/ddlutils/util/SqlTokenizer.java Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/alteration/ColumnOrderChange.java URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/org/apache/ddlutils/alteration/ColumnOrderChange.java?rev=423380&r1=423379&r2=423380&view=diff ============================================================================== --- db/ddlutils/trunk/src/java/org/apache/ddlutils/alteration/ColumnOrderChange.java (original) +++ db/ddlutils/trunk/src/java/org/apache/ddlutils/alteration/ColumnOrderChange.java Tue Jul 18 22:52:52 2006 @@ -48,6 +48,7 @@ /** * Returns the new position of the given source column. * + * @param sourceColumn The column * @return The new position or -1 if no position is marked for the column */ public int getNewPosition(Column sourceColumn) Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/PlatformImplBase.java URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/PlatformImplBase.java?rev=423380&r1=423379&r2=423380&view=diff ============================================================================== --- db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/PlatformImplBase.java (original) +++ db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/PlatformImplBase.java Tue Jul 18 22:52:52 2006 @@ -1943,16 +1943,12 @@ } /** - * Helper method esp. for the [EMAIL PROTECTED] ModelBasedResultSetIterator} class that retrieves - * the value for a column from the given result set. If a table was specified, - * and it contains the column, then the jdbc type defined for the column is used for extracting - * the value, otherwise the object directly retrieved from the result set is returned.<br/> - * The method is defined here rather than in the [EMAIL PROTECTED] ModelBasedResultSetIterator} class - * so that concrete platforms can modify its behavior. + * Helper method for retrieving the value for a column from the given result set + * using the type code of the column. * - * @param resultSet The result set - * @param columnName The name of the column - * @param table The table + * @param resultSet The result set + * @param column The column + * @param idx The value's index in the result set (starting from 1) * @return The value */ protected Object getObjectFromResultSet(ResultSet resultSet, Column column, int idx) throws SQLException Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/util/SqlTokenizer.java URL: http://svn.apache.org/viewvc/db/ddlutils/trunk/src/java/org/apache/ddlutils/util/SqlTokenizer.java?rev=423380&r1=423379&r2=423380&view=diff ============================================================================== --- db/ddlutils/trunk/src/java/org/apache/ddlutils/util/SqlTokenizer.java (original) +++ db/ddlutils/trunk/src/java/org/apache/ddlutils/util/SqlTokenizer.java Tue Jul 18 22:52:52 2006 @@ -1,18 +1,40 @@ package org.apache.ddlutils.util; +/* + * Copyright 2006 The Apache Software Foundation. + * + * 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. + */ + /** * A statement tokenizer for SQL strings that splits only at delimiters that * are at the end of a line or the end of the SQL (row mode). * * TODO: Add awareness of strings, so that semicolons within strings are not parsed + * @version $Revision: $ */ public class SqlTokenizer { + /** The SQL to tokenize. */ private String _sql; + /** The index of the last character in the string. */ private int _lastCharIdx; + /** The last delimiter position in the string. */ private int _lastDelimiterPos = -1; + /** The next delimiter position in the string. */ private int _nextDelimiterPos = -1; + /** Whether there are no more tokens. */ private boolean _finished; /**