diff options
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess/ColumnBuilder.java')
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/ColumnBuilder.java | 7 |
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) { |