Java CallableStatement getTime() method with example

java.sql.CallableStatement.getTime() method Retrieves the value of the designated JDBC
TIME parameter as a
java.sql.Time object.

CallableStatement getTime() method Signature

Time getTime(int parameterIndex) throws SQLException


parameterIndex – the first parameter is 1, the second is 2, and so on


the parameter value. If the value is SQL
NULL, the result is


SQLException – if the parameterIndex is not valid; if a database access error occurs or this method is called on a closed

See Also:

setTime(java.lang.String, java.sql.Time)

java.sql.CallableStatement.getTime() method Implementation

Time getTime(int parameterIndex) throws SQLException{

CallableStatement getTime() method Example


public class GetTimeMethodExample {

	public static void main(String[] args) {




Ask your questions in eHowToNow Forum

Post your technical, non-technical doubts, questions in our site. Get answer as soon as possible, meanwhile you can help others by answering, unanswered questions.
To Ask new Question : Ask Question
Check our existing discussions : Questions & Answers

  1. Java CallableStatement getObject() method with example 1
  2. Java DragGestureEvent getDragOrigin() method with example
  3. Java _DynStructStub insert_ushort() method with example
  4. Java BasicSeparatorUI uninstallDefaults() method with example
  5. Java NavigationFilter.FilterBypass setDot() method with example
  6. Java PrinterState getStringTable() method with example
  7. Java – LambdaConversionException Exception
  8. Java DateTimeParseException getParsedString() method with example
  9. Java Joinable setMatchColumn() method with example 1
  10. Java MBeanServerNotificationFilter getEnabledObjectNames() method with example
  11. Java CharBuffer chars() method with example
  12. Java JSplitPane getOrientation() method with example
  13. Java RSAPrivateCrtKey getPrimeExponentQ() method with example
  14. Java – ZoneRulesException Exception
  15. Java JTextComponent cut() method with example

Be the first to comment