/** * PUBLIC: * Define the field name to be substitute for the function return. */ public void setResult(String name) { DatabaseField returnField = (DatabaseField)getParameters().get(0); returnField.setName(name); }
/** * PUBLIC: * Define the field name to be substitute for the function return. */ public void setResult(String name) { DatabaseField returnField = (DatabaseField)getParameters().firstElement(); returnField.setName(name); }
/** * PUBLIC: * Define the field name to be substitute for the function return. */ public void setResult(String name) { DatabaseField returnField = (DatabaseField)getParameters().get(0); returnField.setName(name); }
@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 = (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
/** * PUBLIC: * Define the field name to be substitute for the function return. * The type is the type of Java class desired back from the function, this is dependent on the type returned from the function. */ public void setResult(String name, int type) { DatabaseField returnField = (DatabaseField)getParameters().get(0); returnField.setName(name); returnField.setSqlType(type); }
/** * PUBLIC: * Define the field name to be substitute for the function return. * The type is the type of Java class desired back from the function, this is dependent on the type returned from the function. */ public void setResult(String name, Class type) { DatabaseField returnField = (DatabaseField)getParameters().get(0); returnField.setName(name); returnField.setType(type); }
/** * PUBLIC: * Define the field name to be substitute for the function return. * The type is the type of Java class desired back from the function, this is dependent on the type returned from the function. */ public void setResult(String name, int type) { DatabaseField returnField = (DatabaseField)getParameters().get(0); returnField.setName(name); returnField.setSqlType(type); }
/** * PUBLIC: * Define the field name to be substitute for the function return. * The type is the type of Java class desired back from the function, this is dependent on the type returned from the function. */ public void setResult(String name, Class type) { DatabaseField returnField = (DatabaseField)getParameters().get(0); returnField.setName(name); returnField.setType(type); }
/** * PUBLIC: * Define the field name to be substitute for the function return. * The type is the type of Java class desired back from the function, this is dependent on the type returned from the function. */ public void setResult(String name, Class type) { DatabaseField returnField = (DatabaseField)getParameters().firstElement(); returnField.setName(name); returnField.setType(type); } }
@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 the field name to be substitute for the function return. * The type is the type of Java class desired back from the function, this is dependent on the type returned from the function. */ public void setResult(String name, int type, String typeName) { ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(name); field.setSqlType(type); field.setSqlTypeName(typeName); getParameters().set(0, field); }
/** * PUBLIC: * Define the field name to be substitute for the function return. * The type is the type of Java class desired back from the function, this is dependent on the type returned from the function. */ public void setResult(String name, int type, String typeName) { ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(name); field.setSqlType(type); field.setSqlTypeName(typeName); getParameters().set(0, field); }
/** * PUBLIC: * Define the ObjectRelationalDatabaseField to be substituted for the function return. * The type is the JDBC type code, this is dependent on the type required by the procedure. * The typeName is the JDBC type name, this may be required for ARRAY or STRUCT types. * The javaType is the mapped Class that has an ObjectRelationalDataTypeDescriptor for the ARRAY * or STRUCT type typeName */ public void setResult(int type, String typeName, Class javaType) { ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(""); field.setSqlType(type); field.setSqlTypeName(typeName); field.setType(javaType); getParameters().set(0, field); }
/** * PUBLIC: * Define the ObjectRelationalDatabaseField to be substituted for the function return. * The type is the JDBC type code, this is dependent on the type required by the procedure. * The typeName is the JDBC type name, this may be required for ARRAY or STRUCT types. * The javaType is the mapped Class that has an ObjectRelationalDataTypeDescriptor for the ARRAY * or STRUCT type typeName */ public void setResult(int type, String typeName, Class javaType) { ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(""); field.setSqlType(type); field.setSqlTypeName(typeName); field.setType(javaType); getParameters().set(0, field); }
/** * PUBLIC: * Define the ObjectRelationalDatabaseField to be substituted for the function return. This * will typically be called for ARRAY types. * The type is the JDBC type code, this is dependent on the type required by the procedure. * The typeName is the JDBC type name, this may be required for ARRAY types. * The javaType is the mapped Class that has an ObjectRelationalDataTypeDescriptor for the ARRAY * type typeName * The nestedType is a database field representing the type the ARRAY holds onto. */ public void setResult(int type, String typeName, Class javaType, DatabaseField nestedType) { ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(""); field.setSqlType(type); field.setSqlTypeName(typeName); field.setType(javaType); field.setNestedTypeField(nestedType); getParameters().set(0, field); }
/** * PUBLIC: * Define the ObjectRelationalDatabaseField to be substituted for the function return. This * will typically be called for ARRAY types. * The type is the JDBC type code, this is dependent on the type required by the procedure. * The typeName is the JDBC type name, this may be required for ARRAY types. * The javaType is the mapped Class that has an ObjectRelationalDataTypeDescriptor for the ARRAY * type typeName * The nestedType is a database field representing the type the ARRAY holds onto. */ public void setResult(int type, String typeName, Class javaType, DatabaseField nestedType) { ObjectRelationalDatabaseField field = new ObjectRelationalDatabaseField(""); field.setSqlType(type); field.setSqlTypeName(typeName); field.setType(javaType); field.setNestedTypeField(nestedType); getParameters().set(0, field); }