public class PreparedStatementHelper extends Object
| Constructor and Description |
|---|
PreparedStatementHelper(PreparedStatement rs) |
| Modifier and Type | Method and Description |
|---|---|
PreparedStatement |
GetPreparedStatement() |
void |
setBoolean(int i,
boolean value)
Sets a non null boolean.
|
void |
setDate(int i,
Date value)
Sets a partial date (year, month and day)
|
void |
setDateTime(int i,
Date value)
Sets a full date (from seconds to year)
|
void |
setDouble(int i,
double value)
Sets a non null double.
|
void |
setFloat(int i,
float value)
Sets a non null float.
|
void |
setInt(int i,
int value)
Sets a non null int.
|
void |
setInteger(int i,
Integer value)
Sets a possibly null integer
|
void |
setString(int i,
String value)
Sets a string (null become "").
|
void |
setTime(int i,
Date value)
Sets a partial date (hour, minute, second) from the database.
|
public PreparedStatementHelper(PreparedStatement rs)
public PreparedStatement GetPreparedStatement()
public void setBoolean(int i,
boolean value)
throws SQLException
i - value - SQLExceptionpublic void setDateTime(int i,
Date value)
throws SQLException
value - i - SQLExceptionpublic void setDate(int i,
Date value)
throws SQLException
value - i - SQLExceptionpublic void setDouble(int i,
double value)
throws SQLException
value - i - SQLExceptionpublic void setFloat(int i,
float value)
throws SQLException
value - i - SQLExceptionpublic void setInt(int i,
int value)
throws SQLException
value - i - SQLExceptionpublic void setInteger(int i,
Integer value)
throws SQLException
value - i - SQLExceptionpublic void setString(int i,
String value)
throws SQLException
value - i - SQLExceptionpublic void setTime(int i,
Date value)
throws SQLException
value - i - SQLExceptionCopyright © 2007-2021 Universidade Federal do ParanĂ¡ - UFPR. All Rights Reserved.