/** * PUBLIC: * Return an expression that checks if the receivers value is contained in the collection. * This is equivalent to the SQL "IN" operator and Java "contains" operator. */ public Expression any(double[] theDoubles) { Vector vector = oracle.toplink.essentials.internal.helper.NonSynchronizedVector.newInstance(); for (int index = 0; index < theDoubles.length; index++) { vector.addElement(new Double(theDoubles[index])); } return any(vector); }
/** * PUBLIC: * Return an expression that checks if the receivers value is contained in the collection. * This is equivalent to the SQL "IN" operator and Java "contains" operator. */ public Expression any(float[] theFloats) { Vector vector = oracle.toplink.essentials.internal.helper.NonSynchronizedVector.newInstance(); for (int index = 0; index < theFloats.length; index++) { vector.addElement(new Float(theFloats[index])); } return any(vector); }
/** * PUBLIC: * Return an expression that checks if the receivers value is contained in the collection. * This is equivalent to the SQL "IN" operator and Java "contains" operator. */ public Expression any(short[] theShorts) { Vector vector = oracle.toplink.essentials.internal.helper.NonSynchronizedVector.newInstance(); for (int index = 0; index < theShorts.length; index++) { vector.addElement(new Short(theShorts[index])); } return any(vector); }
/** * PUBLIC: * Return an expression that checks if the receivers value is contained in the collection. * This is equivalent to the SQL "IN" operator and Java "contains" operator. */ public Expression any(long[] theLongs) { Vector vector = oracle.toplink.essentials.internal.helper.NonSynchronizedVector.newInstance(); for (int index = 0; index < theLongs.length; index++) { vector.addElement(new Long(theLongs[index])); } return any(vector); }
/** * PUBLIC: * Return an expression that checks if the receivers value is contained in the collection. * This is equivalent to the SQL "IN" operator and Java "contains" operator. */ public Expression any(boolean[] theBooleans) { Vector vector = oracle.toplink.essentials.internal.helper.NonSynchronizedVector.newInstance(); for (int index = 0; index < theBooleans.length; index++) { vector.addElement(new Boolean(theBooleans[index])); } return any(vector); }
/** * PUBLIC: * Return an expression that checks if the receivers value is contained in the collection. * This is equivalent to the SQL "IN" operator and Java "contains" operator. */ public Expression any(char[] theChars) { Vector vector = oracle.toplink.essentials.internal.helper.NonSynchronizedVector.newInstance(); for (int index = 0; index < theChars.length; index++) { vector.addElement(new Character(theChars[index])); } return any(vector); }
/** * PUBLIC: * Return an expression that checks if the receivers value is contained in the collection. * This is equivalent to the SQL "IN" operator and Java "contains" operator. */ public Expression any(int[] theInts) { Vector vector = oracle.toplink.essentials.internal.helper.NonSynchronizedVector.newInstance(); for (int index = 0; index < theInts.length; index++) { vector.addElement(new Integer(theInts[index])); } return any(vector); }
/** * PUBLIC: * Return an expression that checks if the receivers value is contained in the collection. * This is equivalent to the SQL "IN" operator and Java "contains" operator. */ public Expression any(Object[] theObjects) { Vector vector = oracle.toplink.essentials.internal.helper.NonSynchronizedVector.newInstance(); for (int index = 0; index < theObjects.length; index++) { vector.addElement(theObjects[index]); } return any(vector); }
public Expression any(ReportQuery subQuery) { return any(subQuery(subQuery)); }
/** * PUBLIC: * Return an expression that checks if the receivers value is contained in the collection. * This is equivalent to the SQL "IN" operator and Java "contains" operator. * <p>Example: * <pre><blockquote> * TopLink: employee.get("age").in(agesVector) * Java: agesVector.contains(employee.getAge()) * SQL: AGE IN (55, 18, 30) * </blockquote></pre> */ public Expression any(Vector theObjects) { return any(new ConstantExpression(theObjects, this)); }
/** * * PUBLIC: * Return an expression that is used with a comparison expression. * The ANY keyword denotes that the search condition is TRUE if the comparison is TRUE * for at least one of the values that is returned. If the subquery returns no value, * the search condition is FALSE */ public Expression any(byte[] theBytes) { Vector vector = oracle.toplink.essentials.internal.helper.NonSynchronizedVector.newInstance(); for (int index = 0; index < theBytes.length; index++) { vector.addElement(new Byte(theBytes[index])); } return any(vector); }
/** * INTERNAL * Generate the TopLink expression for this node */ public Expression generateExpression(GenerationContext context) { SubqueryNode subqueryNode = (SubqueryNode)getLeft(); ReportQuery reportQuery = subqueryNode.getReportQuery(context); Expression expr = context.getBaseExpression(); return expr.any(reportQuery); }