Exemplo n.º 1
0
 /**
  * Returns the list of parameter values for a prepared statement.
  *
  * @return the list of parameter values for a prepared statement
  */
 @Override
 public Object[] getParamValues() {
   Object[] leftParams = left.getParamValues();
   Object[] rightParams = right.getParamValues();
   // Check
   if (leftParams == null) return rightParams;
   if (rightParams == null) return leftParams;
   // Put them all together
   Object[] allParams = new Object[leftParams.length + rightParams.length];
   for (int i = 0; i < leftParams.length; i++) allParams[i] = leftParams[i];
   for (int i = 0; i < rightParams.length; i++) allParams[leftParams.length + i] = rightParams[i];
   // return Params
   return allParams;
 }