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. javax.xml.ws.wsaddressing Package
  2. Java KeyPairGenerator getInstance() method with example
  3. Java DTD getProcessedDTD() method with example
  4. Java CertificateRevokedException getAuthorityName() method with example
  5. Java SynthButtonUI getIcon() method with example
  6. Java InputMethodHighlight getVariation() method with example
  7. Java Attributes2Impl isDeclared() method with example 1
  8. Java Spliterator.OfDouble tryAdvance() method with example 2
  9. Java JPEGImageWriteParam getACHuffmanTables() method with example
  10. Java WStringValueHelper id() method with example
  11. Java AclEntry.Builder setFlags() method with example 1
  12. Java JTree.AccessibleJTree.AccessibleJTreeNode addPropertyChangeListener() method with example
  13. Java – HTMLWriter Class
  14. Java Inet6Address isMCNodeLocal() method with example
  15. Java – Iterable Interface

Be the first to comment

Leave a Reply