Class PoolProperties.InterceptorProperty
java.lang.Object
org.apache.tomcat.jdbc.pool.PoolProperties.InterceptorProperty
- All Implemented Interfaces:
Serializable
- Enclosing class:
PoolProperties
Represents a property for a JDBC interceptor.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInterceptorProperty(String name, String value) Constructs an InterceptorProperty with the given name and value. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Returns the property name.getValue()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()
-
Constructor Details
-
InterceptorProperty
-
-
Method Details
-
getName
-
getValue
-
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
-
equals
-