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 ZoneView setMaxZonesLoaded() method with example
  2. Java VetoableChangeSupport fireVetoableChange() method with example
  3. Java List processActionEvent() method with example
  4. Java JComboBox configureEditor() method with example
  5. Java KeyStoreSpi engineSetKeyEntry() method with example 1
  6. Java VisibilityHelper insert() method with example
  7. Java BigInteger signum() method with example
  8. Java BeanContextChildSupport getBeanContextChildPeer() method with example
  9. Java URISyntaxException getInput() method with example
  10. Java CubicCurve2D.Double getX1() method with example
  11. Java JTree.AccessibleJTree.AccessibleJTreeNode isFocusTraversable() method with example
  12. Java StreamReaderDelegate getElementText() method with example
  13. Java Node getOwnerDocument() method with example
  14. Java IORInfoOperations manager_id() method with example
  15. Java AbstractButton getItemListeners() method with example

Be the first to comment