Class FailedProperties40
java.lang.Object
org.apache.derby.iapi.jdbc.FailedProperties40
Class
FailedProperties40 is a helper class for the
SQLClientInfoException. It provides convenient access to data
that is needed when constructing SQLClientInfoExceptions. Should
be kept in sync with its client side counter part
(org.apache.derby.client.am.FailedProperties40).- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HashMap<String, ClientInfoStatus> private final Stringprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionFailedProperties40(Properties props) Creates a newFailedProperties40instance. -
Method Summary
Modifier and TypeMethodDescriptiongetFirstKeyreturns the first property key.getFirstValuereturns the first property value.getPropertiesprovides aMap&glt;String,ClientInfoStatus>object describing the failed properties (as specified in the javadoc for java.sql.SQLClientInfoException).static PropertiesmakeProperties(String name, String value) Helper method that creates a Propery object from the name-value pair given as arguments.
-
Field Details
-
failedProps_
-
firstKey_
-
firstValue_
-
-
Constructor Details
-
FailedProperties40
Creates a newFailedProperties40instance. Since Derby doesn't support any properties, all the keys from thepropsparameter are added to thefailedProps_member with value REASON_UNKNOWN_PROPERTY.- Parameters:
props- aPropertiesvalue. Can be null or empty
-
-
Method Details
-
makeProperties
Helper method that creates a Propery object from the name-value pair given as arguments.- Parameters:
name- property keyvalue- property value- Returns:
- the created
Propertiesobject
-
getProperties
getPropertiesprovides aMap&glt;String,ClientInfoStatus>object describing the failed properties (as specified in the javadoc for java.sql.SQLClientInfoException).- Returns:
- a
Map<String,ClientInfoStatus>object with the failed property keys and the reason why each failed
-
getFirstKey
getFirstKeyreturns the first property key. Used when SQLClientInfoException is thrown with a parameterized error message.- Returns:
- a
Stringvalue
-
getFirstValue
getFirstValuereturns the first property value. Used when SQLClientInfoException is thrown with a parameterized error message.- Returns:
- a
Stringvalue
-