@Override public void setAttributeValueInObject(Object domainObject, Object attributeValue) throws DescriptorException { StoredFunctionCall sfc = (StoredFunctionCall)domainObject; StoredProcedureOutArgument spoa = (StoredProcedureOutArgument)attributeValue; // Set procedure argument name. sfc.getProcedureArgumentNames().set(0, spoa.argumentName); sfc.getParameters().set(0, spoa.getDatabaseField()); // Set argument type. sfc.getParameterTypes().set(0, OUT); } }
@Override public void setAttributeValueInObject(Object domainObject, Object attributeValue) throws DescriptorException { StoredFunctionCall sfc = (StoredFunctionCall)domainObject; StoredProcedureOutArgument spoa = (StoredProcedureOutArgument)attributeValue; // Set procedure argument name. sfc.getProcedureArgumentNames().set(0, spoa.argumentName); sfc.getParameters().set(0, spoa.getDatabaseField()); // Set argument type. sfc.getParameterTypes().set(0, OUT); } }
@Override public void setAttributeValueInObject(Object domainObject, Object attributeValue) throws DescriptorException { StoredFunctionCall sfc = (StoredFunctionCall)domainObject; StoredProcedureOutArgument spoa = (StoredProcedureOutArgument)attributeValue; // Set procedure argument name. sfc.getProcedureArgumentNames().set(0, spoa.argumentName); sfc.getParameters().set(0, spoa.getDatabaseField()); // Set argument type. sfc.getParameterTypes().set(0, OUT); } }
/** * PUBLIC: * Define to return cursor as result. */ public void setResultCursor() { getParameterTypes().set(0, OUT_CURSOR); setIsCursorOutputProcedure(!hasOutputCursors()); setIsMultipleCursorOutputProcedure(hasOutputCursors()); } }
/** * PUBLIC: * Define to return cursor as result. */ public void setResultCursor() { getParameterTypes().set(0, OUT_CURSOR); setIsCursorOutputProcedure(!hasOutputCursors()); setIsMultipleCursorOutputProcedure(hasOutputCursors()); } }