aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2016-09-08 12:29:32 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2016-09-08 12:29:32 +0000
commit4de28cb4f6595148baaf36a57875e20c32faeda2 (patch)
treebbc5df96955b5a052c037831988a93e7444486f9 /src/main/java/com
parent8fdd98bd2a2bcfda6c7cd408180adad5009b9740 (diff)
downloadjackcess-mutateops.tar.gz
jackcess-mutateops.zip
update javadocs, minor cleanupsmutateops
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/branches/mutateops@1030 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/ColumnBuilder.java1
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/IndexBuilder.java1
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/RelationshipBuilder.java17
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/TableBuilder.java3
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java6
5 files changed, 25 insertions, 3 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/ColumnBuilder.java b/src/main/java/com/healthmarketscience/jackcess/ColumnBuilder.java
index abebec0..76a1783 100644
--- a/src/main/java/com/healthmarketscience/jackcess/ColumnBuilder.java
+++ b/src/main/java/com/healthmarketscience/jackcess/ColumnBuilder.java
@@ -34,6 +34,7 @@ import com.healthmarketscience.jackcess.impl.TableUpdater;
* existing Table using the {@link #addToTable(Table)} method.
*
* @author James Ahlborn
+ * @see TableBuilder
* @usage _general_class_
*/
public class ColumnBuilder {
diff --git a/src/main/java/com/healthmarketscience/jackcess/IndexBuilder.java b/src/main/java/com/healthmarketscience/jackcess/IndexBuilder.java
index 472740e..d10a6fb 100644
--- a/src/main/java/com/healthmarketscience/jackcess/IndexBuilder.java
+++ b/src/main/java/com/healthmarketscience/jackcess/IndexBuilder.java
@@ -35,6 +35,7 @@ import com.healthmarketscience.jackcess.impl.TableUpdater;
* existing Table using the {@link #addToTable(Table)} method.
*
* @author James Ahlborn
+ * @see TableBuilder
* @usage _general_class_
*/
public class IndexBuilder
diff --git a/src/main/java/com/healthmarketscience/jackcess/RelationshipBuilder.java b/src/main/java/com/healthmarketscience/jackcess/RelationshipBuilder.java
index f826a7c..8ba9bb1 100644
--- a/src/main/java/com/healthmarketscience/jackcess/RelationshipBuilder.java
+++ b/src/main/java/com/healthmarketscience/jackcess/RelationshipBuilder.java
@@ -27,9 +27,24 @@ import com.healthmarketscience.jackcess.impl.RelationshipImpl;
/**
* Builder style class for constructing a {@link Relationship}, and,
* optionally, the associated backing foreign key (if referential integrity
- * enforcement is enabled).
+ * enforcement is enabled). A Relationship can only be constructed for
+ * {@link Table}s which already exist in the {@link Database}. Additionally,
+ * if integrity enforcement is enabled, there must already be a unique index
+ * on the "from" Table for the relevant columns (same requirement as MS
+ * Access).
+ * <p/>
+ * Example:
+ * <pre>
+ * Relationship rel = new RelationshipBuilder("FromTable", "ToTable")
+ * .addColumns("ID", "FK_ID")
+ * .setReferentialIntegrity()
+ * .setCascadeDeletes()
+ * .toRelationship(db);
+ * </pre>
*
* @author James Ahlborn
+ * @see TableBuilder
+ * @usage _general_class_
*/
public class RelationshipBuilder
{
diff --git a/src/main/java/com/healthmarketscience/jackcess/TableBuilder.java b/src/main/java/com/healthmarketscience/jackcess/TableBuilder.java
index 8f0b233..31aa3a0 100644
--- a/src/main/java/com/healthmarketscience/jackcess/TableBuilder.java
+++ b/src/main/java/com/healthmarketscience/jackcess/TableBuilder.java
@@ -45,6 +45,9 @@ import com.healthmarketscience.jackcess.impl.TableCreator;
* </pre>
*
* @author James Ahlborn
+ * @see ColumnBuilder
+ * @see IndexBuilder
+ * @see RelationshipBuilder
* @usage _general_class_
*/
public class TableBuilder {
diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java b/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java
index fc70fe4..8ed8f57 100644
--- a/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java
+++ b/src/main/java/com/healthmarketscience/jackcess/impl/DatabaseImpl.java
@@ -1021,8 +1021,9 @@ public class DatabaseImpl implements Database
* Create a new table in this database
* @param name Name of the table to create
* @param columns List of Columns in the table
- * @usage _general_method_
+ * @deprecated use {@link TableBuilder} instead
*/
+ @Deprecated
public void createTable(String name, List<ColumnBuilder> columns)
throws IOException
{
@@ -1034,8 +1035,9 @@ public class DatabaseImpl implements Database
* @param name Name of the table to create
* @param columns List of Columns in the table
* @param indexes List of IndexBuilders describing indexes for the table
- * @usage _general_method_
+ * @deprecated use {@link TableBuilder} instead
*/
+ @Deprecated
public void createTable(String name, List<ColumnBuilder> columns,
List<IndexBuilder> indexes)
throws IOException