FileDocCategorySizeDatePackage
InOutputParameterForCallableStatement.javaAPI DocGlassfish v2 API3884Tue May 22 16:54:22 BST 2007oracle.toplink.essentials.internal.databaseaccess

InOutputParameterForCallableStatement

public class InOutputParameterForCallableStatement extends OutputParameterForCallableStatement

Fields Summary
protected Object
inParameter
Constructors Summary
public InOutputParameterForCallableStatement(Object inParameter, OutputParameterForCallableStatement outParameter)

        super(outParameter);
        if (inParameter == null) {
            this.inParameter = getOutputField();
        } else {
            this.inParameter = inParameter;
        }
    
public InOutputParameterForCallableStatement(Object inParameter, DatabaseField outField, DatabasePlatform platform)

        if ((outField.getType() == null) && (inParameter != null)) {
            DatabaseField typeField = (DatabaseField)outField.clone();
            if (inParameter instanceof DatabaseField) {
                typeField.setType(((DatabaseField)inParameter).getType());
            } else {
                typeField.setType(inParameter.getClass());
            }
            outField = typeField;
        }
        obj = outField;
        prepare(platform);
        if (inParameter == null) {
            this.inParameter = getOutputField();
        } else {
            this.inParameter = inParameter;
        }
    
Methods Summary
public voidset(oracle.toplink.essentials.internal.databaseaccess.DatabasePlatform platform, java.sql.PreparedStatement statement, int index, oracle.toplink.essentials.internal.sessions.AbstractSession session)

        platform.setParameterValueInDatabaseCall(inParameter, statement, index, session);
        super.set(platform, statement, index, session);
    
public java.lang.StringtoString()

        String strIn;
        if (inParameter instanceof DatabaseField) {
            strIn = "null";
        } else {
            strIn = inParameter.toString();
        }
        return strIn + " " + super.toString();