|
|||||||||
| 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 information for the data source connection.
| Method Summary | |
|---|---|
PropertyBag |
getAttributes()
Returns the property bag for the data source connection. |
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. |
void |
setAttributes(PropertyBag attributes)
Sets the property bag for the data source connection. |
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. |
| Method Detail |
|---|
PropertyBag getAttributes()
Returns the property bag for the data source connection.
PropertyBag object.ConnectionInfoKind getKind()
Returns the kind of connection. For example, connection kinds include SQL, query, meta data, database file, and Crystal Report Query Engine (CRQE).
ConnectionInfoKind object.java.lang.String getPassword()
Returns the password used to connect to the data source.
String.java.lang.String getUserName()
Returns the user name used to connect to the data source.
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)
Sets the property bag for the data source connection.
attributes - The property bag as a PropertyBag
object.void setKind(ConnectionInfoKind kind)
Sets the kind of connection. For example, connection kinds include SQL, query, meta data, database file, and Crystal Report Query Engine (CRQE).
kind - The connection kind as a
ConnectionInfoKind object.void setPassword(java.lang.String password)
Sets the password used to connect to the data source.
password - The password as a String.void setUserName(java.lang.String userName)
Sets the user name used to connect to the data source.
userName - The user name as a String.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||