public class DBConnectionToken extends Token
Modifier and Type | Class and Description |
---|---|
static class |
DBConnectionToken.DBConnectionType
The database connection type.
|
Modifier and Type | Field and Description |
---|---|
protected java.sql.Connection |
_value |
static Type |
DBCONNECTION
The DBConnection type: the least upper bound of all the cryptographic key
types.
|
Constructor and Description |
---|
DBConnectionToken()
Construct an empty token.
|
DBConnectionToken(java.sql.Connection value)
Construct a token with a reference to the specified connection.
|
Modifier and Type | Method and Description |
---|---|
static DBConnectionToken |
convert(Token token)
Convert the specified token into an instance of DBConnectionToken.
|
boolean |
equals(java.lang.Object object)
Return true if the argument is an instance of DBConnectionToken and its
contained object is equal to the object contained in this token, as
tested by the equals() method of the contained object.
|
Type |
getType()
Return the type of this token.
|
java.sql.Connection |
getValue()
Return the java.sql.connection.
|
int |
hashCode()
Return a hash code value for this token.
|
java.lang.String |
toString()
Return the value of this token as a string that can be parsed by the
expression language to recover a token with the same value.
|
add, addReverse, divide, divideReverse, isCloseTo, isCloseTo, isEqualTo, isNil, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, pow, subtract, subtractReverse, zero, zeroReturnType
public static final Type DBCONNECTION
protected java.sql.Connection _value
public DBConnectionToken()
public DBConnectionToken(java.sql.Connection value) throws IllegalActionException
IllegalActionException
- If the argument is not of the appropriate type (may be
thrown by derived classes, but is not thrown here).public static DBConnectionToken convert(Token token) throws IllegalActionException
token
- The token to be converted to a DBConnectionToken.IllegalActionException
- If the conversion cannot be carried out.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- An instance of Object.public Type getType()
getType
in class Token
DBCONNECTION
, the least upper bound of all the database
connectionspublic java.sql.Connection getValue()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()