rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
encodedLength = new byte[4];
encodedLength = new byte[5]; encodedLength[0] = (byte) 0xC0; encodedLength[1] = (byte)(length >> 24); encodedLength[2] = (byte)(length >> 16); encodedLength[3] = (byte)(length >> 8); encodedLength[4] = (byte)(length);
public RawToBinaryFormatStream(InputStream in, int length) { super(in); if (length >= 0) { setLimit(length); if (length <= 31) { encodedLength = new byte[1]; encodedLength[0] = (byte) (0x80 | (length & 0xff)); } el...
public ReaderToUTF8Stream(Reader appReader, int valueLength,int numCharsToTruncate) {
public ReaderToUTF8Stream(Reader appReader, int valueLength, int numCharsToTruncate, String typeName) {
public ReaderToUTF8Stream(Reader appReader, int valueLength,int numCharsToTruncate) { this.reader = new LimitReader(appReader); if (valueLength != UNKNOWN_LENGTH) { reader.setLimit(valueLength); } if (SanityManager.DEBUG && valueLength == UNKNOWN_LENGTH) { // Number ...
if (valueLength != UNKNOWN_LENGTH) { reader.setLimit(valueLength); } if (SanityManager.DEBUG && valueLength == UNKNOWN_LENGTH) { SanityManager.ASSERT(numCharsToTruncate == 0); }
reader.setLimit(valueLength);
public ReaderToUTF8Stream(Reader appReader, int valueLength,int numCharsToTruncate) { this.reader = new LimitReader(appReader); if (valueLength != UNKNOWN_LENGTH) { reader.setLimit(valueLength); } if (SanityManager.DEBUG && valueLength == UNKNOWN_LENGTH) { // Number ...
}
this.maximumLength = -1; this.typeName = typeName; }
public ReaderToUTF8Stream(Reader appReader, int valueLength,int numCharsToTruncate) { this.reader = new LimitReader(appReader); if (valueLength != UNKNOWN_LENGTH) { reader.setLimit(valueLength); } if (SanityManager.DEBUG && valueLength == UNKNOWN_LENGTH) { // Number ...
super(netLogWriter, user, password, dataSource, rmId, isXAConn);
netCon = createNetConnection (netLogWriter, user, password, dataSource, rmId, isXAConn);
public NetXAConnection(NetLogWriter netLogWriter, String user, String password, org.apache.derby.jdbc.ClientDataSource dataSource, int rmId, boolean isXAConn) throws SqlException { ...
if (xaHostVersion_ >= supportedVersion) {
if (netCon.xaHostVersion_ >= supportedVersion) {
private void checkPlatformVersion() throws SqlException { int supportedVersion; supportedVersion = 8; if (xaHostVersion_ >= supportedVersion) { // supported version, return return; } // unsupported version for platform String platform = null; platform = "L...
xaHostVersion_; throw new SqlException(agent_.logWriter_, versionMsg);
netCon.xaHostVersion_; throw new SqlException(netCon.agent_.logWriter_, versionMsg);
private void checkPlatformVersion() throws SqlException { int supportedVersion; supportedVersion = 8; if (xaHostVersion_ >= supportedVersion) { // supported version, return return; } // unsupported version for platform String platform = null; platform = "L...
super.finalize();
netCon.finalize();
protected void finalize() throws java.lang.Throwable { super.finalize(); }
return crrtkn_;
return netCon.crrtkn_;
public byte[] getCorrelatorToken() { return crrtkn_; }
NetIndoubtTransaction indoubtTxn = (NetIndoubtTransaction) indoubtTransactions_.get(xid);
NetIndoubtTransaction indoubtTxn = (NetIndoubtTransaction) netCon.indoubtTransactions_.get(xid);
public int getPort(Xid xid) { NetIndoubtTransaction indoubtTxn = (NetIndoubtTransaction) indoubtTransactions_.get(xid); if (indoubtTxn == null) { return -1; } return indoubtTxn.getPort(); }
NetIndoubtTransaction indoubtTxn = (NetIndoubtTransaction) indoubtTransactions_.get(xid);
NetIndoubtTransaction indoubtTxn = (NetIndoubtTransaction) netCon.indoubtTransactions_.get(xid);
public byte[] getUOWID(Xid xid) { NetIndoubtTransaction indoubtTxn = (NetIndoubtTransaction) indoubtTransactions_.get(xid); if (indoubtTxn == null) { return null; } byte[] uowid = indoubtTxn.getUOWID(); return uowid; }
if (isXAConnection_) { int xaState = getXAState(); NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = XAResource.XA_OK; if (xaState == XA_T0_NOT_ASSOCIATED) { readLocalXACommit_(); } if (callInfo.xaRetVal_ != XAResource.XA_OK) { callInfo.xaFunction_ = NetXAResource.XAFUNC_COMM...
int xaState = netCon.getXAState(); NetXACallInfo callInfo = netCon.xares_.callInfoArray_ [netCon.currXACallInfoOffset_]; callInfo.xaRetVal_ = XAResource.XA_OK; if (xaState == netCon.XA_T0_NOT_ASSOCIATED) { readLocalXACommit_();
public void readCommit() throws SqlException { if (isXAConnection_) { // XA Connection int xaState = getXAState(); NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = XAResource.XA_OK; // initialize XARETVAL if (xaState == XA...
if (callInfo.xaRetVal_ != XAResource.XA_OK) { callInfo.xaFunction_ = NetXAResource.XAFUNC_COMMIT; netCon.xares_.xaRetValErrorAccumSQL(callInfo, 0); callInfo.xaRetVal_ = XAResource.XA_OK; throw netCon.xares_.exceptionsOnXA; }
public void readCommit() throws SqlException { if (isXAConnection_) { // XA Connection int xaState = getXAState(); NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = XAResource.XA_OK; // initialize XARETVAL if (xaState == XA...
netAgent_.netConnectionReply_.readLocalXACommit(this);
netCon.netAgent_.netConnectionReply_.readLocalXACommit(netCon);
public void readLocalXACommit_() throws SqlException { netAgent_.netConnectionReply_.readLocalXACommit(this); }
netAgent_.netConnectionReply_.readLocalXARollback(this);
netCon.netAgent_.netConnectionReply_.readLocalXARollback(netCon);
public void readLocalXARollback_() throws SqlException { netAgent_.netConnectionReply_.readLocalXARollback(this); }
netAgent_.netConnectionReply_.readLocalXAStart(this);
netCon.netAgent_.netConnectionReply_.readLocalXAStart(netCon);
public void readLocalXAStart_() throws SqlException { netAgent_.netConnectionReply_.readLocalXAStart(this); }
if (isXAConnection_) { NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = XAResource.XA_OK; readLocalXARollback_();
NetXACallInfo callInfo = netCon.xares_.callInfoArray_ [netCon.currXACallInfoOffset_]; callInfo.xaRetVal_ = XAResource.XA_OK; readLocalXARollback_();
public void readRollback() throws SqlException { if (isXAConnection_) { // XA connections NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = XAResource.XA_OK; // initialize XARETVAL readLocalXARollback_(); if (callInfo.xaRet...
if (callInfo.xaRetVal_ != XAResource.XA_OK) { callInfo.xaFunction_ = NetXAResource.XAFUNC_ROLLBACK; xares_.xaRetValErrorAccumSQL(callInfo, 0); callInfo.xaRetVal_ = XAResource.XA_OK; throw xares_.exceptionsOnXA; }
if (callInfo.xaRetVal_ != XAResource.XA_OK) { callInfo.xaFunction_ = NetXAResource.XAFUNC_ROLLBACK; netCon.xares_.xaRetValErrorAccumSQL(callInfo, 0); callInfo.xaRetVal_ = XAResource.XA_OK; throw netCon.xares_.exceptionsOnXA; }
public void readRollback() throws SqlException { if (isXAConnection_) { // XA connections NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = XAResource.XA_OK; // initialize XARETVAL readLocalXARollback_(); if (callInfo.xaRet...
setXAState(XA_T0_NOT_ASSOCIATED); } else { readLocalRollback_(); }
netCon.setXAState(netCon.XA_T0_NOT_ASSOCIATED);
public void readRollback() throws SqlException { if (isXAConnection_) { // XA connections NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = XAResource.XA_OK; // initialize XARETVAL readLocalXARollback_(); if (callInfo.xaRet...
crrtkn_ = crttoken;
netCon.crrtkn_ = crttoken;
public void setCorrelatorToken(byte[] crttoken) { crrtkn_ = crttoken; }
xares_ = xares;
netCon.xares_ = xares;
void setNetXAResource(NetXAResource xares) { xares_ = xares; }
if (isXAConnection_) { int xaState = getXAState(); if (xaState == XA_T0_NOT_ASSOCIATED){ xares_.callInfoArray_[xares_.conn_.currXACallInfoOffset_].xid_ = NetXAResource.nullXid; writeLocalXACommit_(); } } else { writeLocalCommit_();
int xaState = netCon.getXAState(); if (xaState == netCon.XA_T0_NOT_ASSOCIATED){ netCon.xares_.callInfoArray_[ netCon.xares_.conn_.currXACallInfoOffset_ ].xid_ = NetXAResource.nullXid; writeLocalXACommit_();
public void writeCommit() throws SqlException { // this logic must be in sync with willAutoCommitGenerateFlow() logic if (isXAConnection_) { // XA Connection int xaState = getXAState(); if (xaState == XA_T0_NOT_ASSOCIATED){ xares_.callInfoArray_[xares_.conn_.currXA...
netAgent_.netConnectionRequest_.writeLocalXACommit(this);
netCon.netAgent_.netConnectionRequest_.writeLocalXACommit(netCon);
public void writeLocalXACommit_() throws SqlException { netAgent_.netConnectionRequest_.writeLocalXACommit(this); }
netAgent_.netConnectionRequest_.writeLocalXARollback(this);
netCon.netAgent_.netConnectionRequest_.writeLocalXARollback(netCon);
public void writeLocalXARollback_() throws SqlException { netAgent_.netConnectionRequest_.writeLocalXARollback(this); }
netAgent_.netConnectionRequest_.writeLocalXAStart(this);
netCon.netAgent_.netConnectionRequest_.writeLocalXAStart(netCon);
public void writeLocalXAStart_() throws SqlException { netAgent_.netConnectionRequest_.writeLocalXAStart(this); }
if (isXAConnection_) { xares_.callInfoArray_[xares_.conn_.currXACallInfoOffset_].xid_ = xares_.nullXid; writeLocalXARollback_(); } else { writeLocalRollback_(); }
netCon.xares_.callInfoArray_[ netCon.xares_.conn_.currXACallInfoOffset_ ].xid_ = netCon.xares_.nullXid; writeLocalXARollback_();
public void writeRollback() throws SqlException { if (isXAConnection_) { xares_.callInfoArray_[xares_.conn_.currXACallInfoOffset_].xid_ = xares_.nullXid; writeLocalXARollback_(); } else { writeLocalRollback_(); // non-XA } }
if (!isXAConnection_) {
if (!netCon.isXAConnection()) {
public void writeTransactionStart(Statement statement) throws SqlException { //KATHEY remove below after checking that we don't need it. if (!isXAConnection_) { return; // not a XA connection } // this is a XA connection int xaState = getXAState(); xares_.except...
int xaState = getXAState(); xares_.exceptionsOnXA = null;
int xaState = netCon.getXAState(); netCon.xares_.exceptionsOnXA = null;
public void writeTransactionStart(Statement statement) throws SqlException { //KATHEY remove below after checking that we don't need it. if (!isXAConnection_) { return; // not a XA connection } // this is a XA connection int xaState = getXAState(); xares_.except...
public NumberDataValue minus(NumberDataValue result)
public NumberDataValue minus(NumberDataValue left, NumberDataValue right, NumberDataValue result)
public NumberDataValue minus(NumberDataValue result) throws StandardException;
s.setCursorName("districtInLondon");
s.setCursorName("StokeNewington");
protected CallableStatement createFloatCallForStateChecking(Connection conn, String sql) throws SQLException { CallableStatement s = internalCreateFloatCallForStateChecking(conn, sql); //DERBY-1036 - need a new name //s.setCursorName("StokeNewington"); s.setCursorName("districtInLondon"); s.setFetchDirection(Resu...
if (hasGetCursorNameBug && cursorName.startsWith("SQL_CUR")) { cursorName = cursorName.substring(0,13); }
private static void resultSetQuery(String tag, ResultSet rs) throws SQLException { String cursorName = rs.getCursorName(); // DERBY-1183 client cursor name is not correct. // need to truncate the cursor number of the generated name as it might // not be consistent. if (hasGetCursorNameBug && cursorName.startsWith...
sruBatch.setCursorName("sruBatch");
protected void runTest(String[] args) throws Exception { // Check the returned type of the JDBC Connections. ij.getPropertyArg(args); Connection dmc = ij.startJBMS(); dmc.createStatement().executeUpdate("create table y(i int)"); dmc.createStatement().executeUpdate( "create procedure checkConn2(in d...
int holdability) throws SqlException {
int holdability,ClientPooledConnection cpc) throws SqlException {
public CallableStatement newCallableStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql,int type,int concurrency, int holdability) throws SqlException { return new CallableStatement40(agent,connection,sql,type,concurrency, holdab...
holdability);
holdability,cpc);
public CallableStatement newCallableStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql,int type,int concurrency, int holdability) throws SqlException { return new CallableStatement40(agent,connection,sql,type,concurrency, holdab...
String sql,Section section) throws SqlException { return new PreparedStatement40(agent,connection,sql,section);
String sql,Section section,ClientPooledConnection cpc) throws SqlException { return new PreparedStatement40(agent,connection,sql,section,cpc);
public PreparedStatement newPreparedStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql,Section section) throws SqlException { return new PreparedStatement40(agent,connection,sql,section); }
int type,int concurrency,int holdability) throws SqlException;
int type,int concurrency,int holdability, ClientPooledConnection cpc) throws SqlException;
CallableStatement newCallableStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql, int type,int concurrency,int holdability) throws SqlException;
int type, int concurrency, int holdability) throws SQLException {
int type, int concurrency, int holdability) throws SqlException {
public CallableStatement40(Agent agent, Connection connection, String sql, int type, int concurrency, int holdability) throws SQLException { super(agent, connection, sql, type, concurrency, holdability); ps = new PreparedStatement40(agent, connection, sql, type, concurrency, holda...
String password) throws SqlException {
String password) throws SQLException {
public ClientPooledConnection40(ClientDataSource ds, org.apache.derby.client.am.LogWriter logWriter, String user, String password) throws SqlException { super(ds,logWriter,user,password); }
java.util.Properties properties) throws SQLException {
java.util.Properties properties) throws SqlException {
public NetConnection40(NetLogWriter netLogWriter, String databaseName, java.util.Properties properties) throws SQLException { super(netLogWriter,databaseName,properties); }
String sql,Section section) throws SqlException;
String sql,Section section,ClientPooledConnection cpc) throws SqlException;
PreparedStatement newPreparedStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql,Section section) throws SqlException;
if (action == DependencyManager.REVOKE_PRIVILEGE) { DropTriggerConstantAction.dropTriggerDescriptor( lcc,getDataDictionary().getDependencyManager(), getDataDictionary(), lcc.getTransactionExecute(), this, null); return; }
public void makeInvalid(int action, LanguageConnectionContext lcc) throws StandardException { // No sanity check for valid action. Trigger descriptors depend on // the trigger table, so there is a very large number of actions // that we would have to check against. This is hard to maintain, // so don't bother. }
suite.addTest(org.apache.derbyTesting.functionTests.tests.derbynet._Suite.suite());
public static Test suite() throws Exception { TestSuite suite = new TestSuite("AllPackages"); suite.addTest(org.apache.derbyTesting.functionTests.tests.derbynet._Suite.suite()); suite.addTest(org.apache.derbyTesting.functionTests.tests.lang._Suite.suite()); suite.addTest(org.apac...
suite.addTest(DRDAProtocolTest.suite());
public static Test suite() { TestSuite suite = new TestSuite("derbynet"); suite.addTest(ByteArrayCombinerStreamTest.suite()); suite.addTest(ShutDownDBWhenNSShutsDownTest.suite()); suite.addTest(SqlExceptionTest.suite()); suite.addTest(SuicideOfStreamingTest.suite()); ...
suite.addTest(VTITest.suite());
public static Test suite() { TestSuite suite = new TestSuite("lang"); // DERBY-1315 and DERBY-1735 need to be addressed // before re-enabling this test as it's memory use is // different on different vms leading to failures in // the nightly runs. // suite.addTest(largeCodeG...
suite.addTest(ResultSetJDBC30Test.suite());
public static Test suite() { TestSuite suite = new TestSuite("jdbcapi"); suite.addTest(ConcurrencyTest.suite()); suite.addTest(HoldabilityTest.suite()); suite.addTest(LobLengthTest.suite()); suite.addTest(ProcedureTest.suite()); suite.addTest(SURQueryMixTest.suite()); suite.addTest(SURTest.suite()); sui...
if (className.startsWith("org.apache.derby.")) { try { return Class.forName(className); } catch (ClassNotFoundException cnfe) { } }
public final Class loadApplicationClass(String className) throws ClassNotFoundException { Throwable loadError; try { try { return loadClassNotInDatabaseJar(className); } catch (ClassNotFoundException cnfe) { if (applicationLoader == null) throw cnfe; Class c = applicationLoader.loadClass(className,...
optimizerEstimatedCost
optimizerEstimatedCost, userSuppliedOptimizerOverrides
public RealNestedLoopJoinStatistics( int numOpens, int rowsSeen, int rowsFiltered, long constructorTime, long openTime, long nextTime, long closeTime, int resultSetNumber, int rowsSeenLeft, int rowsSeenRight, int rowsReturned, long ...
header +
public String getStatementExecutionPlanText(int depth) { initFormatInfo(depth); return indent + resultSetName + ":\n" + indent + MessageService.getTextMessage(SQLState.RTS_NUM_OPENS) + " = " + numOpens + "\n" + indent + MessageService.getTextMessage( SQLState.RTS_ROWS_SEEN_LEFT) + " = " + row...
try { int length = org.apache.derby.client.am.Decimal.bigDecimalToPackedDecimalBytes(bytes_, offset_, v, declaredPrecision, declaredScale); offset_ += length; } catch (org.apache.derby.client.am.ConversionException e) { throw new SqlException(netAgent_.logWriter_, e, "BigDecimal conversion exception " + e.getMessage() ...
int length = org.apache.derby.client.am.Decimal.bigDecimalToPackedDecimalBytes(bytes_, offset_, v, declaredPrecision, declaredScale); offset_ += length;
final void writeBigDecimal(java.math.BigDecimal v, int declaredPrecision, int declaredScale) throws SqlException { ensureLength(offset_ + 16); try { int length = org.apache.derby.client.am.Decimal.bigDecimalToPackedDecimalBytes(byt...
try { ensureLength(offset_ + 10); org.apache.derby.client.am.DateTime.dateToDateBytes(bytes_, offset_, date); offset_ += 10; } catch (org.apache.derby.client.am.ConversionException e) { throw new SqlException(netAgent_.logWriter_, e, "Date conversion exception " + e.getMessage() + ". See attached Throwable."); }
ensureLength(offset_ + 10); org.apache.derby.client.am.DateTime.dateToDateBytes(bytes_, offset_, date); offset_ += 10;
final void writeDate(java.sql.Date date) throws SqlException { try { ensureLength(offset_ + 10); org.apache.derby.client.am.DateTime.dateToDateBytes(bytes_, offset_, date); offset_ += 10; } catch (org.apache.derby.client.am.ConversionException e) { throw new...
try { ensureLength(offset_ + 26); org.apache.derby.client.am.DateTime.timestampToTimestampBytes(bytes_, offset_, timestamp); offset_ += 26; } catch (org.apache.derby.client.am.ConversionException e) { throw new SqlException(netAgent_.logWriter_, e, "Timestamp conversion exception " + e.getMessage() + ". See attached Th...
ensureLength(offset_ + 26); org.apache.derby.client.am.DateTime.timestampToTimestampBytes(bytes_, offset_, timestamp); offset_ += 26;
final void writeTimestamp(java.sql.Timestamp timestamp) throws SqlException { try { ensureLength(offset_ + 26); org.apache.derby.client.am.DateTime.timestampToTimestampBytes(bytes_, offset_, timestamp); offset_ += 26; } catch (org.apache.derby.client.am.ConversionExcep...
throws ConversionException {
throws SqlException {
public static final int bigDecimalToPackedDecimalBytes(byte[] buffer, int offset, java.math.BigDecimal b, int declaredPrecision, ...
throw new ConversionException("Packed decimal may only be up to 31 digits!");
throw new SqlException(null, new MessageId(SQLState.DECIMAL_TOO_MANY_DIGITS));
public static final int bigDecimalToPackedDecimalBytes(byte[] buffer, int offset, java.math.BigDecimal b, int declaredPrecision, ...
throw new ConversionException("The numeric literal \"" + b.toString() + "\" is not valid because its value is out of range.", "42820", -405);
throw new SqlException(null, new MessageId(SQLState.LANG_OUTSIDE_RANGE_FOR_DATATYPE), "packed decimal", new SqlCode(-405));
public static final int bigDecimalToPackedDecimalBytes(byte[] buffer, int offset, java.math.BigDecimal b, int declaredPrecision, ...
throw new ConversionException("Overflow occurred during numeric data type conversion of \"" + b.toString() + "\".", "22003", -413);
throw new SqlException(null, new MessageId(SQLState.NUMERIC_OVERFLOW), b.toString(), "packed decimal", new SqlCode(-413));
public static final int bigDecimalToPackedDecimalBytes(byte[] buffer, int offset, java.math.BigDecimal b, int declaredPrecision, ...
void pushExpressionsIntoSelect(SelectNode select)
void pushExpressionsIntoSelect(SelectNode select, boolean copyPredicate)
void pushExpressionsIntoSelect(SelectNode select) throws StandardException { /* Walk list backwards since we can delete while * traversing the list. */ for (int index = size() - 1; index >= 0; index--) { Predicate predicate; predicate = (Predicate) elementAt(index); CollectNodesVisitor getCRs = ...
if (state)
if (state && !copyPredicate)
void pushExpressionsIntoSelect(SelectNode select) throws StandardException { /* Walk list backwards since we can delete while * traversing the list. */ for (int index = size() - 1; index >= 0; index--) { Predicate predicate; predicate = (Predicate) elementAt(index); CollectNodesVisitor getCRs = ...
select.pushExpressionsIntoSelect(predicate);
void pushExpressionsIntoSelect(SelectNode select) throws StandardException { /* Walk list backwards since we can delete while * traversing the list. */ for (int index = size() - 1; index >= 0; index--) { Predicate predicate; predicate = (Predicate) elementAt(index); CollectNodesVisitor getCRs = ...
if (copyPredicate) { AndNode andNode = predicate.getAndNode(); if (! (andNode.getLeftOperand() instanceof BinaryRelationalOperatorNode)) continue; BinaryRelationalOperatorNode opNode = (BinaryRelationalOperatorNode) andNode.getLeftOperand(); if (! (opNode.getLeftOperand() instanceof ColumnReference) || ! (opNode....
void pushExpressionsIntoSelect(SelectNode select) throws StandardException { /* Walk list backwards since we can delete while * traversing the list. */ for (int index = size() - 1; index >= 0; index--) { Predicate predicate; predicate = (Predicate) elementAt(index); CollectNodesVisitor getCRs = ...
ColumnReference getColumnOperand(int tableNumber, int columnPosition);
ColumnReference getColumnOperand(Optimizable optTable, int columnPosition);
ColumnReference getColumnOperand(int tableNumber, int columnPosition);
double optimizerEstimatedCost, GeneratedMethod closeCleanup
double optimizerEstimatedCost
public LastIndexKeyResultSet ( Activation activation, int resultSetNumber, GeneratedMethod resultRowAllocator, long conglomId, String tableName, String userSuppliedOptimizerOverrides, String indexName, int colRefItem, int lockMode, boolean tableLocked, int isolationLevel, double optimizerEstimatedRowCou...
this.closeCleanup = closeCleanup;
public LastIndexKeyResultSet ( Activation activation, int resultSetNumber, GeneratedMethod resultRowAllocator, long conglomId, String tableName, String userSuppliedOptimizerOverrides, String indexName, int colRefItem, int lockMode, boolean tableLocked, int isolationLevel, double optimizerEstimatedRowCou...
currentRow = null;
public void close() throws StandardException { beginTime = getCurrentTimeMillis(); if (isOpen) { isOpen = false; currentRow = null; clearCurrentRow(); if (closeCleanup != null) { closeCleanup.invoke(activation); // let activation tidy up } super.close(); } else { if (SanityManager.DE...
if (closeCleanup != null) { closeCleanup.invoke(activation); }
public void close() throws StandardException { beginTime = getCurrentTimeMillis(); if (isOpen) { isOpen = false; currentRow = null; clearCurrentRow(); if (closeCleanup != null) { closeCleanup.invoke(activation); // let activation tidy up } super.close(); } else { if (SanityManager.DE...
currentRow = null;
public ExecRow getNextRowCore() throws StandardException { if (returnedRow || !isOpen) { currentRow = null; clearCurrentRow(); } else { returnedRow = true; } return currentRow; }
currentRow = null;
public void openCore() throws StandardException { ExecRow candidateCopy = candidate.getClone(); beginTime = getCurrentTimeMillis(); if (SanityManager.DEBUG) { SanityManager.ASSERT(!isOpen, "LastIndexKeyResultSet already open"); } isOpen = true; TransactionController tc = activation.getTransactionController...
if (synonymTableName != null) { normalizeSynonymColumns ( targetColumnList, targetTableName ); }
public QueryTreeNode bind() throws StandardException { // We just need select privilege on the expressions getCompilerContext().pushCurrentPrivType( Authorizer.SELECT_PRIV); FromList fromList = (FromList) getNodeFactory().getNode( C_NodeTypes.FROM_LIST, getNodeFactory().doJoinOrderOptimization(), ...
(UUID) null, 0, 0, false);
(UUID) null, 0, 0);
private void addSPSParams(SPSDescriptor spsd, TransactionController tc, boolean wait) throws StandardException { UUID uuid = spsd.getUUID(); DataTypeDescriptor[] params = spsd.getParams(); Object[] parameterDefaults = spsd.getParameterDefaults(); if (params == null) return; /* Create the columns */ int ...
0, 0, false
0, 0
private ColumnDescriptor makeColumnDescriptor( SystemColumn column, TableDescriptor td ) throws StandardException { DataTypeDescriptor typeDesc; TypeId typeId; if (column.builtInType()) { typeId = TypeId.getBuiltInTypeId(column.getDataType()); } else { typeId = TypeId.getUserDefinedTy...
0, 0, false);
0, 0);
public void updateSPS( SPSDescriptor spsd, TransactionController tc, boolean recompile, boolean updateParamDescriptors, boolean wait, boolean firstCompilation) throws StandardException { ExecIndexRow keyRow1 = null; ExecRow row; DataValueDescript...
int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex));
int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
private void checkTypeForSetAsciiStream(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex)); if ( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_ASCIISTREAM.checkType( paramType ) ) { ...
int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex));
int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
private void checkTypeForSetBinaryStream(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex)); if (!PossibleTypes.POSSIBLE_TYPES_IN_SET_BINARYSTREAM. checkType(par...
int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex));
int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
private void checkTypeForSetBlob(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex)); if( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_BLOB.checkType( paramType ) ){ ...
int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex));
int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
private void checkTypeForSetCharacterStream(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex)); if (!PossibleTypes.POSSIBLE_TYPES_IN_SET_CHARACTERSTREAM. checkTy...
int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex));
int paramType = getColumnMetaDataX().getColumnType(parameterIndex);
private void checkTypeForSetClob(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex)); if( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_CLOB.checkType( paramType ) ){ ...
if (escapedProcedureCallWithResult_) { pm.escapedProcedureCallWithResult_ = true; }
private ParameterMetaData getParameterMetaDataX() throws SqlException { ParameterMetaData pm = ClientDriver.getFactory().newParameterMetaData ( getColumnMetaDataX() ); if (escapedProcedureCallWithResult_) { pm.escapedProcedureCallWithResult_ = true; } return pm; ...
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setArray(int parameterIndex, java.sql.Array x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setArray", parameterIndex, x); } parameterIn...
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setAsciiStream(int parameterIndex, java.io.InputStream x, long length) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEnt...
getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
getColumnMetaDataX().getColumnType(parameterIndex);
public void setBigDecimal(int parameterIndex, java.math.BigDecimal x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBigDecimal", parameterIndex, x); } ...
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setBigDecimal(int parameterIndex, java.math.BigDecimal x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBigDecimal", parameterIndex, x); } ...
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
protected void setBinaryStreamX(int parameterIndex, java.io.InputStream x, int length) throws SqlException { parameterIndex = checkForEscapedCallWithResult(parameterIndex); parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java...
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setBlobX(int parameterIndex, java.sql.Blob x) throws SqlException { parameterIndex = checkForEscapedCallWithResult(parameterIndex); parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java.sql.Types.BLOB; if (x == null) { setNullX(parameterIndex, java.sql.Types.B...
getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
getColumnMetaDataX().getColumnType(parameterIndex);
public void setBoolean(int parameterIndex, boolean x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBoolean", parameterIndex, x); } ...
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setBoolean(int parameterIndex, boolean x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBoolean", parameterIndex, x); } ...
getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
getColumnMetaDataX().getColumnType(parameterIndex);
public void setByte(int parameterIndex, byte x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setByte", parameterIndex, x); } final i...
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setByte(int parameterIndex, byte x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setByte", parameterIndex, x); } final i...
getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
getColumnMetaDataX().getColumnType(parameterIndex);
public void setBytes(int parameterIndex, byte[] x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBytes", parameterIndex, x); } fin...
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setBytesX(int parameterIndex, byte[] x) throws SqlException { parameterIndex = checkForEscapedCallWithResult(parameterIndex); parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java.sql.Types.LONGVARBINARY; if (x == null) { setNullX(parameterIndex, java.sql.Type...
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setCharacterStream(int parameterIndex, Reader x) throws SQLException { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setCharacterStream", parameterIndex, x); } try {...
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
void setClobX(int parameterIndex, java.sql.Clob x) throws SqlException { parameterIndex = checkForEscapedCallWithResult(parameterIndex); parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java.sql.Types.CLOB; if (x == null) { this.setNullX(parameterIndex, Types.CLOB); ...
getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
getColumnMetaDataX().getColumnType(parameterIndex);
public void setDate(int parameterIndex, java.sql.Date x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setDate", parameterIndex, x); } ...
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setDate(int parameterIndex, java.sql.Date x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setDate", parameterIndex, x); } ...
getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
getColumnMetaDataX().getColumnType(parameterIndex);
public void setDouble(int parameterIndex, double x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setDouble", parameterIndex, x); } f...
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setDouble(int parameterIndex, double x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setDouble", parameterIndex, x); } f...
getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
getColumnMetaDataX().getColumnType(parameterIndex);
public void setFloat(int parameterIndex, float x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setFloat", parameterIndex, x); } fina...
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setFloat(int parameterIndex, float x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setFloat", parameterIndex, x); } fina...
getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
getColumnMetaDataX().getColumnType(parameterIndex);
public void setInt(int parameterIndex, int x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setInt", parameterIndex, x); } final int ...
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
void setIntX(int parameterIndex, int x) throws SqlException { parameterIndex = checkForEscapedCallWithResult(parameterIndex); parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java.sql.Types.INTEGER; setInput(parameterIndex, new Integer(x)); }
getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
getColumnMetaDataX().getColumnType(parameterIndex);
public void setLong(int parameterIndex, long x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setLong", parameterIndex, x); } final i...
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setLong(int parameterIndex, long x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setLong", parameterIndex, x); } final i...