| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private int | |
| private transient PrintWriter | |
| private final Map | |
| private static final long | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public Boolean | |
| public Connection | Returns: java.sql.Connection objectImplements javax. Opens the connection to the Access database. |
| public Connection | Returns: database connectionuser name user, String password pass)Implements javax. Opens the connection to the Access database using the provided user name and password. |
| public Boolean | |
| public Boolean | |
| public Boolean | |
| public Integer | |
| public String | |
| public String | |
| public Integer | |
| public int | getLoginTimeout()
Implements javax. Gets the maximum time in seconds that this data source can wait while attempting to connect to a database. |
| public PrintWriter | getLogWriter()
Implements javax. Retrieves the log writer for this |
| public Boolean | |
| public String | |
| public String | |
| public Boolean | |
| public java. | getParentLogger()
Implements javax. Return the parent Logger of all the Loggers used by this data source. |
| public Boolean | |
| private Boolean | |
| private Integer | |
| private String | |
| public Reference | getReference()
Implements javax. Retrieves the Reference of this object. |
| public String | |
| public Boolean | |
| public Boolean | |
| public Boolean | |
| public String | |
| public boolean | isWrapperFor(Class<?> iface)
Implements java. Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does. |
| public void | |
| public void | setColumnOrder(String
Valid values for this parameter are: "DATA", or "DISPLAY". value)Controls the order in which columns are returned by operations like SELECT *. |
| public void | setConcatNulls(Boolean
Controls what is returned by concatenations involving null values. |
| public void | setEncrypt(Boolean
Setting this value to true tells UCanAccess to encrypt the HSQLDB backing database. value)Encrypts the backing database. |
| public void | |
| public void | setImmediatelyReleaseResources(Boolean
Setting this value to true tells UCanAccess to close the Access database file, shut down
HSQLDB, and release all related resources (e.g., memory or disk space) as soon as the Connection is
closed. Otherwise, UCanAccess will "hold on" to those resources for the
value)setInactivityTimeout(Integer) in case the Access database gets re-opened.Releases the Access database and shuts down HSQLDB immediately after the Connection is closed. |
| public void | setInactivityTimeout(Integer
(in minutes) value)For an in-memory backing database (memory=true), this parameter controls the time (in minutes, default=2), that HSQLDB remains active and the in-memory database remains available after the last connection is closed. |
| public void | setJackcessOpener(String
name of custom class value)Specifies the name of the custom class to be used by Jackcess when opening the Access database. |
| public void | setKeepMirror(String
path value)Specifies the path where a persistent copy of the HSQLDB backing database files should be stored. |
| public void | setLobScale(Integer
Values allowed are 1, 2, 4, 8, 16, or 32 (the unit is kB). Default is 2 if memory=true, and 32 (the
HSQLDB default) otherwise. value)Controls the allocation unit size for "OLE Object" (i.e., BLOB) data in the HSQLDB backing database. |
| public void | setLoginTimeout(int value)
Implements javax. Sets the maximum time in seconds that this data source will wait while attempting to connect to a database. |
| public void | setLogWriter(PrintWriter logWriter)
Implements javax. Sets the log writer for this |
| public void | setMemory(Boolean
Create the backing database in memory (value=true, the default) or on disk (value=false). Creating
the backing database on disk will be slower, but it can greatly reduce JVM memory usage. value)Controls whether the HSQLDB backing database is created in memory (the default) or on disk. |
| public void | setMirrorFolder(String
value value)Specifies the path where the temporary HSQLDB backing database files should be stored. |
| public void | setNewDatabaseVersion(String
database versions, valid values are defined in enum version)AccessVersion ("V2000", "V2003", "V2007" etc.).Creates a new, empty Access database in the specified format
if the database specified by |
| public void | |
| public void | setOpenExclusive(Boolean
Setting this value to true tells UCanAccess to open the Access database as "exclusive"
(preventing other processes from opening it at the same time). value)Opens the Access database in "exclusive" mode. |
| public void | |
| public void | setPreventReloading(Boolean
Setting this value to true prevents UCanAccess from unnecessarily re-loading the backing
database under very specific circumstances. value)Prevents unnecessary re-loading of backing database under very specific circumstances. |
| private void | |
| public void | |
| public void | setShowSchema(Boolean
(default = false) value)Exposes the HSQLDB catalog and schema names (e.g., "PUBLIC") in DatabaseMetadata. |
| public void | setSkipIndexes(Boolean
Setting this value to true tells UCanAccess to skip the creation of simple indexes (not
associated with a constraint). It doesn't have an effect on referential integrity constraints (i.e.,
Index Unique, Foreign Key or Primary Key). value)Reduces memory consumption by not creating simple indexes in the backing database. |
| public void | setSysSchema(Boolean
(default = false) value)Exposes the Access system tables in a read-only schema named "SYS". |
| public void | |
| public <T> T | unwrap(Class<T> iface)
Implements java. Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy. |
| accessPath | back to summary |
|---|---|
| private String accessPath | |
| loginTimeout | back to summary |
|---|---|
| private int loginTimeout | |
| logWriter | back to summary |
|---|---|
| private transient PrintWriter logWriter | |
| props | back to summary |
|---|---|
| private final Map<Metadata. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| userPass | back to summary |
|---|---|
| private final Map<Metadata. | |
| UcanaccessDataSource | back to summary |
|---|---|
| public UcanaccessDataSource() | |
| getAccessPath | back to summary |
|---|---|
| public String getAccessPath() See | |
| getColumnOrder | back to summary |
|---|---|
| public String getColumnOrder() See | |
| getConcatNulls | back to summary |
|---|---|
| public Boolean getConcatNulls() See | |
| getConnection | back to summary |
|---|---|
| public Connection getConnection() throws SQLException Implements javax. Opens the connection to the Access database.
| |
| getConnection | back to summary |
|---|---|
| public Connection getConnection(String user, String pass) throws SQLException Implements javax. Opens the connection to the Access database using the provided user name and password.
| |
| getEncrypt | back to summary |
|---|---|
| public Boolean getEncrypt() See | |
| getIgnoreCase | back to summary |
|---|---|
| public Boolean getIgnoreCase() See | |
| getImmediatelyReleaseResources | back to summary |
|---|---|
| public Boolean getImmediatelyReleaseResources() See | |
| getInactivityTimeout | back to summary |
|---|---|
| public Integer getInactivityTimeout() See | |
| getJackcessOpener | back to summary |
|---|---|
| public String getJackcessOpener() See | |
| getKeepMirror | back to summary |
|---|---|
| public String getKeepMirror() See | |
| getLobScale | back to summary |
|---|---|
| public Integer getLobScale() See | |
| getLoginTimeout | back to summary |
|---|---|
| public int getLoginTimeout() Implements javax. Doc from javax. Gets the maximum time in seconds that this data source can wait
while attempting to connect to a database. A value of zero
means that the timeout is the default system timeout
if there is one; otherwise, it means that there is no timeout.
When a
| |
| getLogWriter | back to summary |
|---|---|
| public PrintWriter getLogWriter() Implements javax. Doc from javax. Retrieves the log writer for this The log writer is a character output stream to which all logging
and tracing messages for this data source will be
printed. This includes messages printed by the methods of this
object, messages printed by methods of other objects manufactured
by this object, and so on. Messages printed to a data source
specific log writer are not printed to the log writer associated
with the
| |
| getMemory | back to summary |
|---|---|
| public Boolean getMemory() See | |
| getMirrorFolder | back to summary |
|---|---|
| public String getMirrorFolder() See | |
| getNewDatabaseVersion | back to summary |
|---|---|
| public String getNewDatabaseVersion() See | |
| getOpenExclusive | back to summary |
|---|---|
| public Boolean getOpenExclusive() See | |
| getParentLogger | back to summary |
|---|---|
| public java. Implements javax. Doc from javax. Return the parent Logger of all the Loggers used by this data source. This should be the Logger farthest from the root Logger that is still an ancestor of all of the Loggers used by this data source. Configuring this Logger will affect all of the log messages generated by the data source. In the worst case, this may be the root Logger.
| |
| getPreventReloading | back to summary |
|---|---|
| public Boolean getPreventReloading() See | |
| getPropAsBoolean | back to summary |
|---|---|
| private Boolean getPropAsBoolean(Metadata. | |
| getPropAsInteger | back to summary |
|---|---|
| private Integer getPropAsInteger(Metadata. | |
| getPropAsString | back to summary |
|---|---|
| private String getPropAsString(Metadata. | |
| getReference | back to summary |
|---|---|
| public Reference getReference() Implements javax. Doc from javax. Retrieves the Reference of this object.
| |
| getReMap | back to summary |
|---|---|
| public String getReMap() See | |
| getShowSchema | back to summary |
|---|---|
| public Boolean getShowSchema() See | |
| getSkipIndexes | back to summary |
|---|---|
| public Boolean getSkipIndexes() See | |
| getSysSchema | back to summary |
|---|---|
| public Boolean getSysSchema() See | |
| getUser | back to summary |
|---|---|
| public String getUser() | |
| isWrapperFor | back to summary |
|---|---|
| public boolean isWrapperFor(Class<?> iface) Implements java. Doc from java. Returns true if this either implements the interface argument or is directly or indirectly a wrapper
for an object that does. Returns false otherwise. If this implements the interface then return true,
else if this is a wrapper then return the result of recursively calling
| |
| setAccessPath | back to summary |
|---|---|
| public void setAccessPath(String accessPath) Specifies the path to the Access database file. For example: C:/folder/database.accdb
| |
| setColumnOrder | back to summary |
|---|---|
| public void setColumnOrder(String value) Controls the order in which columns are returned by operations like SELECT *. The default is "DATA". See the UCanAccess website for details.
| |
| setConcatNulls | back to summary |
|---|---|
| public void setConcatNulls(Boolean value) Controls what is returned by concatenations involving null values. This setting affects all concatenation operators (&, +, ||).
| |
| setEncrypt | back to summary |
|---|---|
| public void setEncrypt(Boolean value) Encrypts the backing database.
| |
| setIgnoreCase | back to summary |
|---|---|
| public void setIgnoreCase(Boolean value) Enables case-insensitive string comparisons.
| |
| setImmediatelyReleaseResources | back to summary |
|---|---|
| public void setImmediatelyReleaseResources(Boolean value) Releases the Access database and shuts down HSQLDB immediately after the Connection is closed.
| |
| setInactivityTimeout | back to summary |
|---|---|
| public void setInactivityTimeout(Integer value) For an in-memory backing database (memory=true), this parameter controls the time (in minutes, default=2), that HSQLDB remains active and the in-memory database remains available after the last connection is closed.
| |
| setJackcessOpener | back to summary |
|---|---|
| public void setJackcessOpener(String value) Specifies the name of the custom class to be used by Jackcess when opening the Access database. Mainly for use with Jackcess Encrypt to open encrypted databases. See the UCanAccess website for details.
| |
| setKeepMirror | back to summary |
|---|---|
| public void setKeepMirror(String value) Specifies the path where a persistent copy of the HSQLDB backing database files should be stored. Implies memory=false. See the UCanAccess website for details.
| |
| setLobScale | back to summary |
|---|---|
| public void setLobScale(Integer value) Controls the allocation unit size for "OLE Object" (i.e., BLOB) data in the HSQLDB backing database. See the UCanAccess website for details.
| |
| setLoginTimeout | back to summary |
|---|---|
| public void setLoginTimeout(int value) Implements javax. Doc from javax. Sets the maximum time in seconds that this data source will wait
while attempting to connect to a database. A value of zero
specifies that the timeout is the default system timeout
if there is one; otherwise, it specifies that there is no timeout.
When a
| |
| setLogWriter | back to summary |
|---|---|
| public void setLogWriter(PrintWriter logWriter) Implements javax. Doc from javax. Sets the log writer for this The log writer is a character output stream to which all logging
and tracing messages for this data source will be
printed. This includes messages printed by the methods of this
object, messages printed by methods of other objects manufactured
by this object, and so on. Messages printed to a data source-
specific log writer are not printed to the log writer associated
with the
| |
| setMemory | back to summary |
|---|---|
| public void setMemory(Boolean value) Controls whether the HSQLDB backing database is created in memory (the default) or on disk.
| |
| setMirrorFolder | back to summary |
|---|---|
| public void setMirrorFolder(String value) Specifies the path where the temporary HSQLDB backing database files should be stored. Implies memory=false. To
create a persistent copy of the backing database, use
| |
| setNewDatabaseVersion | back to summary |
|---|---|
| public void setNewDatabaseVersion(String version) Creates a new, empty Access database in the specified format
if the database specified by
| |
| setNewDatabaseVersion | back to summary |
|---|---|
| public void setNewDatabaseVersion(AccessVersion version) | |
| setOpenExclusive | back to summary |
|---|---|
| public void setOpenExclusive(Boolean value) Opens the Access database in "exclusive" mode.
| |
| setPassword | back to summary |
|---|---|
| public void setPassword(String password) | |
| setPreventReloading | back to summary |
|---|---|
| public void setPreventReloading(Boolean value) Prevents unnecessary re-loading of backing database under very specific circumstances.
| |
| setProp | back to summary |
|---|---|
| private void setProp(Metadata. | |
| setReMap | back to summary |
|---|---|
| public void setReMap(String value) For this connection, temporarily re-directs linked tables in the Access database to point to a different Access database. See the UCanAccess website for details.
| |
| setShowSchema | back to summary |
|---|---|
| public void setShowSchema(Boolean value) Exposes the HSQLDB catalog and schema names (e.g., "PUBLIC") in DatabaseMetadata.
| |
| setSkipIndexes | back to summary |
|---|---|
| public void setSkipIndexes(Boolean value) Reduces memory consumption by not creating simple indexes in the backing database.
| |
| setSysSchema | back to summary |
|---|---|
| public void setSysSchema(Boolean value) Exposes the Access system tables in a read-only schema named "SYS".
| |
| setUser | back to summary |
|---|---|
| public void setUser(String user) | |
| unwrap | back to summary |
|---|---|
| public <T> T unwrap(Class<T> iface) Implements java. Doc from java. Returns an object that implements the given interface to allow access to
non-standard methods, or standard methods not exposed by the proxy.
If the receiver implements the interface then the result is the receiver
or a proxy for the receiver. If the receiver is a wrapper
and the wrapped object implements the interface then the result is the
wrapped object or a proxy for the wrapped object. Otherwise return the
the result of calling
| |