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
- SQLException
public void setDateTime(int i, Date value) throws SQLException
value
- i
- SQLException
public void setDate(int i, Date value) throws SQLException
value
- i
- SQLException
public void setDouble(int i, double value) throws SQLException
value
- i
- SQLException
public void setFloat(int i, float value) throws SQLException
value
- i
- SQLException
public void setInt(int i, int value) throws SQLException
value
- i
- SQLException
public void setInteger(int i, Integer value) throws SQLException
value
- i
- SQLException
public void setString(int i, String value) throws SQLException
value
- i
- SQLException
public void setTime(int i, Date value) throws SQLException
value
- i
- SQLException
Copyright © 2007-2021 Universidade Federal do ParanĂ¡ - UFPR. All Rights Reserved.