Logo Search packages:      
Sourcecode: mysql-connector-java version File versions  Download package

void com::mysql::jdbc::ServerPreparedStatement::setTimestamp ( int  parameterIndex,
java.sql.Timestamp  x,
Calendar  cal 
) throws SQLException [inline]

Set a parameter to a java.sql.Timestamp value. The driver converts this to a SQL TIMESTAMP value when it sends it to the database.

parameterIndex the first parameter is 1, the second is 2, ...
x the parameter value
cal the timezone to use
SQLException if a database-access error occurs.

Reimplemented from com::mysql::jdbc::PreparedStatement.

Definition at line 2125 of file ServerPreparedStatement.java.

            setTimestampInternal(parameterIndex, x, cal, cal.getTimeZone(), true);

Generated by  Doxygen 1.6.0   Back to index