Package generalDatabase
Class MSAccessSystem
java.lang.Object
generalDatabase.DBSystem
generalDatabase.BaseAccessSystem
generalDatabase.MSAccessSystem
- All Implemented Interfaces:
 PamSettings,SettingsNameProvider
- 
Field Summary
FieldsFields inherited from class generalDatabase.DBSystem
keywords2003 - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbrowseDatabases(Component parent) browseDatabasesFX(int type) Browse for databases using an FX dialog.booleanbooleanfind out if it's possible to open the current databse with a host application (e.g.voidcloseConnection(PamConnection connection) Close the database connectionbooleancreate()Create a new databaseprotected booleancreateNewDatabase(String forcedName) createPamCursor(EmptyTableDefinition tableDefinition) booleanexists()static PamConnectiongetACCDBConnection(DBSystem dbSystem, String dbName) getConnection(String dbName) Open new database connection with a specific nameGet the FX pane for the database systemgetDialogPanel(Component parent) Get a database specific dialog panel to include in the database select dialog.Get a list of keywords which potentially may not be used for column names in an SQL statement.static PamConnectiongetMDBConnection(DBSystem dbSystem, String dbName) longGet a shorter version of the currently open database name (e.g.Get the SQLTypes object which can be used to preform system specific formatting of SQL strings.booleanbooleanOpen the database with it's host application if available (e.g.booleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings) Methods inherited from class generalDatabase.DBSystem
checkDatabaseExists, checkDatabaseExists, getConnection, reOpenConnection 
- 
Field Details
- 
SYSTEMNAME
- See Also:
 
 
 - 
 - 
Constructor Details
- 
MSAccessSystem
 
 - 
 - 
Method Details
- 
getRecentDatabases
- Specified by:
 getRecentDatabasesin classBaseAccessSystem- Returns:
 - the recentDatabases
 
 - 
browseDatabases
- Specified by:
 browseDatabasesin classDBSystem
 - 
canCreate
public boolean canCreate() - 
create
public boolean create()Description copied from class:DBSystemCreate a new databaseThe underlying DBSystem will be responsible for any dialogs to chose database names, etc.
 - 
createPamCursor
- Specified by:
 createPamCursorin classDBSystem
 - 
exists
public boolean exists() - 
getConnection
Description copied from class:DBSystemOpen new database connection with a specific name- Specified by:
 getConnectionin classDBSystem- Parameters:
 dbName-- Returns:
 
 - 
getMDBConnection
- Throws:
 Exception
 - 
getACCDBConnection
- Throws:
 Exception
 - 
closeConnection
Description copied from class:DBSystemClose the database connection- Overrides:
 closeConnectionin classDBSystem- Parameters:
 connection-
 - 
hasDriver
public boolean hasDriver() - 
getDatabaseName
- Specified by:
 getDatabaseNamein classDBSystem- Returns:
 - the name of the currently open database.
 
 - 
getShortDatabaseName
Description copied from class:DBSystemGet a shorter version of the currently open database name (e.g. without the file path name)- Overrides:
 getShortDatabaseNamein classDBSystem- Returns:
 - a shorter name
 
 - 
getDialogPanel
Description copied from class:DBSystemGet a database specific dialog panel to include in the database select dialog.- Specified by:
 getDialogPanelin classDBSystem- Parameters:
 parent- parent component- Returns:
 - dialog panel
 
 - 
getSqlTypes
Description copied from class:DBSystemGet the SQLTypes object which can be used to preform system specific formatting of SQL strings.- Specified by:
 getSqlTypesin classDBSystem- Returns:
 
 - 
getSystemName
- Specified by:
 getSystemNamein classDBSystem- Returns:
 - The name of the database system
 
 - 
getUnitName
- Specified by:
 getUnitNamein interfaceSettingsNameProvider- Returns:
 - A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
 
 - 
getUnitType
- Specified by:
 getUnitTypein interfacePamSettings- Returns:
 - A Name specific to the type, e.g. Click detector
 
 - 
getSettingsReference
- Specified by:
 getSettingsReferencein interfacePamSettings- Returns:
 - The serialisable object that will be stored
 
 - 
getSettingsVersion
public long getSettingsVersion()- Specified by:
 getSettingsVersionin interfacePamSettings- Returns:
 - An integer version number for the settings
 
 - 
restoreSettings
- Specified by:
 restoreSettingsin interfacePamSettings- Parameters:
 pamControlledUnitSettings-- Returns:
 - true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
 
 - 
getKeywords
Description copied from class:DBSystemGet a list of keywords which potentially may not be used for column names in an SQL statement. In reality, this list is complete overkill. Override for each system and try to reduce the list as much as possible.- Overrides:
 getKeywordsin classDBSystem- Returns:
 - list of restricted keywords.
 
 - 
canOpenDatabase
public boolean canOpenDatabase()Description copied from class:DBSystemfind out if it's possible to open the current databse with a host application (e.g. MS Access).- Overrides:
 canOpenDatabasein classDBSystem- Returns:
 - true if it's possible.
 
 - 
openCurrentDatabase
public boolean openCurrentDatabase()Description copied from class:DBSystemOpen the database with it's host application if available (e.g. open MS access database with Access).- Overrides:
 openCurrentDatabasein classDBSystem- Returns:
 - true if opened sucessfully.
 
 - 
getDialogPaneFX
Description copied from class:DBSystemGet the FX pane for the database system- Specified by:
 getDialogPaneFXin classDBSystem- Returns:
 - the FX settings pane for the database system.
 
 - 
browseDatabasesFX
Description copied from class:DBSystemBrowse for databases using an FX dialog.- Specified by:
 browseDatabasesFXin classDBSystem- Parameters:
 type-- Returns:
 
 - 
createNewDatabase
- Specified by:
 createNewDatabasein classDBSystem
 
 -