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

Parameters:

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

Returns:

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

Throws:

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

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

package com.ehowtonow.java.sql.callablestatement;

public class GetTimeMethodExample {

	public static void main(String[] args) {

	}

}

Output


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 ObjectReferenceTemplate orb_id() method with example
  2. Java InputMethodContext enableClientWindowNotification() method with example
  3. Java FileSystems newFileSystem() method with example
  4. Java JTextArea replaceRange() method with example
  5. Java DocumentEvent getChange() method with example
  6. Java – ValueFactory Interface
  7. Java – Dialog.AccessibleAWTDialog Class
  8. Java MouseListener mouseExited() method with example
  9. Java Name getQualifiedName() method with example
  10. Java BasicScrollBarUI getTrackBounds() method with example
  11. Java ComponentColorModel getRed() method with example 1
  12. Java – MediaTracker Class
  13. Java JComboBox setSelectedItem() method with example
  14. Java ImageIO getReaderFileSuffixes() method with example
  15. Java ULongLongSeqHelper insert() method with example

Be the first to comment

Leave a Reply