public class FailedProperties40
extends java.lang.Object
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).SQLClientInfoException
,
FailedProperties40
Modifier and Type | Field | Description |
---|---|---|
private java.util.HashMap<java.lang.String,java.sql.ClientInfoStatus> |
failedProps_ |
|
private java.lang.String |
firstKey_ |
|
private java.lang.String |
firstValue_ |
Constructor | Description |
---|---|
FailedProperties40(java.util.Properties props) |
Creates a new
FailedProperties40 instance. |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getFirstKey() |
getFirstKey returns the first property key. |
java.lang.String |
getFirstValue() |
getFirstValue returns the first property value. |
java.util.Map<java.lang.String,java.sql.ClientInfoStatus> |
getProperties() |
getProperties provides a
Map&glt;String,ClientInfoStatus> object describing the
failed properties (as specified in the javadoc for
java.sql.SQLClientInfoException). |
static java.util.Properties |
makeProperties(java.lang.String name,
java.lang.String value) |
Helper method that creates a Propery object from the name-value
pair given as arguments.
|
private final java.util.HashMap<java.lang.String,java.sql.ClientInfoStatus> failedProps_
private final java.lang.String firstKey_
private final java.lang.String firstValue_
public FailedProperties40(java.util.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 java.util.Properties makeProperties(java.lang.String name, java.lang.String value)
name
- property keyvalue
- property valueProperties
objectpublic java.util.Map<java.lang.String,java.sql.ClientInfoStatus> getProperties()
getProperties
provides a
Map&glt;String,ClientInfoStatus>
object describing the
failed properties (as specified in the javadoc for
java.sql.SQLClientInfoException).Map<String,ClientInfoStatus>
object with
the failed property keys and the reason why each failedpublic java.lang.String getFirstKey()
getFirstKey
returns the first property key. Used
when SQLClientInfoException is thrown with a parameterized error
message.String
valuepublic java.lang.String getFirstValue()
getFirstValue
returns the first property value. Used
when SQLClientInfoException is thrown with a parameterized error
message.String
valueApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.