From 0a3627650709d07bdbeeaa444ba12baaab52a9ae Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Sat, 21 Jun 2008 05:03:47 +0000 Subject: additional convenience methods git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@351 f203690c-595d-4dc9-a70b-905162fa7fd2 --- src/java/com/healthmarketscience/jackcess/ColumnBuilder.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 @@ -114,6 +114,13 @@ public class ColumnBuilder { return setLength(_type.getUnitSize() * unitLength); } + /** + * 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. */ -- cgit v1.2.3