org.salespointframework.core.data.database
Class DefaultDatabaseConnection

java.lang.Object
  extended by org.salespointframework.core.data.database.AbstractJavaDBConnection
      extended by org.salespointframework.core.data.database.JavaDBEmbeddedConnection
          extended by org.salespointframework.core.data.database.DefaultDatabaseConnection
All Implemented Interfaces:
DatabaseConnection

public class DefaultDatabaseConnection
extends JavaDBEmbeddedConnection

The default database connection. is used if there was no connection found in PreferenceStorage the default connection is a JavaDBEmbeddedConnection

Since:
4.0
Author:
Thomas Kissinger

Nested Class Summary
 
Nested classes/interfaces inherited from class org.salespointframework.core.data.database.AbstractJavaDBConnection
AbstractJavaDBConnection.JavaDBConfigurationDialog, AbstractJavaDBConnection.JavaDBConfigurationFS
 
Field Summary
private static DefaultDatabaseConnection _instance
          singleton instance
 
Fields inherited from class org.salespointframework.core.data.database.AbstractJavaDBConnection
askpass, cmds, description, imageFilename, name, params, pass, target, tmpPass, typeMap, user
 
Constructor Summary
private DefaultDatabaseConnection()
          default constructor. sets database filename to "salespointdb"
 
Method Summary
static DefaultDatabaseConnection getInstance()
          returns the singleton instance
 
Methods inherited from class org.salespointframework.core.data.database.JavaDBEmbeddedConnection
configure, getConnectionProperties, getConnectionString, loadDriver, onClose
 
Methods inherited from class org.salespointframework.core.data.database.AbstractJavaDBConnection
beforeConnect, doAssignmentFixing, getDescription, getImage, getName, getSpecialCommands, getTableColumns, getTables, getTypeMapping, handleCreateTableException, onConnected, promptPassword, recover, save, supportsAutoGeneratedKeys
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_instance

private static DefaultDatabaseConnection _instance
singleton instance

Constructor Detail

DefaultDatabaseConnection

private DefaultDatabaseConnection()
default constructor. sets database filename to "salespointdb"

Method Detail

getInstance

public static DefaultDatabaseConnection getInstance()
returns the singleton instance

Returns: