CompositeParameterList(SimpleParameterList[] subparams, int[] offsets) { this.subparams = subparams; this.offsets = offsets; this.total = offsets[offsets.length - 1] + subparams[offsets.length - 1].getInParameterCount(); }
CompositeParameterList(SimpleParameterList[] subparams, int[] offsets) { this.subparams = subparams; this.offsets = offsets; this.total = offsets[offsets.length - 1] + subparams[offsets.length - 1].getInParameterCount(); }
@Override public void appendAll(ParameterList list) throws SQLException { if (list instanceof org.postgresql.core.v3.SimpleParameterList ) { /* only v3.SimpleParameterList is compatible with this type we need to create copies of our parameters, otherwise the values can be changed */ SimpleParameterList spl = (SimpleParameterList) list; int inParamCount = spl.getInParameterCount(); if ((pos + inParamCount) > paramValues.length) { throw new PSQLException( GT.tr("Added parameters index out of range: {0}, number of columns: {1}.", (pos + inParamCount), paramValues.length), PSQLState.INVALID_PARAMETER_VALUE); } System.arraycopy(spl.getValues(), 0, this.paramValues, pos, inParamCount); System.arraycopy(spl.getParamTypes(), 0, this.paramTypes, pos, inParamCount); System.arraycopy(spl.getFlags(), 0, this.flags, pos, inParamCount); System.arraycopy(spl.getEncoding(), 0, this.encoded, pos, inParamCount); pos += inParamCount; } }
CompositeParameterList(SimpleParameterList[] subparams, int[] offsets) { this.subparams = subparams; this.offsets = offsets; this.total = offsets[offsets.length - 1] + subparams[offsets.length - 1].getInParameterCount(); }
CompositeParameterList(SimpleParameterList[] subparams, int[] offsets) { this.subparams = subparams; this.offsets = offsets; this.total = offsets[offsets.length - 1] + subparams[offsets.length - 1].getInParameterCount(); }