public abstract class NFEAbstractDataSource extends java.lang.Object implements NFEDataSource
Constructor and Description |
---|
NFEAbstractDataSource() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActiveWorkspace()
Returns the active workspace.
|
java.sql.Connection |
getConnection()
Returns a Connection and throws the appropriate exception if it can not do so.
|
abstract java.sql.Connection |
getConnectionWihoutWorkspaceHandling()
Returns a database connection and throws the appropriate exception if it can not do so.
|
void |
setActiveWorkspace(java.lang.String workspaceName)
Sets the active workspace that will be used by the connection.
|
public java.sql.Connection getConnection() throws InvalidDBConnectionException
NFEDataSource
getConnection
in interface NFEDataSource
InvalidDBConnectionException
- if the connection is not valid.public void setActiveWorkspace(java.lang.String workspaceName)
NFEDataSource
setActiveWorkspace
in interface NFEDataSource
workspaceName
- name of the workspace that will be used by the connectionpublic java.lang.String getActiveWorkspace()
NFEDataSource
getActiveWorkspace
in interface NFEDataSource
public abstract java.sql.Connection getConnectionWihoutWorkspaceHandling() throws InvalidDBConnectionException
InvalidDBConnectionException
- if the connection is not valid.