|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IConnectionInfo
This interface enables you to get and set properties of a data source connection. The properties may include logon credentials, a connection type (such as SQL, database file, or Crystal Report Query Engine), the database DLL or a connection string, among others.
IConnection.setConnectionInfo(IConnectionInfo)| Nested Class Summary | |
|---|---|
static class |
IConnectionInfo.DataSourceLanguageLevel
For internal use only. |
| Method Summary | |
|---|---|
PropertyBag |
getAttributes()
Gets additional properties of the data source connection. |
IConnectionInfo.DataSourceLanguageLevel |
getDataSourceLanguageLevel()
For internal use only. |
ConnectionInfoKind |
getKind()
Returns the kind of connection. |
java.lang.String |
getPassword()
Returns the password used to connect to the data source. |
java.lang.String |
getUserName()
Returns the user name used to connect to the data source. |
boolean |
isMatch(IConnectionInfo info,
boolean complateMatching)
Checks to see if two IConnectionInfo objects match. |
boolean |
isUniverseConnection()
For internal use only |
void |
setAttributes(PropertyBag attributes)
Sets additional properties for the data source connection. |
void |
setDataSourceLanguageLevel(IConnectionInfo.DataSourceLanguageLevel dataSourceLanguageLevel)
For internal use only. |
void |
setKind(ConnectionInfoKind kind)
Sets the kind of connection. |
void |
setPassword(java.lang.String password)
Sets the password used to connect to the data source. |
void |
setUserName(java.lang.String userName)
Sets the user name used to connect to the data source. |
boolean |
shouldDisplayCustomDBConfiguration()
For internal use only. |
boolean |
shouldDisplayOriginalDBConfiguration()
For internal use only. |
| Method Detail |
|---|
PropertyBag getAttributes()
PropertyBag object.PropertyBagHelper.CONNINFO_*ConnectionInfoKind getKind()
ConnectionInfoKind object.ConnectionInfoKindjava.lang.String getPassword()
String.java.lang.String getUserName()
String.
boolean isMatch(IConnectionInfo info,
boolean complateMatching)
Checks to see if two IConnectionInfo objects match.
If complateMatching is true, all members of the object are compared.
When all members of the object have been compared, a value of true is returned if all members
are exactly the same. If set to false, all members of the object are compared
and a value of true is returned if the mismatch is caused by one of the comparing members
having an empty string and all of the remaining kinds of members match.
If strings are being compared, the comparison is not case sensitive.
info - the IConnectionInfo object that is compared to the one you are using.complateMatching - defaults to true
void setAttributes(PropertyBag attributes)
attributes - The properties as a PropertyBag object.PropertyBagHelper.CONNINFO_*void setKind(ConnectionInfoKind kind)
kind - The connection kind as a ConnectionInfoKind object.ConnectionInfoKindvoid setPassword(java.lang.String password)
password - The password as a String.void setUserName(java.lang.String userName)
userName - The user name as a String.IConnectionInfo.DataSourceLanguageLevel getDataSourceLanguageLevel()
void setDataSourceLanguageLevel(IConnectionInfo.DataSourceLanguageLevel dataSourceLanguageLevel)
boolean shouldDisplayOriginalDBConfiguration()
boolean shouldDisplayCustomDBConfiguration()
boolean isUniverseConnection()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||