Package generalDatabase.ucanAccess
Class UCanAccessSystem
java.lang.Object
generalDatabase.DBSystem
generalDatabase.BaseAccessSystem
generalDatabase.ucanAccess.UCanAccessSystem
- All Implemented Interfaces:
 PamSettings,SettingsNameProvider
- 
Field Summary
Fields 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.booleancreate()Create a new databaseprotected booleancreateNewDatabase(String forcedName) createPamCursor(EmptyTableDefinition tableDefinition) booleanexists()getConnection(String latest) 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.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, closeConnection, getConnection, getKeywords, reOpenConnection 
- 
Constructor Details
- 
UCanAccessSystem
 
 - 
 - 
Method Details
- 
getRecentDatabases
- Specified by:
 getRecentDatabasesin classBaseAccessSystem- Returns:
 - the recentDatabases
 
 - 
getSystemName
- Specified by:
 getSystemNamein classDBSystem- Returns:
 - The name of the database system
 
 - 
browseDatabases
- Specified by:
 browseDatabasesin classDBSystem
 - 
canCreate
public boolean canCreate() - 
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
 
 - 
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:
 
 - 
exists
public boolean exists() - 
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.
 - 
getConnection
Description copied from class:DBSystemOpen new database connection with a specific name- Specified by:
 getConnectionin classDBSystem- Parameters:
 latest-- Returns:
 
 - 
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
 
 - 
createPamCursor
- Specified by:
 createPamCursorin classDBSystem
 - 
hasDriver
public boolean hasDriver() - 
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
 
 - 
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
 
 -