/**
* An Access database instance. A new instance can be instantiated by opening
* an existing database file ({@link DatabaseBuilder#open(File)}) or creating
- * a new database file ({@link DatabaseBuilder#create(FileFormat,File)}) (for
+ * a new database file ({@link DatabaseBuilder#create(Database.FileFormat,File)}) (for
* more advanced opening/creating use {@link DatabaseBuilder}). Once a
* Database has been opened, you can interact with the data via the relevant
* {@link Table}. When a Database instance is no longer useful, it should
import com.healthmarketscience.jackcess.impl.DatabaseImpl;
import com.healthmarketscience.jackcess.impl.CodecProvider;
+import com.healthmarketscience.jackcess.util.MemFileChannel;
/**
* Builder style class for opening/creating a Database.
/**
* Uniquely identifies a row of data within the access database. While RowIds
* are largely opaque identifiers, they are comparable to each other (within
- * the same table) and have valid {@link #equals}, {@link #hashCode} and
- * {@link #toString} methods.
+ * the same table) and have valid {@code equals()}, {@code hashCode()} and
+ * {@code toString()} methods.
*
* @author James Ahlborn
*/
import com.healthmarketscience.jackcess.Column;
import com.healthmarketscience.jackcess.RowId;
+import com.healthmarketscience.jackcess.impl.complex.ComplexColumnInfoImpl;
/**
* Base interface for a value in a complex column (where there may be multiple
* Returns the unique identifier of this complex value (this value is unique
* among all values in all rows of the main table).
*
- * @return the current id or {@link ComplexColumnInfo#INVALID_ID} for a new,
+ * @return the current id or {@link ComplexColumnInfoImpl#INVALID_ID} for a new,
* unsaved value.
*/
public Id getId();
* Returns the foreign key identifier for this complex value (this value is
* the same for all values in the same row of the main table).
*
- * @return the current id or {@link ComplexColumnInfo#INVALID_FK}
+ * @return the current id or {@link ComplexColumnInfoImpl#INVALID_FK}
* for a new, unsaved value.
*/
public ComplexValueForeignKey getComplexValueForeignKey();
import java.util.regex.Matcher;
import java.util.regex.Pattern;
+import com.healthmarketscience.jackcess.Column;
+import com.healthmarketscience.jackcess.ColumnBuilder;
+import com.healthmarketscience.jackcess.DataType;
+import com.healthmarketscience.jackcess.PropertyMap;
+import com.healthmarketscience.jackcess.Table;
import com.healthmarketscience.jackcess.complex.ComplexColumnInfo;
import com.healthmarketscience.jackcess.complex.ComplexValue;
import com.healthmarketscience.jackcess.complex.ComplexValueForeignKey;
import com.healthmarketscience.jackcess.impl.scsu.IllegalInputException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import com.healthmarketscience.jackcess.Column;
-import com.healthmarketscience.jackcess.DataType;
-import com.healthmarketscience.jackcess.PropertyMap;
-import com.healthmarketscience.jackcess.ColumnBuilder;
/**
* Access database column definition
import com.healthmarketscience.jackcess.ColumnBuilder;
import com.healthmarketscience.jackcess.Cursor;
-import com.healthmarketscience.jackcess.CursorBuilder;
import com.healthmarketscience.jackcess.DataType;
import com.healthmarketscience.jackcess.Database;
import com.healthmarketscience.jackcess.IndexBuilder;
/**
* Returns the default TimeZone. This is normally the platform default
* TimeZone as returned by {@link TimeZone#getDefault}, but can be
- * overridden using the system property {@value #TIMEZONE_PROPERTY}.
+ * overridden using the system property {@value Database#TIMEZONE_PROPERTY}.
* @usage _advanced_method_
*/
public static TimeZone getDefaultTimeZone()
* Returns the default Charset for the given JetFormat. This may or may not
* be platform specific, depending on the format, but can be overridden
* using a system property composed of the prefix
- * {@value #CHARSET_PROPERTY_PREFIX} followed by the JetFormat version to
+ * {@value Database#CHARSET_PROPERTY_PREFIX} followed by the JetFormat version to
* which the charset should apply, e.g. {@code
* "com.healthmarketscience.jackcess.charset.VERSION_3"}.
* @usage _advanced_method_
/**
* Returns the default Table.ColumnOrder. This defaults to
- * {@link #DEFAULT_COLUMN_ORDER}, but can be overridden using the system
+ * {@link Database#DEFAULT_COLUMN_ORDER}, but can be overridden using the system
* property {@value #COLUMN_ORDER_PROPERTY}.
* @usage _advanced_method_
*/
/**
* Returns the default enforce foreign-keys policy. This defaults to
* {@code true}, but can be overridden using the system
- * property {@value #FK_ENFORCE_PROPERTY}.
+ * property {@value Database#FK_ENFORCE_PROPERTY}.
* @usage _advanced_method_
*/
public static boolean getDefaultEnforceForeignKeys()
import java.util.Map;
import java.util.Set;
+import com.healthmarketscience.jackcess.Index;
import com.healthmarketscience.jackcess.IndexCursor;
import com.healthmarketscience.jackcess.Row;
import com.healthmarketscience.jackcess.RuntimeIOException;
/**
* @return valid page number if there was another page to read,
- * {@link RowId#LAST_PAGE_NUMBER} otherwise
+ * {@link RowIdImpl#LAST_PAGE_NUMBER} otherwise
*/
public int getNextPage() {
return getAnotherPage(CursorImpl.MOVE_FORWARD);
/**
* @return valid page number if there was another page to read,
- * {@link RowId#FIRST_PAGE_NUMBER} otherwise
+ * {@link RowIdImpl#FIRST_PAGE_NUMBER} otherwise
*/
public int getPreviousPage() {
return getAnotherPage(CursorImpl.MOVE_REVERSE);
import java.io.IOException;
+import com.healthmarketscience.jackcess.DataType;
import com.healthmarketscience.jackcess.RuntimeIOException;
import com.healthmarketscience.jackcess.Table;
import com.healthmarketscience.jackcess.impl.ColumnImpl;
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.WritableByteChannel;
+import com.healthmarketscience.jackcess.Database;
+import com.healthmarketscience.jackcess.DatabaseBuilder;
import com.healthmarketscience.jackcess.impl.DatabaseImpl;
/**