Package org.apache.tomcat.jdbc.pool
Class PoolProperties.InterceptorProperty
- java.lang.Object
-
- org.apache.tomcat.jdbc.pool.PoolProperties.InterceptorProperty
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- PoolProperties
public static class PoolProperties.InterceptorProperty extends java.lang.Object implements java.io.SerializableRepresents a property for a JDBC interceptor.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InterceptorProperty(java.lang.String name, java.lang.String value)Constructs an InterceptorProperty with the given name and value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetName()Returns the property name.java.lang.StringgetValue()Returns the property value.booleangetValueAsBoolean(boolean def)Returns the property value as a boolean.bytegetValueAsByte(byte def)Returns the property value as a byte.chargetValueAschar(char def)Returns the property value as a char.doublegetValueAsDouble(double def)Returns the property value as a double.floatgetValueAsFloat(float def)Returns the property value as a float.intgetValueAsInt(int def)Returns the property value as an int.longgetValueAsLong(long def)Returns the property value as a long.shortgetValueAsShort(short def)Returns the property value as a short.inthashCode()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the property name.- Returns:
- the property name
-
getValue
public java.lang.String getValue()
Returns the property value.- Returns:
- the property value
-
getValueAsBoolean
public boolean getValueAsBoolean(boolean def)
Returns the property value as a boolean.- Parameters:
def- the default value if the property is null or invalid- Returns:
- the boolean value
-
getValueAsInt
public int getValueAsInt(int def)
Returns the property value as an int.- Parameters:
def- the default value if the property is null or invalid- Returns:
- the int value
-
getValueAsLong
public long getValueAsLong(long def)
Returns the property value as a long.- Parameters:
def- the default value if the property is null or invalid- Returns:
- the long value
-
getValueAsByte
public byte getValueAsByte(byte def)
Returns the property value as a byte.- Parameters:
def- the default value if the property is null or invalid- Returns:
- the byte value
-
getValueAsShort
public short getValueAsShort(short def)
Returns the property value as a short.- Parameters:
def- the default value if the property is null or invalid- Returns:
- the short value
-
getValueAsFloat
public float getValueAsFloat(float def)
Returns the property value as a float.- Parameters:
def- the default value if the property is null or invalid- Returns:
- the float value
-
getValueAsDouble
public double getValueAsDouble(double def)
Returns the property value as a double.- Parameters:
def- the default value if the property is null or invalid- Returns:
- the double value
-
getValueAschar
public char getValueAschar(char def)
Returns the property value as a char.- Parameters:
def- the default value if the property is null or invalid- Returns:
- the char value
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-