com.esri.client.local
Class WorkspaceInfo

java.lang.Object
  extended by com.esri.client.local.WorkspaceInfo

public class WorkspaceInfo
extends Object

The Class WorkspaceInfo.


Nested Class Summary
static class WorkspaceInfo.WorkspaceFactoryType
          The enumeration WorkspaceFactoryType.
 
Constructor Summary
WorkspaceInfo(String id)
           
WorkspaceInfo(String id, WorkspaceInfo.WorkspaceFactoryType type, String connectionString)
           
WorkspaceInfo(String id, WorkspaceInfo.WorkspaceFactoryType type, String connectionString, boolean lockVersion)
           
 
Method Summary
static WorkspaceInfo CreateFileGeoDatabaseConnection(String workspaceID, String pathToFolder)
           
static WorkspaceInfo CreateRasterFolderConnection(String workspaceID, String pathToFolder)
           
static WorkspaceInfo CreateSDEConnection(String workspaceID, String connectionString)
           
static WorkspaceInfo CreateSDEConnection(String workspaceID, String connectionString, boolean lockVersion)
           
static WorkspaceInfo CreateSDEConnectionFromFilePath(String workspaceID, String pathToSdeConnectionFile)
           
static WorkspaceInfo CreateSDEConnectionFromFilePath(String workspaceID, String pathToSdeConnectionFile, boolean lockVersion)
           
static WorkspaceInfo CreateShapefileFolderConnection(String workspaceID, String pathToFolder)
           
 boolean equals(Object obj)
          two WorkspaceInfos are equal if they have the same ID.
 String getConnectionString()
          Gets the connection string.
 String getId()
          Gets the id.
 String getSdeConnectionFilePath()
          Sets the
 WorkspaceInfo.WorkspaceFactoryType getWorkspaceFactoryType()
          Gets the workspace factory type.
 int hashCode()
           
 boolean isLockVersion()
          Checks if is lock version.
 void setConnectionString(String connectionString)
          Sets the connection string.
 void setLockVersion(boolean lockVersion)
          Sets the lock version.
 void setSdeConnectionFilePath(String sdeConnectionString)
           
 void setWorkspaceFactoryType(WorkspaceInfo.WorkspaceFactoryType workspaceType)
          Sets the workspace factory type.
 String toJson()
          To json.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspaceInfo

public WorkspaceInfo(String id)
Parameters:
id -

WorkspaceInfo

public WorkspaceInfo(String id,
                     WorkspaceInfo.WorkspaceFactoryType type,
                     String connectionString)
Parameters:
id -
type -
connectionString -

WorkspaceInfo

public WorkspaceInfo(String id,
                     WorkspaceInfo.WorkspaceFactoryType type,
                     String connectionString,
                     boolean lockVersion)
Parameters:
id -
type -
connectionString -
lockVersion -
Method Detail

CreateFileGeoDatabaseConnection

public static WorkspaceInfo CreateFileGeoDatabaseConnection(String workspaceID,
                                                            String pathToFolder)
Parameters:
workspaceID -
pathToFolder -
Returns:

CreateShapefileFolderConnection

public static WorkspaceInfo CreateShapefileFolderConnection(String workspaceID,
                                                            String pathToFolder)
Parameters:
workspaceID -
pathToFolder -
Returns:

CreateRasterFolderConnection

public static WorkspaceInfo CreateRasterFolderConnection(String workspaceID,
                                                         String pathToFolder)
Parameters:
workspaceID -
pathToFolder -
Returns:

CreateSDEConnectionFromFilePath

public static WorkspaceInfo CreateSDEConnectionFromFilePath(String workspaceID,
                                                            String pathToSdeConnectionFile)
                                                     throws IOException
Parameters:
workspaceID -
pathToSdeConnectionFile -
Returns:
Throws:
IOException

CreateSDEConnectionFromFilePath

public static WorkspaceInfo CreateSDEConnectionFromFilePath(String workspaceID,
                                                            String pathToSdeConnectionFile,
                                                            boolean lockVersion)
                                                     throws IOException
Parameters:
workspaceID -
pathToSdeConnectionFile -
lockVersion -
Returns:
Throws:
IOException

CreateSDEConnection

public static WorkspaceInfo CreateSDEConnection(String workspaceID,
                                                String connectionString)
Parameters:
workspaceID -
connectionString -
Returns:

CreateSDEConnection

public static WorkspaceInfo CreateSDEConnection(String workspaceID,
                                                String connectionString,
                                                boolean lockVersion)
Parameters:
workspaceID -
connectionString -
lockVersion -
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
two WorkspaceInfos are equal if they have the same ID.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getId

public String getId()
Gets the id.

Returns:
the id

getConnectionString

public String getConnectionString()
Gets the connection string.

Returns:
the connection string

setConnectionString

public void setConnectionString(String connectionString)
                         throws IOException
Sets the connection string.

Parameters:
connectionString - the new connection string
Throws:
IOException

getSdeConnectionFilePath

public String getSdeConnectionFilePath()
Sets the

Returns:

setSdeConnectionFilePath

public void setSdeConnectionFilePath(String sdeConnectionString)
                              throws IOException
Parameters:
sdeConnectionString -
Throws:
IOException

getWorkspaceFactoryType

public WorkspaceInfo.WorkspaceFactoryType getWorkspaceFactoryType()
Gets the workspace factory type.

Returns:
the workspace factory type

setWorkspaceFactoryType

public void setWorkspaceFactoryType(WorkspaceInfo.WorkspaceFactoryType workspaceType)
Sets the workspace factory type.

Parameters:
workspaceType - the new workspace factory type

isLockVersion

public boolean isLockVersion()
Checks if is lock version.

Returns:
true, if is lock version

setLockVersion

public void setLockVersion(boolean lockVersion)
Sets the lock version.

Parameters:
lockVersion - the new lock version

toJson

public String toJson()
              throws org.codehaus.jackson.JsonGenerationException,
                     IOException
To json.

Returns:
the string
Throws:
org.codehaus.jackson.JsonGenerationException - the json generation exception
IOException - Signals that an I/O exception has occurred.


Copyright © 2012. All Rights Reserved.