public class WorkspaceConnectionInfo
extends java.lang.Object
implements java.io.Serializable
Workspace connection information.
Used to describe workspace-related information, workspace type, user name, password, and so on.
| Modifier and Type | Field and Description | 
|---|---|
| java.lang.String | databaseThe name of the database where the workspace is connected. | 
| java.lang.String | driverThe name of the driver that uses the ODBC connection. | 
| java.lang.String | nameThe name of the workspace in the database. | 
| java.lang.String | passwordAccesses the workspace to connect to the database or file password. | 
| java.lang.String | serverDatabase server or workspace file path. | 
| java.lang.String | typeThe type of workspace. | 
| java.lang.String | usernameThe user name of the database. | 
| Constructor and Description | 
|---|
| WorkspaceConnectionInfo() | 
| WorkspaceConnectionInfo(WorkspaceConnectionInfo workspaceConnectInfo) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(java.lang.Object another)Judges whether another object is equal. | 
| int | hashCode()Generates a hash code. | 
| static boolean | isDatabaseWorkspace(java.lang.String connStr) | 
| static WorkspaceConnectionInfo | parse(java.lang.String connStr)Parses the workspace connection object according to the connection string. | 
| static WorkspaceConnectionInfo | parse(java.lang.String connStr, boolean handleUnCanonicalPath)Parses the workspace connection object according to the connection string. | 
| static java.lang.String | safelyHandleUnCanonicalPath(java.lang.String connStr) | 
| java.lang.String | toStandardString()Converts the link information to a string. | 
| java.lang.String | toString()Converts the link information to a string. | 
public java.lang.String server
public java.lang.String username
public java.lang.String password
public java.lang.String type
public java.lang.String database
public java.lang.String name
public java.lang.String driver
public WorkspaceConnectionInfo(WorkspaceConnectionInfo workspaceConnectInfo)
public WorkspaceConnectionInfo()
public static WorkspaceConnectionInfo parse(java.lang.String connStr)
Parses the workspace connection object according to the connection string. String connection format:
1 server=xx.xx.xx.xx;database=databaseName;driver=oracle;username=xxx;password=xxx
2 /xx/xx/xx.sxw
3 /xx/xx/xx.sxwu
connStr - connection string.java.lang.IllegalArgumentExceptionpublic static WorkspaceConnectionInfo parse(java.lang.String connStr, boolean handleUnCanonicalPath)
Parses the workspace connection object according to the connection string. String connection format:
1 server=xx.xx.xx.xx;database=databaseName;driver=oracle;username=xxx;password=xxx
2 /xx/xx/xx.sxw
3 /xx/xx/xx.sxwu
connStr - connection string.handleUnCanonicalPath - whether to handle relative pathspublic static boolean isDatabaseWorkspace(java.lang.String connStr)
public static java.lang.String safelyHandleUnCanonicalPath(java.lang.String connStr)
public int hashCode()
Generates a hash code.
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object another)
Judges whether another object is equal.
equals in class java.lang.Objectanother - another object.public java.lang.String toString()
Converts the link information to a string.
Generated string format:server=xx.xx.xx.xx,database=databaseName,driver=oracle,username=xxx,password=xxx
toString in class java.lang.Objectpublic java.lang.String toStandardString()
Converts the link information to a string.
Generated string format:server=xx.xx.xx.xx;database=databaseName;driver=oracle;username=xxx;password=xxx