提交 a6636824 authored 作者: Thomas Mueller's avatar Thomas Mueller

Cleanup:

- Javadocs
上级 695d73be
......@@ -109,8 +109,7 @@ public class SupportedTypes {
}
/**
* Class to demonstrate TableUpdater
*
* This class demonstrates the table upgrade.
*/
@JQTable(name = "SupportedTypes", version = 2, inheritColumns = true, strictTypeMapping = true)
public static class SupportedTypes2 extends SupportedTypes {
......
......@@ -48,7 +48,7 @@ public class DbInspector {
* Generates models class skeletons for schemas and tables. If the table
* name is undefined, models will be generated for every table within the
* specified schema. Additionally, if no schema is defined, models will be
* generated for all schemas and all tables.
* generated for all schemas and all tables.
*
* @param schema the schema name (optional)
* @param table the table name (optional)
......
......@@ -7,7 +7,7 @@
package org.h2.jaqu;
/**
* Classes implementing this interface can be used as a declaration in an
* Classes implementing this interface can be used as a declaration in an
* update statement.
*/
public interface Declaration {
......
......@@ -47,8 +47,8 @@ public class ModelUtils {
}
/**
* Marshall SQL type aliases to the list of supported types.
* This map is used by Generation and Validation.
* Convert SQL type aliases to the list of supported types.
* This map is used by generation and validation.
*/
private static final Map<String, String> SQL_TYPES = new HashMap<String, String>();
......@@ -146,7 +146,7 @@ public class ModelUtils {
sqlType = sqlType.split(" ")[0].trim();
if (SQL_TYPES.containsKey(sqlType)) {
// marshall sqlType to a standard type
// convert the sqlType to a standard type
sqlType = SQL_TYPES.get(sqlType);
}
Class<?> mappedClazz = null;
......
......@@ -137,7 +137,7 @@ class TableDefinition<T> {
/**
* Define a primary key by the specified model fields.
*
*
* @param modelFields the ordered list of model fields
*/
void setPrimaryKey(Object[] modelFields) {
......@@ -147,7 +147,7 @@ class TableDefinition<T> {
/**
* Define a primary key by the specified column names.
*
*
* @param columnNames the ordered list of column names
*/
void setPrimaryKey(List<String> columnNames) {
......@@ -174,7 +174,7 @@ class TableDefinition<T> {
/**
* Defines an index with the specified model fields.
*
*
* @param type the index type (STANDARD, HASH, UNIQUE, UNIQUE_HASH)
* @param modelFields the ordered list of model fields
*/
......@@ -185,8 +185,8 @@ class TableDefinition<T> {
/**
* Defines an index with the specified column names.
*
* @param type the index type (STANDARD, HASH, UNIQUE, UNIQUE_HASH)
*
* @param type the index type (STANDARD, HASH, UNIQUE, UNIQUE_HASH)
* @param columnNames the ordered list of column names
*/
void addIndex(IndexType type, List<String> columnNames) {
......
......@@ -364,7 +364,7 @@ public class TableInspector {
sb.append(eol);
// variable declaration
sb.append("\tpublic ");
sb.append("\t" + "public ");
sb.append(clazz.getSimpleName());
sb.append(' ');
sb.append(column);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论