Class EnterpriseGeodatabaseWorkspace

java.lang.Object
com.esri.arcgisruntime.localserver.DynamicWorkspace
com.esri.arcgisruntime.localserver.EnterpriseGeodatabaseWorkspace

public final class EnterpriseGeodatabaseWorkspace extends DynamicWorkspace
An enterprise geodatabase workspace can be used to create a SublayerSource which displays data from the database.
Since:
100.1.0
  • 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 workspace
      connectionFilePath - the path to the connection file
      Returns:
      a new EnterpriseGeodatabaseWorkspace
      Throws:
      IllegalArgumentException - if id is null or empty
      IllegalArgumentException - 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 workspace
      connectionFilePath - the path to the connection file
      lockVersion - true if the connection cannot be changed to another version of the geodatabase
      Returns:
      a new EnterpriseGeodatabaseWorkspace
      Throws:
      IllegalArgumentException - if id is null or empty
      IllegalArgumentException - 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 workspace
      connectionString - the connection string
      Returns:
      a new EnterpriseGeodatabaseWorkspace
      Throws:
      IllegalArgumentException - if id is null or empty
      IllegalArgumentException - 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 workspace
      connectionString - the connection string
      lockVersion - true if the connection cannot be changed to another version of the geodatabase
      Returns:
      a new EnterpriseGeodatabaseWorkspace
      Throws:
      IllegalArgumentException - if id is null or empty
      IllegalArgumentException - 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

      public String 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