public String generate()
	{
		StringBuilder tmp = new StringBuilder(100);
		// generate the id statement
		for (RelationDescriptor rdesc : getRelationDescriptors())
		{
			if (tmp.length() > 0)
			{
				tmp.append(" AND ");
			}
			tmp.append(rdesc.toString());
		}
		return tmp.toString();
	}