aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/iciql/Define.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2011-08-16 15:45:29 -0400
committerJames Moger <james.moger@gmail.com>2011-08-16 15:45:29 -0400
commit265bb2eebd995af0445ce7bc37f066e43d7da287 (patch)
tree055d8d5111caca32b474a09cc08161831fe6ae89 /src/com/iciql/Define.java
parentd95e16170d063c0b74d04e6636e8fddbfa120689 (diff)
downloadiciql-265bb2eebd995af0445ce7bc37f066e43d7da287.tar.gz
iciql-265bb2eebd995af0445ce7bc37f066e43d7da287.zip
Refactoring.
Diffstat (limited to 'src/com/iciql/Define.java')
-rw-r--r--src/com/iciql/Define.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/com/iciql/Define.java b/src/com/iciql/Define.java
index aa05872..4216ea1 100644
--- a/src/com/iciql/Define.java
+++ b/src/com/iciql/Define.java
@@ -31,47 +31,47 @@ public class Define {
public static void primaryKey(Object... columns) {
checkInDefine();
- currentTableDefinition.setPrimaryKey(columns);
+ currentTableDefinition.definePrimaryKey(columns);
}
public static void index(Object... columns) {
checkInDefine();
- currentTableDefinition.addIndex(IndexType.STANDARD, columns);
+ currentTableDefinition.defineIndex(IndexType.STANDARD, columns);
}
public static void uniqueIndex(Object... columns) {
checkInDefine();
- currentTableDefinition.addIndex(IndexType.UNIQUE, columns);
+ currentTableDefinition.defineIndex(IndexType.UNIQUE, columns);
}
public static void hashIndex(Object column) {
checkInDefine();
- currentTableDefinition.addIndex(IndexType.HASH, new Object[] { column });
+ currentTableDefinition.defineIndex(IndexType.HASH, new Object[] { column });
}
public static void uniqueHashIndex(Object column) {
checkInDefine();
- currentTableDefinition.addIndex(IndexType.UNIQUE_HASH, new Object[] { column });
+ currentTableDefinition.defineIndex(IndexType.UNIQUE_HASH, new Object[] { column });
}
public static void columnName(Object column, String columnName) {
checkInDefine();
- currentTableDefinition.setColumnName(column, columnName);
+ currentTableDefinition.defineColumnName(column, columnName);
}
public static void length(Object column, int length) {
checkInDefine();
- currentTableDefinition.setLength(column, length);
+ currentTableDefinition.defineLength(column, length);
}
public static void scale(Object column, int scale) {
checkInDefine();
- currentTableDefinition.setScale(column, scale);
+ currentTableDefinition.defineScale(column, scale);
}
public static void tableName(String tableName) {
checkInDefine();
- currentTableDefinition.setTableName(tableName);
+ currentTableDefinition.defineTableName(tableName);
}
@SuppressWarnings("deprecation")