summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2008-06-21 05:03:47 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2008-06-21 05:03:47 +0000
commit0a3627650709d07bdbeeaa444ba12baaab52a9ae (patch)
tree14368a98a01ed1c68944f5fb7cf3ebcadd1b5faa
parent49f828416c65b26d8dd348266ff2ca83f2e16e98 (diff)
downloadjackcess-0a3627650709d07bdbeeaa444ba12baaab52a9ae.tar.gz
jackcess-0a3627650709d07bdbeeaa444ba12baaab52a9ae.zip
additional convenience methods
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@351 f203690c-595d-4dc9-a70b-905162fa7fd2
-rw-r--r--src/java/com/healthmarketscience/jackcess/ColumnBuilder.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/ColumnBuilder.java b/src/java/com/healthmarketscience/jackcess/ColumnBuilder.java
index 454f9ab..b2ec988 100644
--- a/src/java/com/healthmarketscience/jackcess/ColumnBuilder.java
+++ b/src/java/com/healthmarketscience/jackcess/ColumnBuilder.java
@@ -115,6 +115,13 @@ public class ColumnBuilder {
}
/**
+ * Sets the length for the new column to the max length for the type.
+ */
+ public ColumnBuilder setMaxLength() {
+ return setLength(_type.getMaxSize());
+ }
+
+ /**
* Sets whether of not the new column is an auto-number column.
*/
public ColumnBuilder setAutoNumber(boolean autoNumber) {