Package oracle.spatial.network.nfe.io
Interface NFEDataSource
-
- All Known Subinterfaces:
NFEConnectionDataSource
- All Known Implementing Classes:
JdbcDataSource,NFEAbstractDataSource
public interface NFEDataSourceThis interface provides the database connection that will be used by the NFE services. It provides access methods for the workspace used by the Oracle Workspace Manager.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetActiveWorkspace()Returns the active workspace.java.sql.ConnectiongetConnection()Returns a Connection and throws the appropriate exception if it can not do so.voidsetActiveWorkspace(java.lang.String workspaceName)Sets the active workspace that will be used by the connection.
-
-
-
Method Detail
-
getConnection
java.sql.Connection getConnection() throws InvalidDBConnectionExceptionReturns a Connection and throws the appropriate exception if it can not do so. The connection will use the active workspace.- Returns:
- connection
- Throws:
InvalidDBConnectionException- if the connection is not valid.
-
setActiveWorkspace
void setActiveWorkspace(java.lang.String workspaceName)
Sets the active workspace that will be used by the connection. Reload the model after to change the active workspace.- Parameters:
workspaceName- name of the workspace that will be used by the connection
-
getActiveWorkspace
java.lang.String getActiveWorkspace()
Returns the active workspace. The method should not return null. If the model is not version enabled then LIVE should be returned.- Returns:
- active workspace
-
-