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

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

Set a parameter to a java.sql.Time value. The driver converts this to a SQL TIME value when it sends it to the database, using the given timezone.

parameterIndex the first parameter is 1...));
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 2049 of file ServerPreparedStatement.java.

References setTimeInternal().

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

Generated by  Doxygen 1.6.0   Back to index