@Override public Object getAttributeValueFromObject(Object anObject) throws DescriptorException { StoredFunctionCall sfc = (StoredFunctionCall)anObject; Object argument = sfc.getParameters().get(0); String argumentName = (String)sfc.getProcedureArgumentNames().get(0); StoredProcedureOutArgument outArgument = new StoredProcedureOutArgument((DatabaseField)argument); outArgument.argumentName = argumentName; return outArgument; } @Override
@Override public Object getAttributeValueFromObject(Object anObject) throws DescriptorException { StoredFunctionCall sfc = (StoredFunctionCall)anObject; Object argument = sfc.getParameters().get(0); String argumentName = sfc.getProcedureArgumentNames().get(0); StoredProcedureOutArgument outArgument = new StoredProcedureOutArgument((DatabaseField)argument); outArgument.argumentName = argumentName; return outArgument; } @Override
@Override public Object getAttributeValueFromObject(Object anObject) throws DescriptorException { StoredFunctionCall sfc = (StoredFunctionCall)anObject; Object argument = sfc.getParameters().get(0); String argumentName = sfc.getProcedureArgumentNames().get(0); StoredProcedureOutArgument outArgument = new StoredProcedureOutArgument((DatabaseField)argument); outArgument.argumentName = argumentName; return outArgument; } @Override
@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); } }