Package generalDatabase.sqlServerExpress
Class SQLServerSystem
java.lang.Object
generalDatabase.DBSystem
generalDatabase.sqlServerExpress.SQLServerSystem
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbrowseDatabases
(Component parent) browseDatabasesFX
(int type) Browse for databases using an FX dialog.boolean
boolean
create()
Create a new databasecreatePamCursor
(EmptyTableDefinition tableDefinition) boolean
exists()
getConnection
(String name) 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 the SQLTypes object which can be used to preform system specific formatting of SQL strings.boolean
Methods inherited from class generalDatabase.DBSystem
canOpenDatabase, checkDatabaseExists, checkDatabaseExists, closeConnection, getConnection, getKeywords, getShortDatabaseName, openCurrentDatabase
-
Constructor Details
-
SQLServerSystem
public SQLServerSystem()
-
-
Method Details
-
getSystemName
- Specified by:
getSystemName
in classDBSystem
- Returns:
- The name of the database system
-
canCreate
public boolean canCreate() -
getDatabaseName
- Specified by:
getDatabaseName
in classDBSystem
- Returns:
- the name of the currently open database.
-
getSqlTypes
Description copied from class:DBSystem
Get the SQLTypes object which can be used to preform system specific formatting of SQL strings.- Specified by:
getSqlTypes
in classDBSystem
- Returns:
-
exists
public boolean exists() -
create
public boolean create()Description copied from class:DBSystem
Create a new databaseThe underlying DBSystem will be responsible for any dialogs to chose database names, etc.
-
getConnection
Description copied from class:DBSystem
Open new database connection with a specific name- Specified by:
getConnection
in classDBSystem
- Returns:
-
browseDatabases
- Specified by:
browseDatabases
in classDBSystem
-
getDialogPanel
Description copied from class:DBSystem
Get a database specific dialog panel to include in the database select dialog.- Specified by:
getDialogPanel
in classDBSystem
- Parameters:
parent
- parent component- Returns:
- dialog panel
-
createPamCursor
- Specified by:
createPamCursor
in classDBSystem
-
hasDriver
public boolean hasDriver() -
getDialogPaneFX
Description copied from class:DBSystem
Get the FX pane for the database system- Specified by:
getDialogPaneFX
in classDBSystem
- Returns:
- the FX settings pane for the database system.
-
browseDatabasesFX
Description copied from class:DBSystem
Browse for databases using an FX dialog.- Specified by:
browseDatabasesFX
in classDBSystem
- Returns:
-