com.esri.aims.mtier.model.workspace
Class SDEWorkspace

java.lang.Object
  extended by com.esri.aims.mtier.model.workspace.SDEWorkspace
All Implemented Interfaces:
Serializable

public class SDEWorkspace
extends Object
implements Serializable

The SDEWorkspace object defines an ArcSDE data source.

See Also:
Serialized Form

Constructor Summary
SDEWorkspace()
          Constructs an instance of a SDEWorkspace object.
 
Method Summary
 String getDatabase()
          Returns the SDEWorkspace objects ArcSDE database name value.
 String getDataBase()
          Deprecated. As of ArcIMS 9.3 Java Connector, replaced by getDatabase().
 String getGeoIndexDir()
          Returns the SDEWorkspace objects GEOIndex's directory value.
 String getInstance()
          Returns the SDEWorkspace objects ArcSDE database instance value.
 String getName()
          Returns the SDEWorkspace object's name value.
 String getPassword()
          Returns the SDEWorkspace objects ArcSDE database password value.
 String getServer()
          Returns the SDEWorkspace objects server name value.
 String getUser()
          Returns the SdeWorkspace objects ArcSDE database user name value.
 boolean isEncrypted()
          Returns true if the password encryption property is set to true.
 void setDatabase(String database)
          Sets the SDEWorkspace object's database name value.
 void setEncrypted(boolean value)
          When set to true the password for the ArcSDE instance in encrypted.
 void setGeoIndexDir(String geoIndexDir)
          Specifies the directory where the geocoding index is to be built.
 void setInstance(String instance)
          Sets the SDEWorkspace objects SDE database instance value.
 void setName(String name)
          Sets the SDEWorkspace object's name value.
 void setPassword(String password)
          Specifies the password for the SDEWorkspace object's associated ArcSDE database.
 void setServer(String server)
          Sets the SDEWorkspace objects server name value.
 void setUser(String user)
          Specifies the user name for the SDEWorkspace object's associated ArcSDE database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDEWorkspace

public SDEWorkspace()
Constructs an instance of a SDEWorkspace object. Example:
SDEWorkspace sdeWorkspace = new SDEWorkspace();

Method Detail

setName

public void setName(String name)
Sets the SDEWorkspace object's name value. Example:
sdeWorkspace.setName("sdeWork");

Parameters:
name - the name value.
See Also:
getName()

setDatabase

public void setDatabase(String database)
Sets the SDEWorkspace object's database name value. Example:
sdeWorkspace.setDatabase("world");

Parameters:
database - the database name value.
See Also:
getDatabase()

setServer

public void setServer(String server)
Sets the SDEWorkspace objects server name value. Example: >
sdeWorkspace.setServer("Server1");

Parameters:
server - the server anme value.
See Also:
getServer()

setInstance

public void setInstance(String instance)
Sets the SDEWorkspace objects SDE database instance value. Example:
sdeWorkspace.setInstance("sde:oracle");

Parameters:
instance - the database instance value.
See Also:
getInstance()

setGeoIndexDir

public void setGeoIndexDir(String geoIndexDir)
Specifies the directory where the geocoding index is to be built. Example:
sdeWorkspace.setGeoIndexDir("C:/ArcIMS/geoIndex/dir");

Parameters:
geoIndexDir - the geocoding index directory value.
See Also:
getGeoIndexDir()

setPassword

public void setPassword(String password)
Specifies the password for the SDEWorkspace object's associated ArcSDE database. Example:
sdeWorkspace.setPassword("secretPassword");

Parameters:
password - the password value.
See Also:
getPassword()

setUser

public void setUser(String user)
Specifies the user name for the SDEWorkspace object's associated ArcSDE database. Example:
sdeWorkspace.setUser("user1");

Parameters:
user - the username value.
See Also:
getUser()

getName

public String getName()
Returns the SDEWorkspace object's name value. Example:
String name = sdeWorkspace.getName();

Returns:
String
See Also:
setName(java.lang.String)

getDataBase

public String getDataBase()
Deprecated. As of ArcIMS 9.3 Java Connector, replaced by getDatabase().

Returns the SDEWorkspace objects ArcSDE database name value. Example:
String database = sdeWorkspace.getDataBase();

Returns:
String
See Also:
setDatabase(java.lang.String)

getDatabase

public String getDatabase()
Returns the SDEWorkspace objects ArcSDE database name value. Example:
String database = sdeWorkspace.getDataBase();

Returns:
String
See Also:
setDatabase(java.lang.String)

getServer

public String getServer()
Returns the SDEWorkspace objects server name value. Example:
String server = sdeWorkspace.getServer();

Returns:
String
See Also:
setServer(java.lang.String)

getInstance

public String getInstance()
Returns the SDEWorkspace objects ArcSDE database instance value. Example:
String instance = sdeWorkspace.getInstance();

Returns:
String
See Also:
setInstance(java.lang.String)

getGeoIndexDir

public String getGeoIndexDir()
Returns the SDEWorkspace objects GEOIndex's directory value. Example:
String geoIndex = sdeWorkspace.getGeoIndexDir();

Returns:
String
See Also:
setGeoIndexDir(java.lang.String)

getPassword

public String getPassword()
Returns the SDEWorkspace objects ArcSDE database password value. Example:
String password = sdeWorkspace.getPassword();

Returns:
String
See Also:
setPassword(java.lang.String)

getUser

public String getUser()
Returns the SdeWorkspace objects ArcSDE database user name value. Example:
String user = sdeWorkspace.getUser();

Returns:
String
See Also:
setUser(java.lang.String)

setEncrypted

public void setEncrypted(boolean value)
When set to true the password for the ArcSDE instance in encrypted. Example:
sdeWorkspace.setEncrypted(false);

Parameters:
value - the encryption value.
See Also:
isEncrypted()

isEncrypted

public boolean isEncrypted()
Returns true if the password encryption property is set to true. Example:
 if(sdeWorkspace.isEncrypted() == true){
  sdeWorkspace.setEncrypted(false);
 }
 

Returns:
boolean
See Also:
setEncrypted(boolean)