Module com.esri.arcgisruntime
Class EnterpriseGeodatabaseWorkspace
java.lang.Object
com.esri.arcgisruntime.localserver.DynamicWorkspace
com.esri.arcgisruntime.localserver.EnterpriseGeodatabaseWorkspace
An enterprise geodatabase workspace can be used to create a
SublayerSource
which displays data from the database.- Since:
- 100.1.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The types of ArcSDE connection. -
Method Summary
Modifier and TypeMethodDescriptioncreateFromConnectionFile
(String id, String connectionFilePath) Creates an enterprise geodatabase workspace based on a connection file.createFromConnectionFile
(String id, String connectionFilePath, boolean lockVersion) Creates an enterprise geodatabase workspace based on a connection file.createFromConnectionString
(String id, String connectionString) Creates an enterprise geodatabase workspace based on a connection string.createFromConnectionString
(String id, String connectionString, boolean lockVersion) Creates an enterprise geodatabase workspace based on a connection string.Gets the connection string or connection file path used to create this workspace.Gets the type of connection used to create this workspace.boolean
Returns true if the connection cannot be changed to another version of the geodatabase, false otherwise.Methods inherited from class com.esri.arcgisruntime.localserver.DynamicWorkspace
getId
-
Method Details
-
createFromConnectionFile
public static EnterpriseGeodatabaseWorkspace createFromConnectionFile(String id, String connectionFilePath) Creates an enterprise geodatabase workspace based on a connection file.- Parameters:
id
- the ID of this workspaceconnectionFilePath
- the path to the connection file- Returns:
- a new EnterpriseGeodatabaseWorkspace
- Throws:
IllegalArgumentException
- if id is null or emptyIllegalArgumentException
- if connectionFilePath is null or empty- Since:
- 100.1.0
-
createFromConnectionFile
public static EnterpriseGeodatabaseWorkspace createFromConnectionFile(String id, String connectionFilePath, boolean lockVersion) Creates an enterprise geodatabase workspace based on a connection file.- Parameters:
id
- the ID of this workspaceconnectionFilePath
- the path to the connection filelockVersion
- true if the connection cannot be changed to another version of the geodatabase- Returns:
- a new EnterpriseGeodatabaseWorkspace
- Throws:
IllegalArgumentException
- if id is null or emptyIllegalArgumentException
- if connectionFilePath is null or empty- Since:
- 100.1.0
-
createFromConnectionString
public static EnterpriseGeodatabaseWorkspace createFromConnectionString(String id, String connectionString) Creates an enterprise geodatabase workspace based on a connection string.- Parameters:
id
- the ID of this workspaceconnectionString
- the connection string- Returns:
- a new EnterpriseGeodatabaseWorkspace
- Throws:
IllegalArgumentException
- if id is null or emptyIllegalArgumentException
- if connectionString is null or empty- Since:
- 100.1.0
-
createFromConnectionString
public static EnterpriseGeodatabaseWorkspace createFromConnectionString(String id, String connectionString, boolean lockVersion) Creates an enterprise geodatabase workspace based on a connection string.- Parameters:
id
- the ID of this workspaceconnectionString
- the connection stringlockVersion
- true if the connection cannot be changed to another version of the geodatabase- Returns:
- a new EnterpriseGeodatabaseWorkspace
- Throws:
IllegalArgumentException
- if id is null or emptyIllegalArgumentException
- if connectionString is null or empty- Since:
- 100.1.0
-
isLockVersion
public boolean isLockVersion()Returns true if the connection cannot be changed to another version of the geodatabase, false otherwise. Default value is true.- Returns:
- true if locked, false otherwise
- Since:
- 100.1.0
-
getConnection
Gets the connection string or connection file path used to create this workspace.- Returns:
- the connection string or connection file path
- Since:
- 100.1.0
-
getConnectionType
Gets the type of connection used to create this workspace.- Returns:
- the connection type
- Since:
- 100.1.0
-