public class MSAccessSystem extends BaseAccessSystem implements PamSettings
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SYSTEMNAME |
Constructor and Description |
---|
MSAccessSystem(DBControl dbControl,
int settingsStore) |
Modifier and Type | Method and Description |
---|---|
boolean |
canOpenDatabase()
find out if it's possible to open the current databse
with a host application (e.g.
|
PamCursor |
createPamCursor(EmptyTableDefinition tableDefinition) |
static java.sql.Connection |
getACCDBConnection(java.lang.String dbName) |
java.lang.String |
getDatabaseName() |
SystemDialogPanel |
getDialogPanel(java.awt.Component parent)
Get a database specific dialog panel to include in
the database select dialog.
|
java.lang.String |
getKeywords()
Get a list of keywords which potentially may not be used for column
names in an SQL statement.
|
static java.sql.Connection |
getMDBConnection(java.lang.String dbName) |
java.util.ArrayList<java.io.File> |
getRecentDatabases() |
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
java.lang.String |
getShortDatabaseName()
Get a shorter version of the currently open database
name (e.g.
|
SQLTypes |
getSqlTypes()
Get the SQLTypes object which can be used to preform system specific
formatting of SQL strings.
|
java.lang.String |
getUnitName() |
java.lang.String |
getUnitType() |
boolean |
hasDriver() |
boolean |
openCurrentDatabase()
Open the database with it's host application if available
(e.g.
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
public static final java.lang.String SYSTEMNAME
public MSAccessSystem(DBControl dbControl, int settingsStore)
public java.util.ArrayList<java.io.File> getRecentDatabases()
getRecentDatabases
in class BaseAccessSystem
public PamCursor createPamCursor(EmptyTableDefinition tableDefinition)
createPamCursor
in class DBSystem
public static java.sql.Connection getMDBConnection(java.lang.String dbName) throws java.lang.Exception
java.lang.Exception
public static java.sql.Connection getACCDBConnection(java.lang.String dbName) throws java.lang.Exception
java.lang.Exception
public boolean hasDriver()
public java.lang.String getDatabaseName()
public java.lang.String getShortDatabaseName()
DBSystem
getShortDatabaseName
in class DBSystem
public SystemDialogPanel getDialogPanel(java.awt.Component parent)
DBSystem
parent
- parent componentpublic SQLTypes getSqlTypes()
DBSystem
getSqlTypes
in class DBSystem
public java.lang.String getUnitName()
getUnitName
in interface PamSettings
public java.lang.String getUnitType()
getUnitType
in interface PamSettings
public java.io.Serializable getSettingsReference()
getSettingsReference
in interface PamSettings
public long getSettingsVersion()
getSettingsVersion
in interface PamSettings
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings
in interface PamSettings
public java.lang.String getKeywords()
DBSystem
getKeywords
in class DBSystem
public boolean canOpenDatabase()
DBSystem
canOpenDatabase
in class DBSystem
public boolean openCurrentDatabase()
DBSystem
openCurrentDatabase
in class DBSystem