- All Implemented Interfaces:
Param
, org.cactoos.Text
public final class DecimalOf
extends Object
implements Param
Decimal param.
- Since:
- 0.2
-
Constructor Summary
Constructors
-
Method Summary
void
Set the PreparedStatement with data.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
DecimalOf
Ctor.
- Parameters:
name
- The id
value
- The data
-
DecimalOf
Ctor.
- Parameters:
name
- The id
value
- The data
-
Method Details
-
name
Description copied from interface: Param
Get the data name.
- Specified by:
name
in interface Param
- Returns:
- The name
-
prepare
Description copied from interface: Param
Set the PreparedStatement with data.
- Specified by:
prepare
in interface Param
- Parameters:
stmt
- The PreparedStatement
index
- The position of the parameter in the PreparedStatement
- Throws:
Exception
- If fails
-
asString
- Specified by:
asString
in interface org.cactoos.Text
- Throws:
Exception