private void readStatementPVS(final ByteArrayDataInput in) throws IOException, SQLException, ClassNotFoundException, StandardException { this.pstmt = getStatement(); this.pvs = this.pstmt.getParms(); final int paramCount = this.pvs.getParameterCount(); final int numEightColGroups = BitSetSet.udiv8(paramCount); final int numPartialCols = BitSetSet.umod8(paramCount); DVDIOUtil.readParameterValueSet(this.pvs, in, numEightColGroups, numPartialCols); } }
private void readStatementPVS(final ByteArrayDataInput in) throws IOException, SQLException, ClassNotFoundException, StandardException { this.pstmt = getStatement(); this.pvs = this.pstmt.getParms(); final int paramCount = this.pvs.getParameterCount(); final int numEightColGroups = BitSetSet.udiv8(paramCount); final int numPartialCols = BitSetSet.umod8(paramCount); DVDIOUtil.readParameterValueSet(this.pvs, in, numEightColGroups, numPartialCols); } }
private void readStatementPVS(final ByteArrayDataInput in) throws IOException, SQLException, ClassNotFoundException, StandardException { this.pstmt = getStatement(); this.pvs = this.pstmt.getParms(); final int paramCount = this.pvs.getParameterCount(); final int numEightColGroups = BitSetSet.udiv8(paramCount); final int numPartialCols = BitSetSet.umod8(paramCount); DVDIOUtil.readParameterValueSet(this.pvs, in, numEightColGroups, numPartialCols); } }
public GfxdConnectionWrapper getAndClearWrapper(final String userName, final long connId) throws Exception { if (this.pvsData != null) { ByteArrayDataInput dis = new ByteArrayDataInput(); dis.initialize(this.pvsData, null); readStatementPVS(dis); } if (this.pstmt == null) { // this is the case of execution in same VM where fromData has not // been invoked this.pstmt = getStatement(); ParameterValueSet pvs = this.pvs; if (pvs != null && pvs.getParameterCount() > 0) { // TODO: PERF: do we need to make a copy in every execution? // probably only for local execution pvs.transferDataValues(this.pstmt.getParms()); } } final GfxdConnectionWrapper wrapper = this.wrapper; this.wrapper = null; return wrapper; }
public GfxdConnectionWrapper getAndClearWrapper(final String userName, final long connId) throws Exception { if (this.pvsData != null) { ByteArrayDataInput dis = new ByteArrayDataInput(); dis.initialize(this.pvsData, null); readStatementPVS(dis); } if (this.pstmt == null) { // this is the case of execution in same VM where fromData has not // been invoked this.pstmt = getStatement(); ParameterValueSet pvs = this.pvs; if (pvs != null && pvs.getParameterCount() > 0) { // TODO: PERF: do we need to make a copy in every execution? // probably only for local execution pvs.transferDataValues(this.pstmt.getParms()); } } final GfxdConnectionWrapper wrapper = this.wrapper; this.wrapper = null; return wrapper; }
public GfxdConnectionWrapper getAndClearWrapper(final String userName, final long connId) throws Exception { if (this.pvsData != null) { ByteArrayDataInput dis = new ByteArrayDataInput(); dis.initialize(this.pvsData, null); readStatementPVS(dis); } if (this.pstmt == null) { // this is the case of execution in same VM where fromData has not // been invoked this.pstmt = getStatement(); ParameterValueSet pvs = this.pvs; if (pvs != null && pvs.getParameterCount() > 0) { // TODO: PERF: do we need to make a copy in every execution? // probably only for local execution pvs.transferDataValues(this.pstmt.getParms()); } } final GfxdConnectionWrapper wrapper = this.wrapper; this.wrapper = null; return wrapper; }