Java CallableStatement getTimestamp() method with example

java.sql.CallableStatement.getTimestamp() method Retrieves the value of the designated JDBC
TIMESTAMP parameter as a
java.sql.Timestamp object.

CallableStatement getTimestamp() method Signature

Timestamp getTimestamp(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:

setTimestamp(java.lang.String, java.sql.Timestamp)

java.sql.CallableStatement.getTimestamp() method Implementation

Timestamp getTimestamp(int parameterIndex) throws SQLException{
}

CallableStatement getTimestamp() method Example

package com.ehowtonow.java.sql.callablestatement;

public class GetTimestampMethodExample {

	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 AbstractSelector isOpen() method with example
  2. Java – BasicComboBoxRenderer.UIResource Class
  3. Java DataOutput writeShort() method with example
  4. Java – SoftReference Class
  5. Java BasicTextUI paint() method with example
  6. Java MetalSliderUI getTrackLength() method with example
  7. Java – Transmitter Interface
  8. Java CompositeType keySet() method with example
  9. Java RMIConnectorServer start() method with example
  10. Java ImageReader setInput() method with example
  11. Java JPasswordField getUIClassID() method with example
  12. Java TextHitInfo toString() method with example
  13. Java NotificationListener handleNotification() method with example
  14. Java Component update() method with example
  15. How to make read-only file in Java

Be the first to comment