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
NFEDataSourcegetConnection in interface NFEDataSourceInvalidDBConnectionException - if the connection is not valid.public void setActiveWorkspace(java.lang.String workspaceName)
NFEDataSourcesetActiveWorkspace in interface NFEDataSourceworkspaceName - name of the workspace that will be used by the connectionpublic java.lang.String getActiveWorkspace()
NFEDataSourcegetActiveWorkspace in interface NFEDataSource
public abstract java.sql.Connection getConnectionWihoutWorkspaceHandling()
throws InvalidDBConnectionException
InvalidDBConnectionException - if the connection is not valid.