/** * The parameters are the values in order of occurance in call. * This is lazy initialized to conserv space on calls that have no parameters. */ public boolean hasParameters() { return (parameters != null) && (!getParameters().isEmpty()); }
/** * INTERNAL: * All values are printed as ? to allow for parameter binding or translation during the execute of the call. */ public void appendLiteral(Writer writer, Object literal) { try { writer.write(argumentMarker()); } catch (IOException exception) { throw ValidationException.fileError(exception); } getParameters().addElement(literal); getParameterTypes().addElement(LITERAL); }
/** * INTERNAL: * All values are printed as ? to allow for parameter binding or translation during the execute of the call. */ public void appendOut(Writer writer, DatabaseField outField) { try { writer.write(argumentMarker()); } catch (IOException exception) { throw ValidationException.fileError(exception); } getParameters().addElement(outField); getParameterTypes().addElement(OUT); }
/** * INTERNAL: * All values are printed as ? to allow for parameter binding or translation during the execute of the call. */ public void appendTranslation(Writer writer, DatabaseField modifyField) { try { writer.write(argumentMarker()); } catch (IOException exception) { throw ValidationException.fileError(exception); } getParameters().addElement(modifyField); getParameterTypes().addElement(TRANSLATION); }
/** * INTERNAL: * All values are printed as ? to allow for parameter binding or translation during the execute of the call. */ public void appendModify(Writer writer, DatabaseField modifyField) { try { writer.write(argumentMarker()); } catch (IOException exception) { throw ValidationException.fileError(exception); } getParameters().addElement(modifyField); getParameterTypes().addElement(MODIFY); }
/** * INTERNAL: * All values are printed as ? to allow for parameter binding or translation during the execute of the call. */ public void appendIn(Writer writer, DatabaseField field) { try { writer.write(argumentMarker()); } catch (IOException exception) { throw ValidationException.fileError(exception); } getParameters().addElement(field); getParameterTypes().addElement(IN); }
/** * INTERNAL: * All values are printed as ? to allow for parameter binding or translation during the execute of the call. */ public void appendInOut(Writer writer, DatabaseField inoutField) { try { writer.write(argumentMarker()); } catch (IOException exception) { throw ValidationException.fileError(exception); } Object[] inOut = { inoutField, inoutField }; getParameters().addElement(inOut); getParameterTypes().addElement(INOUT); }
if (getParameters().isEmpty()) { Vector parameterFields = getParameters(); setParameters(null); while (lastIndex != -1) {