/** * INTERNAL: * Returns INOUT parameter. The first parameter is value to pass in, the second DatabaseField for out. */ protected Object createInOutParameter(Object inValue, Object outParameter, AbstractSession session) { if (outParameter instanceof OutputParameterForCallableStatement) { return new InOutputParameterForCallableStatement(inValue, (OutputParameterForCallableStatement)outParameter); } if (outParameter instanceof DatabaseField) { return new InOutputParameterForCallableStatement(inValue, (DatabaseField)outParameter, session); } //should never happen return null; }
/** * INTERNAL: * Returns INOUT parameter. The first parameter is value to pass in, the second DatabaseField for out. */ protected Object createInOutParameter(Object inValue, Object outParameter, AbstractSession session) { if (outParameter instanceof OutputParameterForCallableStatement) { return new InOutputParameterForCallableStatement(inValue, (OutputParameterForCallableStatement)outParameter); } if (outParameter instanceof DatabaseField) { return new InOutputParameterForCallableStatement(inValue, (DatabaseField)outParameter, session); } //should never happen return null; }
/** * INTERNAL: * Returns INOUT parameter. The first parameter is value to pass in, the second DatabaseField for out. */ protected Object createInOutParameter(Object inValue, Object outParameter, AbstractSession session) { if (outParameter instanceof OutputParameterForCallableStatement) { return new InOutputParameterForCallableStatement(inValue, (OutputParameterForCallableStatement)outParameter); } if (outParameter instanceof DatabaseField) { return new InOutputParameterForCallableStatement(inValue, (DatabaseField)outParameter, session); } //should never happen return null; }