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


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:

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

java.sql.CallableStatement.getTimestamp() method Implementation

Timestamp getTimestamp(int parameterIndex) throws SQLException{

CallableStatement getTimestamp() method Example


public class GetTimestampMethodExample {

	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 Files newBufferedWriter() method with example 1
  2. Java – SynthInternalFrameUI Class
  3. Java XMLStreamWriter flush() method with example
  4. Java Map.Entry equals() method with example
  5. Java DefaultComboBoxModel getElementAt() method with example
  6. java.time Package
  7. Java Sequence getDivisionType() method with example
  8. Java InputStream read_longlong_array() method with example
  9. Java DateFormat isLenient() method with example
  10. Java CallableStatement setObject() method with example 1
  11. Java FileSystemView createNewFolder() method with example
  12. Java ImageWriter writeInsert() method with example
  13. Java ScriptException getColumnNumber() method with example
  14. Java Rectangle2D.Double createUnion() method with example 1
  15. Java _DynStructStub get_members_as_dyn_any() method with example

Be the first to comment