Package org.apache.derby.client.am
Class FailedProperties40
java.lang.Object
org.apache.derby.client.am.FailedProperties40
Class
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.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HashMap
<String, ClientInfoStatus> private final String
private final String
-
Constructor Summary
ConstructorsConstructorDescriptionFailedProperties40
(Properties props) Creates a newFailedProperties40
instance. -
Method Summary
Modifier and TypeMethodDescriptiongetFirstKey
returns the first property key.getFirstValue
returns the first property value.getProperties
provides aMap<String,ClientInfoStatus>
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.
-
Field Details
-
failedProps_
-
firstKey_
-
firstValue_
-
-
Constructor Details
-
FailedProperties40
Creates a newFailedProperties40
instance. Since Derby doesn't support any properties, all the keys from theprops
parameter are added to thefailedProps_
member with value REASON_UNKNOWN_PROPERTY.- Parameters:
props
- aProperties
value. Can be null or empty
-
-
Method Details
-
makeProperties
Helper method that creates a Propery object with the name-value pair given as arguments.- Parameters:
name
- property keyvalue
- property value- Returns:
- the created
Properties
object
-
getProperties
getProperties
provides aMap<String,ClientInfoStatus>
object describing the failed properties (as specified in the javadoc for java.sql.SQLClientInfoException).- Returns:
- a
Map&glt;String,ClientInfoStatus>
object with the failed property keys and the reason why each failed
-
getFirstKey
getFirstKey
returns the first property key. Used when SQLClientInfoException is thrown with a parameterized error message.- Returns:
- a
String
value
-
getFirstValue
getFirstValue
returns the first property value. Used when SQLClientInfoException is thrown with a parameterized error message.- Returns:
- a
String
value
-