org.salespointframework.core.data.database
Class JavaDBClientConnection

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

public class JavaDBClientConnection
extends AbstractJavaDBConnection

The DatabaseConnection implementation for JavaDB remote connections do derby servers

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
 
Fields inherited from class org.salespointframework.core.data.database.AbstractJavaDBConnection
askpass, cmds, description, imageFilename, name, params, pass, target, tmpPass, typeMap, user
 
Constructor Summary
JavaDBClientConnection()
          default constructor
 
Method Summary
 void configure(java.awt.Window owner)
          displays the configuration dialog
 java.util.Properties getConnectionProperties()
          builds the connection properties based on current config
 java.lang.String getConnectionString()
          builds the connection string. based on current config
 boolean loadDriver()
          loads the database driver (org.apache.derby.jdbc.ClientDriver)
 void onClose()
          shutdown the database on close. javadb requires a special call for this
 
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
 

Constructor Detail

JavaDBClientConnection

public JavaDBClientConnection()
default constructor

Method Detail

configure

public void configure(java.awt.Window owner)
displays the configuration dialog

Specified by:
configure in interface DatabaseConnection
Specified by:
configure in class AbstractJavaDBConnection
Parameters:
owner - owning window

loadDriver

public boolean loadDriver()
loads the database driver (org.apache.derby.jdbc.ClientDriver)

Specified by:
loadDriver in interface DatabaseConnection
Specified by:
loadDriver in class AbstractJavaDBConnection
Returns:
true on success

getConnectionString

public java.lang.String getConnectionString()
builds the connection string. based on current config

Specified by:
getConnectionString in interface DatabaseConnection
Overrides:
getConnectionString in class AbstractJavaDBConnection
Returns:
"jdbc:derby:"
See Also:
DriverManager.getConnection(String, Properties)

getConnectionProperties

public java.util.Properties getConnectionProperties()
builds the connection properties based on current config

Specified by:
getConnectionProperties in interface DatabaseConnection
Overrides:
getConnectionProperties in class AbstractJavaDBConnection
Returns:
list of properties
See Also:
DriverManager.getConnection(String, Properties)

onClose

public void onClose()
shutdown the database on close. javadb requires a special call for this

Specified by:
onClose in interface DatabaseConnection
Specified by:
onClose in class AbstractJavaDBConnection