|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sybase.persistence.ConnectionProfile
public class ConnectionProfile
Field Summary | |
---|---|
protected ConnectionProfile |
__syncProfile
|
protected java.lang.Object |
__wrapperData
|
Constructor Summary | |
---|---|
ConnectionProfile()
Construct a ConnectionProfile instance. |
|
ConnectionProfile(java.lang.String name)
Construct a ConnectionProfile instance with the specified profile name. |
Method Summary | |
---|---|
void |
delete()
Delete the file saved by Save() method. |
static ConnectionProfile |
find(java.lang.String name)
Construct a ConnectionProfile object by searching file content. |
void |
fromSyncConnection(Connection conn)
Set properties values based on conn parameter. |
boolean |
getBoolean(java.lang.String name)
Get a boolean value of connection property by name. |
boolean |
getBoolean(java.lang.String name,
boolean defaultValue)
Get a boolean value of connection property by name. |
int |
getCacheSize()
get the property value of cacheSize |
java.lang.String |
getDomainName()
get the property value of domainName |
int |
getInt(java.lang.String name)
Get an int value of connection property by name. |
int |
getInt(java.lang.String name,
int defaultValue)
Get an int value of connection property by name. |
java.lang.String |
getName()
Returns the profile name. |
java.lang.String |
getNetworkProtocol()
get the property value of mobiLinkStreamType |
java.lang.String |
getNetworkStreamParams()
get the property value of mobiLinkStreamParams |
int |
getPageSize()
get the property value of pageSize |
java.lang.String |
getPassword()
get the property value of password |
int |
getPortNumber()
get the property value of mobiLinkPort |
java.lang.String |
getProperty(java.lang.String name)
Get connection property value by name. |
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Get connection property value by name. |
java.lang.String |
getRequiredProperty(java.lang.String name)
Get connection property value by name.If not found, throws out a PersistenceException. |
java.lang.String |
getServerName()
get the property value of mobiLinkHost |
java.lang.String |
getString(java.lang.String name)
Get a property's string value |
java.lang.String |
getStringWithDefault(java.lang.String name,
java.lang.String defaultValue)
Get a string property's value. |
ConnectionProfile |
getSyncProfile()
Get the synchronization profile |
java.lang.String |
getUserName()
get the property value of userName |
java.lang.Object |
getWrapperData()
Sybase internal use only. |
ConnectionProfile |
initSyncProfile(ConnectionProfile _syncProfile)
Sybase internal use only. |
ConnectionProfile |
initWrapperData(java.lang.Object _wrapperData)
Sybase internal use only. |
static ConnectionProfile |
load(java.lang.String name)
Construct a ConnectionProfile object by searching file content. |
void |
save()
Save the connection profile information to the file. |
void |
setCacheSize(int cacheSize)
set the property value of cacheSize |
void |
setDefault(java.lang.String name,
java.lang.String value)
Set a property value if the property does not exist. |
void |
setDomainName(java.lang.String domainName)
set the property value of domainName |
void |
setEncryptionKey(java.lang.String value)
Set value for encryptionKey property. |
void |
setName(java.lang.String name)
Set the profile name. |
void |
setNetworkProtocol(java.lang.String mobiLinkStreamType)
set the property value of mobiLinkStreamType |
void |
setNetworkStreamParams(java.lang.String mobiLinkStreamParams)
set the property value of mobiLinkStreamParams |
void |
setPageSize(int pageSize)
set the property value of pageSize |
void |
setPassword(java.lang.String value)
set new value to password connection property.. |
void |
setPortNumber(int mobiLinkPort)
set the property value of mobiLinkPort |
void |
setProperty(java.lang.String name,
java.lang.String value)
Set new value to a property |
void |
setServerName(java.lang.String mobiLinkHost)
set the property value of mobiLinkHost |
void |
setString(java.lang.String name,
java.lang.String value)
Set new string value to a property |
void |
setSyncProfile(ConnectionProfile _syncProfile)
Set the synchronization profile |
void |
setUserName(java.lang.String value)
set new value to userName connection property. |
void |
setWrapperData(java.lang.Object _wrapperData)
Sybase internal use only. |
Connection |
toSyncConnection()
Return a Connection instance from ConnectionProfile properties. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ConnectionProfile __syncProfile
protected java.lang.Object __wrapperData
Constructor Detail |
---|
public ConnectionProfile()
public ConnectionProfile(java.lang.String name)
Method Detail |
---|
public static ConnectionProfile find(java.lang.String name)
name
- file name which contains connection profile information
public static ConnectionProfile load(java.lang.String name)
name
- file name which contains connection profile information
public void save()
public void delete()
public java.lang.String getName()
public java.lang.String getProperty(java.lang.String name)
name
- profile property name.public java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
name
- property namedefaultValue
- property default valuepublic java.lang.String getRequiredProperty(java.lang.String name)
name
- property namepublic boolean getBoolean(java.lang.String name)
public boolean getBoolean(java.lang.String name, boolean defaultValue)
public int getInt(java.lang.String name)
public int getInt(java.lang.String name, int defaultValue)
public void setName(java.lang.String name)
public void setDefault(java.lang.String name, java.lang.String value)
public void setProperty(java.lang.String name, java.lang.String value)
public void setString(java.lang.String name, java.lang.String value)
public java.lang.String getString(java.lang.String name)
public java.lang.String getStringWithDefault(java.lang.String name, java.lang.String defaultValue)
public void setEncryptionKey(java.lang.String value)
public ConnectionProfile getSyncProfile()
public void setSyncProfile(ConnectionProfile _syncProfile)
public ConnectionProfile initSyncProfile(ConnectionProfile _syncProfile)
public ConnectionProfile initWrapperData(java.lang.Object _wrapperData)
public java.lang.Object getWrapperData()
public void setWrapperData(java.lang.Object _wrapperData)
public void setUserName(java.lang.String value)
public void setPassword(java.lang.String value)
public java.lang.String getUserName()
public java.lang.String getPassword()
public java.lang.String getNetworkProtocol()
public void setNetworkProtocol(java.lang.String mobiLinkStreamType)
public java.lang.String getNetworkStreamParams()
public void setNetworkStreamParams(java.lang.String mobiLinkStreamParams)
public java.lang.String getServerName()
public void setServerName(java.lang.String mobiLinkHost)
public int getPortNumber()
public void setPortNumber(int mobiLinkPort)
public java.lang.String getDomainName()
public void setDomainName(java.lang.String domainName)
public int getPageSize()
public void setPageSize(int pageSize)
public int getCacheSize()
public void setCacheSize(int cacheSize)
public Connection toSyncConnection()
public void fromSyncConnection(Connection conn)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |