private void generateClause(ObjectStack oStack, Selector sel, StatementPrototype sp, Boolean sorted) throws SQLException
	{
		if (oStack.getActualRepresentation().isArray())
		{
			if (sorted == null)
			{
				sorted = true;
			}
			generateArrayQuery(sel, sp, oStack, sorted);
		}
		else
		{
			generateNonArrayQuery(sel, sp, oStack, sorted);
		}
	}