FileDocCategorySizeDatePackage
CallableStatementImpl.javaAPI DocGlassfish v2 API21493Fri May 04 22:35:02 BST 2007com.sun.jdo.spi.persistence.support.sqlstore.connection

CallableStatementImpl

public class CallableStatementImpl extends PreparedStatementImpl implements CallableStatement
This class implements the java.sql.CallableStatement interface, which is part of the JDBC API. You should use the java.sql.CallableStatement interface as an object type instead of this class.

Fields Summary
Constructors Summary
public CallableStatementImpl(ConnectionImpl conn, CallableStatement cstmt)

        super();
        this.conn = conn;
        this.stmt = (Statement) cstmt;
    
Methods Summary
public java.sql.ArraygetArray(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getArray(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public java.math.BigDecimalgetBigDecimal(int parameterIndex, int scale)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getBigDecimal(parameterIndex, scale));
        } catch (SQLException se) {
            throw se;
        }
    
public java.math.BigDecimalgetBigDecimal(int parameterIndex)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getBigDecimal(parameterIndex));
        } catch (SQLException se) {
            throw se;
        }
    
public java.math.BigDecimalgetBigDecimal(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getBigDecimal(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.BlobgetBlob(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getBlob(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public booleangetBoolean(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getBoolean(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public booleangetBoolean(int parameterIndex)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getBoolean(parameterIndex));
        } catch (SQLException se) {
            throw se;
        }
    
public bytegetByte(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getByte(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public bytegetByte(int parameterIndex)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getByte(parameterIndex));
        } catch (SQLException se) {
            throw se;
        }
    
public byte[]getBytes(int parameterIndex)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getBytes(parameterIndex));
        } catch (SQLException se) {
            throw se;
        }
    
public byte[]getBytes(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getBytes(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.ClobgetClob(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getClob(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.DategetDate(int parameterIndex)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getDate(parameterIndex));
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.DategetDate(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getDate(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.DategetDate(java.lang.String parameterName, java.util.Calendar cal)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getDate(parameterName,cal));
        } catch (SQLException se) {
            throw se;
        }
    
public doublegetDouble(int parameterIndex)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getDouble(parameterIndex));
        } catch (SQLException se) {
            throw se;
        }
    
public doublegetDouble(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getDouble(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public floatgetFloat(int parameterIndex)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getFloat(parameterIndex));
        } catch (SQLException se) {
            throw se;
        }
    
public floatgetFloat(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getFloat(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public intgetInt(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getInt(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public intgetInt(int parameterIndex)

        CallableStatement cstmt = (CallableStatement) this.stmt;

        try {
            return (cstmt.getShort(parameterIndex));
        } catch (SQLException se) {
            throw se;
        }
    
public longgetLong(int parameterIndex)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getLong(parameterIndex));
        } catch (SQLException se) {
            throw se;
        }
    
public longgetLong(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getLong(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public java.lang.ObjectgetObject(int parameterIndex)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getObject(parameterIndex));
        } catch (SQLException se) {
            throw se;
        }
    
public java.lang.ObjectgetObject(int i, java.util.Map map)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getObject(i, map));
        } catch (SQLException se) {
            throw se;
        }
    
public java.lang.ObjectgetObject(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getObject(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public java.lang.ObjectgetObject(java.lang.String parameterName, java.util.Map map)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getObject(parameterName,map));
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.RefgetRef(int i)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getRef(i));
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.RefgetRef(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getRef(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public intgetResultSetConcurrency()

        return 0;
    
public shortgetShort(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getShort(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public shortgetShort(int parameterIndex)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getShort(parameterIndex));
        } catch (SQLException se) {
            throw se;
        }
    
public java.lang.StringgetString(int parameterIndex)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getString(parameterIndex));
        } catch (SQLException se) {
            throw se;
        }
    
public java.lang.StringgetString(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getString(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.TimegetTime(int parameterIndex)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getTime(parameterIndex));
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.TimegetTime(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getTime(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.TimegetTime(java.lang.String parameterName, java.util.Calendar cal)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getTime(parameterName,cal));
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.TimestampgetTimestamp(int parameterIndex)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getTimestamp(parameterIndex));
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.TimestampgetTimestamp(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getTimestamp(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public java.sql.TimestampgetTimestamp(java.lang.String parameterName, java.util.Calendar cal)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getTimestamp(parameterName,cal));
        } catch (SQLException se) {
            throw se;
        }
    
public java.net.URLgetURL(int parameterIndex)


        throw new UnsupportedOperationException();
    
public java.net.URLgetURL(java.lang.String parameterName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            return (cstmt.getURL(parameterName));
        } catch (SQLException se) {
            throw se;
        }
    
public voidregisterOutParameter(int parameterIndex, int sqlType)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            cstmt.registerOutParameter(parameterIndex, sqlType);
        } catch (SQLException se) {
            throw se;
        }
    
public voidregisterOutParameter(int i, int j, java.lang.String str)

        /* Comment out for now.
		try
		{
			// CallableStatement cstmt = (CallableStatement) this.stmt;
			// cstmt.registerOutParameter(i, j, str);
		}
		catch (SQLException se)
		{
			throw se;
		}
		*/
    
public voidregisterOutParameter(java.lang.String parameterName, int sqlType)


        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            cstmt.registerOutParameter(parameterName,sqlType);
        } catch (SQLException se) {
            throw se;
        }

    
public voidregisterOutParameter(java.lang.String parameterName, int sqlType, int scale)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            cstmt.registerOutParameter(parameterName,sqlType,scale);
        } catch (SQLException se) {
            throw se;
        }

    
public voidregisterOutParameter(java.lang.String parameterName, int sqlType, java.lang.String typeName)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            cstmt.registerOutParameter(parameterName,sqlType,typeName);
        } catch (SQLException se) {
            throw se;
        }

    
public voidregisterOutParameter(int parameterIndex, int sqlType, int scale)

        try {
            CallableStatement cstmt = (CallableStatement) this.stmt;
            cstmt.registerOutParameter(parameterIndex, sqlType, scale);
        } catch (SQLException se) {
            throw se;
        }
    
public voidsetAsciiStream(java.lang.String parameterName, java.io.InputStream x, int length)

        throw new UnsupportedOperationException();
    
public voidsetBigDecimal(java.lang.String parameterName, java.math.BigDecimal x)


        throw new UnsupportedOperationException();
    
public voidsetBinaryStream(java.lang.String parameterName, java.io.InputStream x, int length)

        throw new UnsupportedOperationException();
    
public voidsetBoolean(java.lang.String parameterName, boolean x)


        throw new UnsupportedOperationException();
    
public voidsetByte(java.lang.String parameterName, byte x)


        throw new UnsupportedOperationException();
    
public voidsetBytes(java.lang.String parameterName, byte[] x)


        throw new UnsupportedOperationException();
    
public voidsetCharacterStream(java.lang.String parameterName, java.io.Reader reader, int length)

        throw new UnsupportedOperationException();
    
public voidsetDate(java.lang.String parameterName, java.sql.Date x)


        throw new UnsupportedOperationException();
    
public voidsetDate(java.lang.String parameterName, java.sql.Date x, java.util.Calendar cal)


        throw new UnsupportedOperationException();
    
public voidsetDouble(java.lang.String parameterName, double x)


        throw new UnsupportedOperationException();
    
public voidsetFloat(java.lang.String parameterName, float x)


        throw new UnsupportedOperationException();
    
public voidsetInt(java.lang.String parameterName, int x)


        throw new UnsupportedOperationException();
    
public voidsetLong(java.lang.String parameterName, long x)


        throw new UnsupportedOperationException();
    
public voidsetNull(java.lang.String parameterName, int sqlType)


        throw new UnsupportedOperationException();
    
public voidsetNull(java.lang.String parameterName, int sqlType, java.lang.String typeName)

        throw new UnsupportedOperationException();
    
public voidsetObject(java.lang.String parameterName, java.lang.Object x, int targetSqlType, int scale)

        throw new UnsupportedOperationException();
    
public voidsetObject(java.lang.String parameterName, java.lang.Object x, int targetSqlType)

        throw new UnsupportedOperationException();
    
public voidsetObject(java.lang.String parameterName, java.lang.Object x)


        throw new UnsupportedOperationException();
    
public voidsetShort(java.lang.String parameterName, short x)


        throw new UnsupportedOperationException();
    
public voidsetString(java.lang.String parameterName, java.lang.String x)


        throw new UnsupportedOperationException();
    
public voidsetTime(java.lang.String parameterName, java.sql.Time x)


        throw new UnsupportedOperationException();
    
public voidsetTime(java.lang.String parameterName, java.sql.Time x, java.util.Calendar cal)


        throw new UnsupportedOperationException();
    
public voidsetTimestamp(java.lang.String parameterName, java.sql.Timestamp x)


        throw new UnsupportedOperationException();
    
public voidsetTimestamp(java.lang.String parameterName, java.sql.Timestamp x, java.util.Calendar cal)


        throw new UnsupportedOperationException();
    
public voidsetURL(java.lang.String parameterName, java.net.URL val)


        throw new UnsupportedOperationException();
    
public booleanwasNull()

        CallableStatement cstmt = (CallableStatement) this.stmt;

        try {
            return (cstmt.wasNull());
        } catch (SQLException se) {
            throw se;
        }