From: James Ahlborn Date: Wed, 9 Mar 2011 04:54:49 +0000 (+0000) Subject: minor updates X-Git-Tag: jackcess-1.2.4~35 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=642a1a7c170d4d77d3f2e9a2eec300a6d0f663d2;p=jackcess.git minor updates git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@522 f203690c-595d-4dc9-a70b-905162fa7fd2 --- diff --git a/src/java/com/healthmarketscience/jackcess/DataType.java b/src/java/com/healthmarketscience/jackcess/DataType.java index 617bab7..56330d9 100644 --- a/src/java/com/healthmarketscience/jackcess/DataType.java +++ b/src/java/com/healthmarketscience/jackcess/DataType.java @@ -391,6 +391,10 @@ public enum DataType { return toValidRange(precision, getMinPrecision(), getMaxPrecision()); } + public boolean isTextual() { + return ((this == TEXT) || (this == MEMO)); + } + private static int toValidRange(int value, int minValue, int maxValue) { return((value > maxValue) ? maxValue : ((value < minValue) ? minValue : value)); diff --git a/src/java/com/healthmarketscience/jackcess/query/QueryFormat.java b/src/java/com/healthmarketscience/jackcess/query/QueryFormat.java index 4b1fd92..89d586e 100644 --- a/src/java/com/healthmarketscience/jackcess/query/QueryFormat.java +++ b/src/java/com/healthmarketscience/jackcess/query/QueryFormat.java @@ -53,6 +53,10 @@ public class QueryFormat public static final int DATA_DEF_QUERY_OBJECT_FLAG = 96; public static final int PASSTHROUGH_QUERY_OBJECT_FLAG = 112; public static final int UNION_QUERY_OBJECT_FLAG = 128; + // dbQSPTBulk = 144 + // dbQCompound = 160 + // dbQProcedure = 224 + // dbQAction = 240 public static final String COL_ATTRIBUTE = "Attribute"; public static final String COL_EXPRESSION = "Expression";