Java CallableStatement getShort() method with example

java.sql.CallableStatement.getShort() method Retrieves the value of the designated JDBC
SMALLINT parameter as a
short in the Java programming language.

CallableStatement getShort() method Signature

short getShort(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:

setShort(java.lang.String, short)

java.sql.CallableStatement.getShort() method Implementation

short getShort(int parameterIndex) throws SQLException{

CallableStatement getShort() method Example


public class GetShortMethodExample {

	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 StyleSheet.ListPainter paint() method with example 1
  2. Java Query value() method with example 3
  3. Java FieldPosition hashCode() method with example
  4. Java CallableStatement getLong() method with example 1
  5. Java TimerMBean addNotification() method with example 1
  6. Java Attribute getAttributeSyntaxDefinition() method with example
  7. Java – CachedRowSet Interface
  8. Java FileSystem getRootDirectories() method with example
  9. Java – PortableRemoteObject Class
  10. Java DefaultListModel contains() method with example
  11. Java Arc2D makeBounds() method with example
  12. Java URI getRawSchemeSpecificPart() method with example
  13. Java JTableHeader setResizingColumn() method with example
  14. Java LogManager removePropertyChangeListener() method with example
  15. Java KeyStore.TrustedCertificateEntry getTrustedCertificate() method with example

Be the first to comment