@@ -510,9 +510,7 @@ public Object getObject(int parameterIndex, Map<String, Class<?>> map) throws SQ
510510 */
511511 @ Override
512512 public Ref getRef (int parameterIndex ) throws SQLException {
513- checkNotClosed ();
514- checkOutputResult ();
515- return outputResult .getRef (idxToOutIdx (parameterIndex ));
513+ throw exceptionFactory ().notSupported ("Method ResultSet.getRef not supported" );
516514 }
517515
518516 /**
@@ -569,7 +567,7 @@ public Clob getClob(int parameterIndex) throws SQLException {
569567 public Array getArray (int parameterIndex ) throws SQLException {
570568 checkNotClosed ();
571569 checkOutputResult ();
572- return outputResult . getArray ( idxToOutIdx ( parameterIndex ) );
570+ throw exceptionFactory (). notSupported ( "Method ResultSet.getArray not supported" );
573571 }
574572
575573 /**
@@ -714,7 +712,7 @@ public void registerOutParameter(String parameterName, int sqlType) throws SQLEx
714712 }
715713
716714 private int nameToIndex (String parameterName ) throws SQLException {
717- if (parameterName == null ) throw exceptionFactory ().create ("parameterName cannot be null" );
715+ if (parameterName == null ) throw exceptionFactory ().create ("parameter name cannot be null" );
718716 if (parameterMetaData == null ) parameterMetaData = getParameterMetaData ();
719717
720718 int count = parameterMetaData .getParameterCount ();
@@ -724,7 +722,7 @@ private int nameToIndex(String parameterName) throws SQLException {
724722 return i ;
725723 }
726724 }
727- throw exceptionFactory ().create (String .format ("parameterName %s not found" , parameterName ));
725+ throw exceptionFactory ().create (String .format ("parameter name %s not found" , parameterName ));
728726 }
729727
730728 /**
@@ -1637,7 +1635,7 @@ public Object getObject(String parameterName, Map<String, Class<?>> map) throws
16371635 */
16381636 @ Override
16391637 public Ref getRef (String parameterName ) throws SQLException {
1640- return outputResult . getRef ( idxToOutIdx ( nameToIndex ( parameterName )) );
1638+ throw exceptionFactory (). notSupported ( "Method ResultSet.getRef not supported" );
16411639 }
16421640
16431641 /**
@@ -1688,7 +1686,7 @@ public Clob getClob(String parameterName) throws SQLException {
16881686 */
16891687 @ Override
16901688 public Array getArray (String parameterName ) throws SQLException {
1691- return outputResult . getArray ( idxToOutIdx ( nameToIndex ( parameterName )) );
1689+ throw exceptionFactory (). notSupported ( "Method ResultSet.getArray not supported" );
16921690 }
16931691
16941692 /**
@@ -2048,7 +2046,7 @@ public SQLXML getSQLXML(int parameterIndex) throws SQLException {
20482046 */
20492047 @ Override
20502048 public SQLXML getSQLXML (String parameterName ) throws SQLException {
2051- return getSQLXML ( nameToIndex ( parameterName ) );
2049+ throw exceptionFactory (). notSupported ( "SQLXML are not supported" );
20522050 }
20532051
20542052 /**
0 commit comments