diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2015-05-01 00:45:53 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2015-05-01 00:45:53 +0000 |
commit | e8616e647606956573e6b33bfd0c098c63f3886e (patch) | |
tree | 7b0aa2d20a104004f225cd9868dc55696d7056bc /src/main/java/com/healthmarketscience/jackcess/Table.java | |
parent | ee49db8317232aff01613146e280ad989d4e34bd (diff) | |
download | jackcess-e8616e647606956573e6b33bfd0c098c63f3886e.tar.gz jackcess-e8616e647606956573e6b33bfd0c098c63f3886e.zip |
Allow optional direct insert/update of autonumber values. This is disabled by default, but can be selectively enabled per-jvm (using system property), per-database, and per-table. fixes feature #32
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@941 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/main/java/com/healthmarketscience/jackcess/Table.java')
-rw-r--r-- | src/main/java/com/healthmarketscience/jackcess/Table.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/Table.java b/src/main/java/com/healthmarketscience/jackcess/Table.java index 6604491..bbb6885 100644 --- a/src/main/java/com/healthmarketscience/jackcess/Table.java +++ b/src/main/java/com/healthmarketscience/jackcess/Table.java @@ -99,6 +99,20 @@ public interface Table extends Iterable<Row> public void setErrorHandler(ErrorHandler newErrorHandler); /** + * Gets the currently configured auto number insert policy. + * @see Database#isAllowAutoNumberInsert + * @usage _intermediate_method_ + */ + public boolean isAllowAutoNumberInsert(); + + /** + * Sets the new auto number insert policy for the Table. If {@code null}, + * resets to using the policy configured at the Database level. + * @usage _intermediate_method_ + */ + public void setAllowAutoNumberInsert(Boolean allowAutoNumInsert); + + /** * @return All of the columns in this table (unmodifiable List) * @usage _general_method_ */ |