APIdia Launch Partner
Top Description Inners Fields Methods
io.github.spannm.jackcess

public Interface Database

extends Iterable<Table>, Closeable, Flushable
Known Direct Implementers
io.github.spannm.jackcess.impl.DatabaseImpl
Imports
io.github.spannm.jackcess.expr.EvalConfig, io.github.spannm.jackcess.impl.DatabaseImpl, io.github.spannm.jackcess.query.Query, io.github.spannm.jackcess.util.ColumnValidatorFactory, .ErrorHandler, .LinkResolver, .TableIterableBuilder, java.io.Closeable, .File, .Flushable, .IOException, .UncheckedIOException, java.nio.charset.Charset, java.nio.file.Path, java.time.ZoneId, java.util.Arrays, .ConcurrentModificationException, .Iterator, .List, .Map, .Set, .TimeZone, java.util.stream.Stream, .StreamSupport

An Access database instance. A new instance can be instantiated by opening an existing database file (DatabaseBuilder#open(File)) or creating a new database file (DatabaseBuilder#create(Database.FileFormat, File)) (for more advanced opening/creating use DatabaseBuilder). Once a Database has been opened, you can interact with the data via the relevant Table. When a Database instance is no longer useful, it should always be closed (close) to avoid corruption.

Database instances (and all the related objects) are not thread-safe. However, separate Database instances (and their respective objects) can be used by separate threads without a problem.

Database instances do not implement any "transactional" support, and therefore concurrent editing of the same database file by multiple Database instances (or with outside programs such as MS Access) will generally result in database file corruption.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
Database.FileFormat

Enum which indicates which version of Access created the database.

Field Summary

Modifier and TypeField and Description
public static final String
ALLOW_AUTONUM_INSERT_PROPERTY

system property which can be used to set the default allow auto number insert policy.

public static final String
BROKEN_NIO_PROPERTY

(boolean) system property which can be used to indicate that the current vm has a poor nio implementation (specifically for FileChannel.transferFrom)

public static final String
CHARSET_PROPERTY_PREFIX

system property prefix which can be used to set the default Charset used for text data (full property includes the JetFormat version).

public static final String
COLUMN_ORDER_PROPERTY

system property which can be used to set the default sort order for table columns.

public static final String
DATE_TIME_TYPE_PROPERTY

system property which can be used to set the default date/Time type.

public static final boolean
DEFAULT_AUTO_SYNC

default value for the auto-sync value (true).

public static final Table.ColumnOrder
DEFAULT_COLUMN_ORDER

the default sort order for table columns.

public static final String
ENABLE_EXPRESSION_EVALUATION_PROPERTY

system property which can be used to disable expression evaluation if necessary.

public static final String
public static final String
public static final String
FK_ENFORCE_PROPERTY

system property which can be used to set the default enforcement of foreign-key relationships.

public static final String
RESOURCE_PATH_PROPERTY

system property which can be used to set the path from which classpath resources are loaded (must end with a "/" if non-empty).

public static final String
TIMEZONE_PROPERTY

system property which can be used to set the default TimeZone used for date calculations.

public static final String
WRITE_BROKEN_INDEX_PROPERTY

System property which can be used to allow writing indexes with unsupported text sort orders.

Method Summary

Modifier and TypeMethod and Description
public void
close()

Redeclares java.io.Closeable.close.

Close the database file (and any linked databases).

public void
createLinkedTable(String
Name of the table to create in this database
name
,
String
path to the linked database
linkedDbName
,
String
name of the table in the linked database
linkedTableName
)

Create a new table in this database

public void
flush()

Redeclares java.io.Flushable.flush.

Flushes any current changes to the database file (and any linked databases) to disk.

public Charset
getCharset()

Gets currently configured Charset (always non-null).

public Table.ColumnOrder
getColumnOrder()

Gets currently configured Table.ColumnOrder (always non-null).

public ColumnValidatorFactory
getColumnValidatorFactory()

Gets currently configured ColumnValidatorFactory (always non-null).

public String

Returns:

the current database password, or null if none set.
getDatabasePassword
()

Returns the current database password, or null if none set.

public PropertyMap

Returns:

the core properties for the database
getDatabaseProperties
()

Returns the core properties for the database.

public DateTimeType
getDateTimeType()

Gets the currently configured DateTimeType.

public ErrorHandler
getErrorHandler()

Gets the currently configured ErrorHandler (always non-null).

public EvalConfig
getEvalConfig()

Returns the EvalConfig for configuring expression evaluation.

public File
getFile()

Returns the File underlying this Database

public Database.FileFormat
getFileFormat()

Returns the FileFormat of this database (which may involve inspecting the database itself).

public Map<String, Database>
getLinkedDatabases()

Returns an unmodifiable view of the currently loaded linked databases, mapped from the linked database file name to the linked database.

public LinkResolver
getLinkResolver()

Gets the currently configured LinkResolver (always non-null).

public Path
getPath()

Returns the File underlying this Database

public List<Query>
getQueries()

Finds all the queries in the database.

public List<Relationship>
getRelationships(Table table1, Table table2)

Finds all the relationships in the database between the given tables.

public List<Relationship>
getRelationships(Table table)

Finds all the relationships in the database for the given table.

public List<Relationship>
getRelationships()

Finds all the relationships in the database in non-system tables.

public PropertyMap

Returns:

the summary properties for the database
getSummaryProperties
()

Returns the summary properties for the database.

public List<Relationship>
getSystemRelationships()

Finds all the relationships in the database, including system tables.

public Table

Returns:

The table, or null if it doesn't exist
getSystemTable
(String
Table name, may be a system table
tableName
)

Returns a reference to any available table in this access database, including system tables.

public Set<String>

Returns:

The names of all of the system tables (String). Note, in order to read these tables, you must use getSystemTable. Extreme care should be taken if modifying these tables directly!.
getSystemTableNames
()

Returns the names of all of the system tables (String).

public Table

Returns:

The Table, or null if it doesn't exist (or is a system table)
getTable
(String
User table name (case-insensitive)
name
)

Returns the Table, or null if it doesn't exist (or is a system table).

public TableMetaData

Returns:

The meta data for the table, or null if it doesn't exist
getTableMetaData
(String
Table name (case-insensitive), may be any table type (i.e. includes system or linked tables).
name
)

Returns the meta data for the table, or null if it doesn't exist.

public Set<String>

Returns:

The names of all of the user tables
getTableNames
()

Returns the names of all of the user tables.

public TimeZone
getTimeZone()

Gets currently configured TimeZone (always non-null and aligned with the ZoneId).

public PropertyMap

Returns:

the user-defined properties for the database
getUserDefinedProperties
()

Returns the user-defined properties for the database.

public ZoneId
getZoneId()

Gets currently configured ZoneId (always non-null and aligned with the TimeZone).

public boolean
isAllowAutoNumberInsert()

Gets current allow auto number insert policy.

public boolean
isEnforceForeignKeys()

Gets current foreign-key enforcement policy.

public boolean
isEvaluateExpressions()

Gets the current expression evaluation policy.

public boolean
isLinkedTable(Table table)

Returns true if this Database links to the given Table, false otherwise.

public boolean
isWriteBrokenIndex()

Gets the current write broken index policy.

public Iterator<Table>

Returns:

an unmodifiable Iterator of the user Tables in this Database.
iterator
()

Redeclares java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

public TableIterableBuilder
newIterable()

Convenience method for constructing a new TableIterableBuilder for this cursor.

public Iterable<TableMetaData>

Returns:

an Iterable which returns an unmodifiable Iterator of the the TableMetaData for all tables in this Database.
newTableMetaDataIterable
()

Returns an Iterable which returns an unmodifiable Iterator of the the TableMetaData for all tables in this Database.

public default Stream<TableMetaData>

Returns:

a Stream using the newTableMetaDataIterable
newTableMetaDataStream
()

Returns a Stream using the newTableMetaDataIterable.

public void
setAllowAutoNumberInsert(Boolean allowAutoNumInsert)

Sets the new auto number insert policy for the database (unless overridden at the Table level).

public void
setCharset(Charset newCharset)

Sets a new Charset.

public void
setColumnOrder(Table.ColumnOrder newColumnOrder)

Sets a new Table.ColumnOrder.

public void
setColumnValidatorFactory(ColumnValidatorFactory newFactory)

Sets a new ColumnValidatorFactory.

public void
setDateTimeType(DateTimeType dateTimeType)

Sets the DateTimeType.

public void
setEnforceForeignKeys(Boolean newEnforceForeignKeys)

Sets a new foreign-key enforcement policy.

public void
setErrorHandler(ErrorHandler newErrorHandler)

Sets a new ErrorHandler.

public void
setEvaluateExpressions(Boolean evaluateExpressions)

Sets the current expression evaluation policy.

public void
setLinkResolver(LinkResolver newLinkResolver)

Sets a new LinkResolver.

public void
setTimeZone(TimeZone newTimeZone)

Sets a new TimeZone.

public void
setWriteBrokenIndex(Boolean writeBrokenIndex)

Sets the current write broken index policy.

public void
setZoneId(ZoneId newZoneId)

Sets a new ZoneId.

public default Stream<Table>

Returns:

a Stream using the default Iterator.
stream
()

Returns a Stream using the default Iterator.

Inherited from java.lang.Iterable:
forEachspliterator

Field Detail

ALLOW_AUTONUM_INSERT_PROPERTYback to summary
public static final String ALLOW_AUTONUM_INSERT_PROPERTY

system property which can be used to set the default allow auto number insert policy. Defaults to false.

BROKEN_NIO_PROPERTYback to summary
public static final String BROKEN_NIO_PROPERTY

(boolean) system property which can be used to indicate that the current vm has a poor nio implementation (specifically for FileChannel.transferFrom)

CHARSET_PROPERTY_PREFIXback to summary
public static final String CHARSET_PROPERTY_PREFIX

system property prefix which can be used to set the default Charset used for text data (full property includes the JetFormat version).

COLUMN_ORDER_PROPERTYback to summary
public static final String COLUMN_ORDER_PROPERTY

system property which can be used to set the default sort order for table columns. Value should be one of Table.ColumnOrder enum values.

DATE_TIME_TYPE_PROPERTYback to summary
public static final String DATE_TIME_TYPE_PROPERTY

system property which can be used to set the default date/Time type. Value should be one of DateTimeType enum values.

DEFAULT_AUTO_SYNCback to summary
public static final boolean DEFAULT_AUTO_SYNC

default value for the auto-sync value (true). this is slower, but leaves more chance of a useable database in the face of failures.

DEFAULT_COLUMN_ORDERback to summary
public static final Table.ColumnOrder DEFAULT_COLUMN_ORDER

the default sort order for table columns.

ENABLE_EXPRESSION_EVALUATION_PROPERTYback to summary
public static final String ENABLE_EXPRESSION_EVALUATION_PROPERTY

system property which can be used to disable expression evaluation if necessary. Defaults to true.

FILE_EXT_ACCDBback to summary
public static final String FILE_EXT_ACCDB
FILE_EXT_MDBback to summary
public static final String FILE_EXT_MDB
FK_ENFORCE_PROPERTYback to summary
public static final String FK_ENFORCE_PROPERTY

system property which can be used to set the default enforcement of foreign-key relationships. Defaults to true.

RESOURCE_PATH_PROPERTYback to summary
public static final String RESOURCE_PATH_PROPERTY

system property which can be used to set the path from which classpath resources are loaded (must end with a "/" if non-empty). Default value is io/github/spannm/jackcess/ if unspecified.

TIMEZONE_PROPERTYback to summary
public static final String TIMEZONE_PROPERTY

system property which can be used to set the default TimeZone used for date calculations.

WRITE_BROKEN_INDEX_PROPERTYback to summary
public static final String WRITE_BROKEN_INDEX_PROPERTY

System property which can be used to allow writing indexes with unsupported text sort orders. Defaults to false. When enabled, instead of failing, an index with an unsupported text sort order will be written using the general legacy sort order. This allows the database to be created with all the structure necessary by Jackcess, and the index can then be fixed by using "compact and repair" in MS Access.

Method Detail

closeback to summary
public void close() throws IOException

Redeclares java.io.Closeable.close.

Close the database file (and any linked databases). A Database must be closed after use or changes could be lost and the Database file corrupted. A Database instance should be treated like any other external resource which would be closed in a finally block (e.g. an OutputStream or jdbc Connection).

Annotations
@Override
Exceptions
IOException:

Doc from java.io.Closeable.close.

if an I/O error occurs

createLinkedTableback to summary
public void createLinkedTable(String name, String linkedDbName, String linkedTableName) throws IOException

Create a new table in this database

Parameters
name:String

Name of the table to create in this database

linkedDbName:String

path to the linked database

linkedTableName:String

name of the table in the linked database

flushback to summary
public void flush() throws IOException

Redeclares java.io.Flushable.flush.

Flushes any current changes to the database file (and any linked databases) to disk.

Annotations
@Override
Exceptions
IOException:

Doc from java.io.Flushable.flush.

If an I/O error occurs

getCharsetback to summary
public Charset getCharset()

Gets currently configured Charset (always non-null).

getColumnOrderback to summary
public Table.ColumnOrder getColumnOrder()

Gets currently configured Table.ColumnOrder (always non-null).

getColumnValidatorFactoryback to summary
public ColumnValidatorFactory getColumnValidatorFactory()

Gets currently configured ColumnValidatorFactory (always non-null).

getDatabasePasswordback to summary
public String getDatabasePassword() throws IOException

Returns the current database password, or null if none set.

Returns:String

the current database password, or null if none set.

getDatabasePropertiesback to summary
public PropertyMap getDatabaseProperties() throws IOException

Returns the core properties for the database.

Returns:PropertyMap

the core properties for the database

getDateTimeTypeback to summary
public DateTimeType getDateTimeType()

Gets the currently configured DateTimeType.

getErrorHandlerback to summary
public ErrorHandler getErrorHandler()

Gets the currently configured ErrorHandler (always non-null). This will be used to handle all errors unless overridden at the Table or Cursor level.

getEvalConfigback to summary
public EvalConfig getEvalConfig()

Returns the EvalConfig for configuring expression evaluation.

getFileback to summary
public File getFile()

Returns the File underlying this Database

getFileFormatback to summary
public Database.FileFormat getFileFormat() throws IOException

Returns the FileFormat of this database (which may involve inspecting the database itself).

Exceptions
IllegalStateException:
if the file format cannot be determined
getLinkedDatabasesback to summary
public Map<String, Database> getLinkedDatabases()

Returns an unmodifiable view of the currently loaded linked databases, mapped from the linked database file name to the linked database. This information may be useful for implementing a LinkResolver.

getLinkResolverback to summary
public LinkResolver getLinkResolver()

Gets the currently configured LinkResolver (always non-null). This will be used to handle all linked database loading.

getPathback to summary
public Path getPath()

Returns the File underlying this Database

getQueriesback to summary
public List<Query> getQueries() throws IOException

Finds all the queries in the database.

getRelationshipsback to summary
public List<Relationship> getRelationships(Table table1, Table table2) throws IOException

Finds all the relationships in the database between the given tables.

getRelationshipsback to summary
public List<Relationship> getRelationships(Table table) throws IOException

Finds all the relationships in the database for the given table.

getRelationshipsback to summary
public List<Relationship> getRelationships() throws IOException

Finds all the relationships in the database in non-system tables.

Warning, this may load all the Tables (metadata, not data) in the database which could cause memory issues.

getSummaryPropertiesback to summary
public PropertyMap getSummaryProperties() throws IOException

Returns the summary properties for the database.

Returns:PropertyMap

the summary properties for the database

getSystemRelationshipsback to summary
public List<Relationship> getSystemRelationships() throws IOException

Finds all the relationships in the database, including system tables.

Warning, this may load all the Tables (metadata, not data) in the database which could cause memory issues.

getSystemTableback to summary
public Table getSystemTable(String tableName) throws IOException

Returns a reference to any available table in this access database, including system tables.

Warning, this method is not designed for common use, only for the occassional time when access to a system table is necessary. Messing with system tables can strip the paint off your house and give your whole family a permanent, orange afro. You have been warned.

Parameters
tableName:String

Table name, may be a system table

Returns:Table

The table, or null if it doesn't exist

getSystemTableNamesback to summary
public Set<String> getSystemTableNames() throws IOException

Returns the names of all of the system tables (String). Note, in order to read these tables, you must use getSystemTable. Extreme care should be taken if modifying these tables directly!.

Returns:Set<String>

The names of all of the system tables (String). Note, in order to read these tables, you must use getSystemTable. Extreme care should be taken if modifying these tables directly!.

getTableback to summary
public Table getTable(String name) throws IOException

Returns the Table, or null if it doesn't exist (or is a system table).

Parameters
name:String

User table name (case-insensitive)

Returns:Table

The Table, or null if it doesn't exist (or is a system table)

getTableMetaDataback to summary
public TableMetaData getTableMetaData(String name) throws IOException

Returns the meta data for the table, or null if it doesn't exist.

Parameters
name:String

Table name (case-insensitive), may be any table type (i.e. includes system or linked tables).

Returns:TableMetaData

The meta data for the table, or null if it doesn't exist

getTableNamesback to summary
public Set<String> getTableNames() throws IOException

Returns the names of all of the user tables.

Returns:Set<String>

The names of all of the user tables

getTimeZoneback to summary
public TimeZone getTimeZone()

Gets currently configured TimeZone (always non-null and aligned with the ZoneId).

getUserDefinedPropertiesback to summary
public PropertyMap getUserDefinedProperties() throws IOException

Returns the user-defined properties for the database.

Returns:PropertyMap

the user-defined properties for the database

getZoneIdback to summary
public ZoneId getZoneId()

Gets currently configured ZoneId (always non-null and aligned with the TimeZone).

isAllowAutoNumberInsertback to summary
public boolean isAllowAutoNumberInsert()

Gets current allow auto number insert policy. By default, jackcess does not allow auto numbers to be inserted or updated directly (they are always handled internally by the Table). Setting this policy to true allows the caller to optionally set the value explicitly when adding or updating rows (if a value is not provided, it will still be handled internally by the Table). This value can be set database-wide using setAllowAutoNumberInsert and/or on a per-table basis using Table#setAllowAutoNumberInsert (and/or on a jvm-wide using the ALLOW_AUTONUM_INSERT_PROPERTY system property). Note that enabling this feature should be done with care to reduce the chances of screwing up the database.

isEnforceForeignKeysback to summary
public boolean isEnforceForeignKeys()

Gets current foreign-key enforcement policy.

isEvaluateExpressionsback to summary
public boolean isEvaluateExpressions()

Gets the current expression evaluation policy. Expression evaluation is enabled by default but can be disabled if necessary.

isLinkedTableback to summary
public boolean isLinkedTable(Table table) throws IOException

Returns true if this Database links to the given Table, false otherwise.

isWriteBrokenIndexback to summary
public boolean isWriteBrokenIndex()

Gets the current write broken index policy. See WRITE_BROKEN_INDEX_PROPERTY for details.

iteratorback to summary
public Iterator<Table> iterator()

Redeclares java.lang.Iterable.iterator.

Doc from java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Returns:Iterator<Table>

an unmodifiable Iterator of the user Tables in this Database.

Annotations
@Override
Exceptions
UncheckedIOException:
if an IOException is thrown by one of the operations, the actual exception will be contained within
ConcurrentModificationException:
if a table is added to the database while an Iterator is in use.
newIterableback to summary
public TableIterableBuilder newIterable()

Convenience method for constructing a new TableIterableBuilder for this cursor. A TableIterableBuilder provides a variety of options for more flexible iteration of Tables.

newTableMetaDataIterableback to summary
public Iterable<TableMetaData> newTableMetaDataIterable()

Returns an Iterable which returns an unmodifiable Iterator of the the TableMetaData for all tables in this Database.

Returns:Iterable<TableMetaData>

an Iterable which returns an unmodifiable Iterator of the the TableMetaData for all tables in this Database.

Exceptions
UncheckedIOException:
if an IOException is thrown by one of the operations, the actual exception will be contained within
ConcurrentModificationException:
if a table is added to the database while an Iterator is in use.
newTableMetaDataStreamback to summary
public default Stream<TableMetaData> newTableMetaDataStream()

Returns a Stream using the newTableMetaDataIterable.

Returns:Stream<TableMetaData>

a Stream using the newTableMetaDataIterable

setAllowAutoNumberInsertback to summary
public void setAllowAutoNumberInsert(Boolean allowAutoNumInsert)

Sets the new auto number insert policy for the database (unless overridden at the Table level). If null, resets to the default value.

setCharsetback to summary
public void setCharset(Charset newCharset)

Sets a new Charset. If null, resets to the default value.

setColumnOrderback to summary
public void setColumnOrder(Table.ColumnOrder newColumnOrder)

Sets a new Table.ColumnOrder. If null, resets to the default value.

setColumnValidatorFactoryback to summary
public void setColumnValidatorFactory(ColumnValidatorFactory newFactory)

Sets a new ColumnValidatorFactory. If null, resets to the default value. The configured ColumnValidatorFactory will be used to create ColumnValidator instances on any user tables loaded from this point onward (this will not be used for system tables).

setDateTimeTypeback to summary
public void setDateTimeType(DateTimeType dateTimeType)

Sets the DateTimeType. If null, resets to the default value.

setEnforceForeignKeysback to summary
public void setEnforceForeignKeys(Boolean newEnforceForeignKeys)

Sets a new foreign-key enforcement policy. If null, resets to the default value.

setErrorHandlerback to summary
public void setErrorHandler(ErrorHandler newErrorHandler)

Sets a new ErrorHandler. If null, resets to the ErrorHandler#DEFAULT.

setEvaluateExpressionsback to summary
public void setEvaluateExpressions(Boolean evaluateExpressions)

Sets the current expression evaluation policy. Expression evaluation is enabled by default but can be disabled if necessary. If null, resets to the default value.

setLinkResolverback to summary
public void setLinkResolver(LinkResolver newLinkResolver)

Sets a new LinkResolver. If null, resets to the LinkResolver#DEFAULT, which disables automatic linked database resolution. Use LinkResolver#UNRESTRICTED only for trusted linked database paths.

setTimeZoneback to summary
public void setTimeZone(TimeZone newTimeZone)

Sets a new TimeZone. If null, resets to the default value. Note that setting the TimeZone will alter the ZoneId as well.

setWriteBrokenIndexback to summary
public void setWriteBrokenIndex(Boolean writeBrokenIndex)

Sets the current write broken index policy. If null, resets to the default value.

setZoneIdback to summary
public void setZoneId(ZoneId newZoneId)

Sets a new ZoneId. If null, resets to the default value. Note that setting the ZoneId will alter the TimeZone as well.

streamback to summary
public default Stream<Table> stream()

Returns a Stream using the default Iterator.

Returns:Stream<Table>

a Stream using the default Iterator.

io.github.spannm.jackcess back to summary

public final Enum Database.FileFormat

extends Enum<Database.FileFormat>
Class Inheritance

Enum which indicates which version of Access created the database.

Field Summary

Modifier and TypeField and Description
private final String
public static final Database.FileFormat
GENERIC_JET4

A database which was most likely created programmatically (e.g. using windows ADOX)

public static final Database.FileFormat
MSISAM

A database which was created by MS Money

public static final Database.FileFormat
V1997

A database which was created by MS Access 97

public static final Database.FileFormat
V2000

A database which was created by MS Access 2000

public static final Database.FileFormat
V2003

A database which was created by MS Access 2002/2003

public static final Database.FileFormat
V2007

A database which was created by MS Access 2007

public static final Database.FileFormat
V2010

A database which was created by MS Access 2010+

public static final Database.FileFormat
V2016

A database which was created by MS Access 2016+

public static final Database.FileFormat
V2019

A database which was created by MS Access 2019+ (Office 365)

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the file extension used for database files with this format.
getFileExtension
()

Returns the file extension used for database files with this format.

public static Database.FileFormat
parse(String _str)

public String
toString()

Overrides java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration.

public static Database.FileFormat
public static Database.FileFormat[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinalvalueOf

Field Detail

extback to summary
private final String ext
GENERIC_JET4back to summary
public static final Database.FileFormat GENERIC_JET4

A database which was most likely created programmatically (e.g. using windows ADOX)

MSISAMback to summary
public static final Database.FileFormat MSISAM

A database which was created by MS Money

V1997back to summary
public static final Database.FileFormat V1997

A database which was created by MS Access 97

V2000back to summary
public static final Database.FileFormat V2000

A database which was created by MS Access 2000

V2003back to summary
public static final Database.FileFormat V2003

A database which was created by MS Access 2002/2003

V2007back to summary
public static final Database.FileFormat V2007

A database which was created by MS Access 2007

V2010back to summary
public static final Database.FileFormat V2010

A database which was created by MS Access 2010+

V2016back to summary
public static final Database.FileFormat V2016

A database which was created by MS Access 2016+

V2019back to summary
public static final Database.FileFormat V2019

A database which was created by MS Access 2019+ (Office 365)

Constructor Detail

FileFormatback to summary
private FileFormat(String _ext)

Method Detail

getFileExtensionback to summary
public String getFileExtension()

Returns the file extension used for database files with this format.

Returns:String

the file extension used for database files with this format.

parseback to summary
public static Database.FileFormat parse(String _str)
Annotations
@SuppressWarnings:PMD.UnnecessaryFullyQualifiedName
toStringback to summary
public String toString()

Overrides java.lang.Enum.toString.

Doc from java.lang.Enum.toString.

Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists.

Annotations
@Override
valueOfback to summary
public static Database.FileFormat valueOf(String name)
valuesback to summary
public static Database.FileFormat[] values()