Package generalDatabase.sqlServerExpress
Class SQLServerSystem
java.lang.Object
generalDatabase.DBSystem
generalDatabase.sqlServerExpress.SQLServerSystem
-
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.booleanbooleancreate()Create a new databaseprotected booleancreateNewDatabase(String forcedName) createPamCursor(EmptyTableDefinition tableDefinition) booleanexists()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.booleanMethods inherited from class generalDatabase.DBSystem
canOpenDatabase, checkDatabaseExists, checkDatabaseExists, closeConnection, getConnection, getKeywords, getShortDatabaseName, openCurrentDatabase, reOpenConnection
-
Constructor Details
-
SQLServerSystem
public SQLServerSystem()
-
-
Method Details
-
getSystemName
- Specified by:
getSystemNamein classDBSystem- Returns:
- The name of the database system
-
canCreate
public boolean canCreate() -
getDatabaseName
- Specified by:
getDatabaseNamein classDBSystem- Returns:
- the name of the currently open database.
-
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:
name-- Returns:
-
browseDatabases
- Specified by:
browseDatabasesin classDBSystem
-
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() -
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
-