public class FailedProperties40 extends Object
FailedProperties40 is a helper class for
java.sql.SQLClientInfoException. It provides
convenient access to data that is needed when constructing
those exceptions. Should be kept in sync with its embedded
counter part.SQLClientInfoException,
com.pivotal.gemfirexd.internal.iapi.jdbc.FailedProperties40| Constructor and Description |
|---|
FailedProperties40(Properties props)
Creates a new
FailedProperties40 instance. |
| Modifier and Type | Method and Description |
|---|---|
String |
getFirstKey()
getFirstKey returns the first property key. |
String |
getFirstValue()
getFirstValue returns the first property value. |
Map<String,ClientInfoStatus> |
getProperties()
getProperties provides a
Map object describing the
failed properties (as specified in the javadoc for
java.sql.SQLClientInfoException). |
static Properties |
makeProperties(String name,
String value)
Helper method that creates a Propery object with the name-value
pair given as arguments.
|
public FailedProperties40(Properties props)
FailedProperties40 instance. Since
Derby doesn't support any properties, all the keys from the
props parameter are added to the
failedProps_ member with value
REASON_UNKNOWN_PROPERTY.props - a Properties value. Can be null or emptypublic static Properties makeProperties(String name, String value)
name - property keyvalue - property valueProperties objectpublic Map<String,ClientInfoStatus> getProperties()
getProperties provides a
Map object describing the
failed properties (as specified in the javadoc for
java.sql.SQLClientInfoException).Map object with
the failed property keys and the reason why each failedpublic String getFirstKey()
getFirstKey returns the first property key. Used
when SQLClientInfoException is thrown with a parameterized error
message.String valuepublic String getFirstValue()
getFirstValue returns the first property value. Used
when SQLClientInfoException is thrown with a parameterized error
message.String valueCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.