Package org.apache.derby.client.am
Class FailedProperties40
- java.lang.Object
-
- org.apache.derby.client.am.FailedProperties40
-
public class FailedProperties40 extends java.lang.ObjectClassFailedProperties40is a helper class forjava.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:
SQLClientInfoException,FailedProperties40
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashMap<java.lang.String,java.sql.ClientInfoStatus>failedProps_private java.lang.StringfirstKey_private java.lang.StringfirstValue_
-
Constructor Summary
Constructors Constructor Description FailedProperties40(java.util.Properties props)Creates a newFailedProperties40instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFirstKey()getFirstKeyreturns the first property key.java.lang.StringgetFirstValue()getFirstValuereturns the first property value.java.util.Map<java.lang.String,java.sql.ClientInfoStatus>getProperties()getPropertiesprovides aMap<String,ClientInfoStatus>object describing the failed properties (as specified in the javadoc for java.sql.SQLClientInfoException).static java.util.PropertiesmakeProperties(java.lang.String name, java.lang.String value)Helper method that creates a Propery object with the name-value pair given as arguments.
-
-
-
Constructor Detail
-
FailedProperties40
public FailedProperties40(java.util.Properties props)
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 Detail
-
makeProperties
public static java.util.Properties makeProperties(java.lang.String name, java.lang.String value)Helper method that creates a Propery object with the name-value pair given as arguments.- Parameters:
name- property keyvalue- property value- Returns:
- the created
Propertiesobject
-
getProperties
public java.util.Map<java.lang.String,java.sql.ClientInfoStatus> getProperties()
getPropertiesprovides 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
public java.lang.String getFirstKey()
getFirstKeyreturns the first property key. Used when SQLClientInfoException is thrown with a parameterized error message.- Returns:
- a
Stringvalue
-
getFirstValue
public java.lang.String getFirstValue()
getFirstValuereturns the first property value. Used when SQLClientInfoException is thrown with a parameterized error message.- Returns:
- a
Stringvalue
-
-