|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.crystaldecisions.sdk.occa.report.data.ConnectionInfo
public class ConnectionInfo
This object 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.
Whenever possible, use the IConnectionInfo interface to manipulate this object.
IConnection.setConnectionInfo(IConnectionInfo)| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.crystaldecisions.sdk.occa.report.data.IConnectionInfo |
|---|
IConnectionInfo.DataSourceLanguageLevel |
| Constructor Summary | |
|---|---|
ConnectionInfo()
|
|
ConnectionInfo(IConnectionInfo src)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone(boolean deepClone)
|
void |
copyTo(java.lang.Object destObject,
boolean deepCopy)
|
java.lang.Object |
createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
|
void |
endElement(java.lang.String eleName,
java.util.Map objState)
|
PropertyBag |
getAttributes()
Gets additional properties of the data source connection. |
java.lang.String |
getDatabaseName()
For internal use only. |
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 |
getServerName()
For internal use only. |
java.lang.String |
getUserName()
Returns the user name used to connect to the data source. |
boolean |
hasContent(java.lang.Object obj)
|
boolean |
isMatch(IConnectionInfo info,
boolean completeMatching)
Checks to see if two IConnectionInfo objects match. |
boolean |
isUniverseConnection()
For internal use only |
void |
readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
|
void |
save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
|
void |
save(XMLWriter writer,
XMLSerializationContext ctxt)
|
void |
saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
|
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. |
boolean |
skipWritingIdenticalObject()
For internal use only. |
void |
startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionInfo(IConnectionInfo src)
public ConnectionInfo()
| Method Detail |
|---|
public java.lang.Object clone(boolean deepClone)
public void copyTo(java.lang.Object destObject,
boolean deepCopy)
public java.lang.Object createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
public void endElement(java.lang.String eleName,
java.util.Map objState)
public PropertyBag getAttributes()
IConnectionInfo
getAttributes in interface IConnectionInfoPropertyBag object.PropertyBagHelper.CONNINFO_*public ConnectionInfoKind getKind()
IConnectionInfo
getKind in interface IConnectionInfoConnectionInfoKind object.ConnectionInfoKindpublic java.lang.String getPassword()
IConnectionInfo
getPassword in interface IConnectionInfoString.public java.lang.String getUserName()
IConnectionInfo
getUserName in interface IConnectionInfoString.public boolean hasContent(java.lang.Object obj)
public void readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
public void save(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
java.io.IOException
public void save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
throws java.io.IOException
java.io.IOException
public void saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
throws java.io.IOException
java.io.IOExceptionpublic void setAttributes(PropertyBag attributes)
IConnectionInfo
setAttributes in interface IConnectionInfoattributes - The properties as a PropertyBag object.PropertyBagHelper.CONNINFO_*public void setKind(ConnectionInfoKind kind)
IConnectionInfo
setKind in interface IConnectionInfokind - The connection kind as a ConnectionInfoKind object.ConnectionInfoKindpublic void setPassword(java.lang.String password)
IConnectionInfo
setPassword in interface IConnectionInfopassword - The password as a String.public void setUserName(java.lang.String userName)
IConnectionInfo
setUserName in interface IConnectionInfouserName - The user name as a String.
public void startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
public boolean skipWritingIdenticalObject()
public boolean isMatch(IConnectionInfo info,
boolean completeMatching)
IConnectionInfoChecks 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.
isMatch in interface IConnectionInfoinfo - the IConnectionInfo object that is compared to the one you are using.completeMatching - defaults to true
public java.lang.String getServerName()
public java.lang.String getDatabaseName()
public IConnectionInfo.DataSourceLanguageLevel getDataSourceLanguageLevel()
getDataSourceLanguageLevel in interface IConnectionInfopublic void setDataSourceLanguageLevel(IConnectionInfo.DataSourceLanguageLevel dataSourceLanguageLevel)
setDataSourceLanguageLevel in interface IConnectionInfopublic boolean shouldDisplayOriginalDBConfiguration()
shouldDisplayOriginalDBConfiguration in interface IConnectionInfopublic boolean shouldDisplayCustomDBConfiguration()
shouldDisplayCustomDBConfiguration in interface IConnectionInfopublic boolean isUniverseConnection()
isUniverseConnection in interface IConnectionInfo
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||