/** * 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 all(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 all(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 all(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 all(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 all(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 all(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 all(Object[] theObjects) { Vector vector = oracle.toplink.essentials.internal.helper.NonSynchronizedVector.newInstance(); for (int index = 0; index < theObjects.length; index++) { vector.addElement(theObjects[index]); } return all(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 all(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 all(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 all(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 all(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 all(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 all(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 all(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 all(vector); }
public Expression all(ReportQuery subQuery) { return all(subQuery(subQuery)); } }
/** * * PUBLIC: * Return an expression that is used with a comparison expression. * The SOME 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 all(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 all(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. * <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 all(Vector theObjects) { return all(new ConstantExpression(theObjects, this)); }
/** * 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.all(reportQuery); }