final String parameterName = argument.getName();
if (type != null && type.isEmbeddedValue())
{
for (final Iterator attributeIterator = type.getAttributes(true).iterator(); attributeIterator.hasNext();)
{
final AttributeFacade attribute = (AttributeFacade)attributeIterator.next();
String parameter = "?";
if (this.isUseNamedParameters())
{
parameter = ":" + SpringUtils.concatNamesCamelCase(Arrays.asList(new String[]{parameterName, attribute.getName()}));
}
queryString = queryString + " " + variableName + "." + parameterName + "." + attribute.getName() + " = " + parameter;
if (attributeIterator.hasNext())
{
queryString = queryString + " and";
}
}