bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
void t_getSQLXML2() { try { SQLXML sqlxml = cs.getSQLXML(null); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ...
void t_getSQLXML2() { try { SQLXML sqlxml = cs.getSQLXML(null); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { System.out.println("Unexpected SQLException"+e);...
1,105,894
void t_setBlob() { try { cs.setBlob(null,null,0); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ...
void t_setBlob() { try { cs.setBlob(null,null,0); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { System.out.println("Unexpected SQLException"+e); } ...
1,105,895
void t_setClob() { try { cs.setClob(null,null,0); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ...
void t_setClob() { try { cs.setClob(null,null,0); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { System.out.println("Unexpected SQLException"+e); } ...
1,105,896
void t_setNCharacterStream() { try { cs.setNCharacterStream(null,null,0); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); ...
void t_setNCharacterStream() { try { cs.setNCharacterStream(null,null,0); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { System.out.println("Unexpected SQLExce...
1,105,897
void t_setNClob1() { try { cs.setNClob(null,null); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } } catch(Ex...
void t_setNClob1() { try { cs.setNClob(null,null); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { System.out.println("Unexpected SQLException"+e); }...
1,105,898
void t_setNClob2() { try { cs.setNClob(null,null,0); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } } catch(...
void t_setNClob2() { try { cs.setNClob(null,null,0); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { System.out.println("Unexpected SQLException"+e); ...
1,105,899
void t_setNString() { try { cs.setNString(null,null); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } } catch...
void t_setNString() { try { cs.setNString(null,null); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { System.out.println("Unexpected SQLException"+e); ...
1,105,900
void t_setRowId() { try { cs.setRowId(null,null); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ...
void t_setRowId() { try { cs.setRowId(null,null); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { System.out.println("Unexpected SQLException"+e); ...
1,105,901
void t_setSQLXML() { try { cs.setSQLXML(null,null); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } } catch(E...
void t_setSQLXML() { try { cs.setSQLXML(null,null); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { System.out.println("Unexpected SQLException"+e); ...
1,105,902
private void checkIllegalUses(Statement st, String vtiTableName, String vtiMethodName, String args, String colName) throws SQLException { assertStatementError("42X05", st, "select * from syscs_diag." + vtiTableName); assertStatementError("42X01", st, "select * f...
private void checkIllegalUses(Statement st, String vtiTableName, String vtiMethodName, String args, String colName) throws SQLException { assertStatementError("42X05", st, "select * from syscs_diag." + vtiTableName); assertStatementError("42X01", st, "select * f...
1,105,903
public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { testCondition = testCondition.bindExpression(fromList, subqueryList, aggregateVector); thenElseList.bindExpression(fromList, subqueryList, aggregateVector); // Can't get the...
public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { testCondition = testCondition.bindExpression(fromList, subqueryList, aggregateVector); if (thisIsNullIfNode) { BinaryComparisonOperatorNode bcon = (BinaryComparisonOperatorNode...
1,105,904
public void init(Object testCondition, Object thenElseList) { this.testCondition = (ValueNode) testCondition; this.thenElseList = (ValueNodeList) thenElseList; }
public void init(Object testCondition, Object thenElseList, Object thisIsNullIfNode) { this.testCondition = (ValueNode) testCondition; this.thenElseList = (ValueNodeList) thenElseList; }
1,105,905
public void trace(int traceFlag, int intParam1, int intParam2, double doubleParam, Object objectParam1) { ConglomerateDescriptor cd; String cdString; String traceString = null; // We can get called from outside optimizer when tracing is off if (!optimizerTrace) { return; } switch (traceFlag) { case ...
public void trace(int traceFlag, int intParam1, int intParam2, double doubleParam, Object objectParam1) { ConglomerateDescriptor cd; String cdString; String traceString = null; // We can get called from outside optimizer when tracing is off if (!optimizerTrace) { return; } switch (traceFlag) { case ...
1,105,907
public static void dropIndex(DependencyManager dm, DataDictionary dd, TransactionController tc, ConglomerateDescriptor cd, TableDescriptor td, Activation act) throws StandardException { LanguageConnectionContext lcc = act.getLanguageConnectionContext(); if (SanityManager.DEBUG...
public static void dropIndex(DependencyManager dm, DataDictionary dd, TransactionController tc, ConglomerateDescriptor cd, TableDescriptor td, LanguageConnectionContext lcc) throws StandardException { LanguageConnectionContext lcc = act.getLanguageConnectionContext(); if (SanityM...
1,105,908
public static void dropIndex(DependencyManager dm, DataDictionary dd, TransactionController tc, ConglomerateDescriptor cd, TableDescriptor td, Activation act) throws StandardException { LanguageConnectionContext lcc = act.getLanguageConnectionContext(); if (SanityManager.DEBUG...
public static void dropIndex(DependencyManager dm, DataDictionary dd, TransactionController tc, ConglomerateDescriptor cd, TableDescriptor td, Activation act) throws StandardException { if (SanityManager.DEBUG) { SanityManager.ASSERT(tc != null, "tc is null"); SanityMana...
1,105,909
public void executeConstantAction(Activation activation) throws StandardException { TableDescriptor td; ConglomerateDescriptor cd; LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); DependencyManager dm = dd.getDependencyManager(); Transac...
public void executeConstantAction(Activation activation) throws StandardException { TableDescriptor td; ConglomerateDescriptor cd; LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); DependencyManager dm = dd.getDependencyManager(); Transac...
1,105,910
protected void initConnection(org.apache.derby.client.am.LogWriter logWriter, String user, org.apache.derby.jdbc.ClientBaseDataSource dataSource) throws SqlException { if (logWriter != null) { ...
protected void initConnection(org.apache.derby.client.am.LogWriter logWriter, String user, org.apache.derby.jdbc.ClientBaseDataSource dataSource) throws SqlException { if (logWriter != null) { ...
1,105,911
public void getScanCost( int scan_type, long row_count, int group_size, boolean forUpdate, FormatableBitSet scanColumnList, DataValueDescriptor[] template, DataValueDescriptor[] startKeyValue, int ...
public void getScanCost( int scan_type, long row_count, int group_size, boolean forUpdate, FormatableBitSet scanColumnList, DataValueDescriptor[] template, DataValueDescriptor[] startKeyValue, int ...
1,105,913
public boolean compareWithKnownConstant(Optimizable optTable, boolean considerParameters) { ValueNode node = null; node = keyColumnOnLeft(optTable) ? rightOperand : leftOperand; if (considerParameters) { return (node instanceof ConstantNode) || ((node.isParameterNode()) && (((ParameterNode)node).getDe...
public boolean compareWithKnownConstant(Optimizable optTable, boolean considerParameters) { ValueNode node = null; node = keyColumnOnLeft(optTable) ? rightOperand : leftOperand; if (considerParameters) { return (node instanceof ConstantNode) || ((node.requiresTypeFromContext()) && (((ParameterNode)nod...
1,105,915
public DataValueDescriptor getCompareValue(Optimizable optTable) throws StandardException { ValueNode node = null; /* The value being compared to is on the opposite side from ** the key column. */ node = keyColumnOnLeft(optTable) ? rightOperand : leftOperand; if (node instanceof ConstantNode) { retur...
public DataValueDescriptor getCompareValue(Optimizable optTable) throws StandardException { ValueNode node = null; /* The value being compared to is on the opposite side from ** the key column. */ node = keyColumnOnLeft(optTable) ? rightOperand : leftOperand; if (node instanceof ConstantNode) { retur...
1,105,916
public DataValueDescriptor getCompareValue(Optimizable optTable) throws StandardException { ValueNode node = null; /* The value being compared to is on the opposite side from ** the key column. */ node = keyColumnOnLeft(optTable) ? rightOperand : leftOperand; if (node instanceof ConstantNode) { retur...
public DataValueDescriptor getCompareValue(Optimizable optTable) throws StandardException { ValueNode node = null; /* The value being compared to is on the opposite side from ** the key column. */ node = keyColumnOnLeft(optTable) ? rightOperand : leftOperand; if (node instanceof ConstantNode) { retur...
1,105,917
public void cleanupOnError(Throwable error) throws StandardException { /* ** If it isn't a StandardException, then assume ** xact severity. It is probably an unexpected ** java error somewhere in the language. */ int severity = (error instanceof StandardException) ? ((StandardException) error).getSeverity() :...
public void cleanupOnError(Throwable error) throws StandardException { /* ** If it isn't a StandardException, then assume ** session severity. It is probably an unexpected ** java error somewhere in the language. */ int severity = (error instanceof StandardException) ? ((StandardException) error).getSeverity()...
1,105,919
public void cleanupOnError(Throwable error) throws StandardException { /* ** If it isn't a StandardException, then assume ** xact severity. It is probably an unexpected ** java error somewhere in the language. */ int severity = (error instanceof StandardException) ? ((StandardException) error).getSeverity() :...
public void cleanupOnError(Throwable error) throws StandardException { /* ** If it isn't a StandardException, then assume ** xact severity. It is probably an unexpected ** java error somewhere in the language. ** Store layer treats JVM error as session severity, ** hence to be consistent and to avoid getting raw...
1,105,920
public void cleanupOnError(Throwable error) throws StandardException { /* ** If it isn't a StandardException, then assume ** xact severity. It is probably an unexpected ** java error somewhere in the language. */ int severity = (error instanceof StandardException) ? ((StandardException) error).getSeverity() :...
public void cleanupOnError(Throwable error) throws StandardException { /* ** If it isn't a StandardException, then assume ** xact severity. It is probably an unexpected ** java error somewhere in the language. */ int severity = (error instanceof StandardException) ? ((StandardException) error).getSeverity() :...
1,105,921
public SystemColumn[] buildColumnList() { if (columnList == null) { columnList = new SystemColumn[ COLUMN_COUNT]; columnList[ ROUTINPERMSID_COL_NUM - 1] = new SystemColumnImpl( convertIdCase( "ROUTINEPERMSID"), ROUTINPERMSID_COL_NUM, ...
public SystemColumn[] buildColumnList() { if (columnList == null) { columnList = new SystemColumn[ COLUMN_COUNT]; columnList[ ROUTINEPERMSID_COL_NUM - 1] = new SystemColumnImpl( convertIdCase( "ROUTINEPERMSID"), ROUTINPERMSID_COL_NUM,...
1,105,922
public SystemColumn[] buildColumnList() { if (columnList == null) { columnList = new SystemColumn[ COLUMN_COUNT]; columnList[ ROUTINPERMSID_COL_NUM - 1] = new SystemColumnImpl( convertIdCase( "ROUTINEPERMSID"), ROUTINPERMSID_COL_NUM, ...
public SystemColumn[] buildColumnList() { if (columnList == null) { columnList = new SystemColumn[ COLUMN_COUNT]; columnList[ ROUTINPERMSID_COL_NUM - 1] = new SystemColumnImpl( convertIdCase( "ROUTINEPERMSID"), ROUTINEPERMSID_COL_NUM,...
1,105,923
public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException { UUID oid; String routinePermID = null; DataValueDescriptor grantee = null; DataValueDescriptor grantor = null; String routineID = null; if( td == null) { grantee =...
public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException { UUID oid; String routinePermID = null; DataValueDescriptor grantee = null; DataValueDescriptor grantor = null; String routineID = null; if( td == null) { grantee =...
1,105,924
public static void main(String[] args) throws Exception { checkDataSource30 tester = new checkDataSource30(); // portions of this test do not run yet with client and so // are enabled only for embedded with // if (TestUtil.isEmbeddedFramework())blocks if (TestUtil.isEmbeddedFramework()) tester.runTest(args); ...
public static void main(String[] args) throws Exception { checkDataSource30 tester = new checkDataSource30(); // portions of this test do not run yet with client and so // are enabled only for embedded with // if (TestUtil.isEmbeddedFramework())blocks if (TestUtil.isEmbeddedFramework()) tester.runTest(args); ...
1,105,925
public void bindStatement() 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(), ...
public void bindStatement() 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(), ...
1,105,926
public ExecRow setAfterLastRow() throws StandardException { if (! seenLast) { getLastRow(); } currentPosition = lastPosition + 1; afterLast = true; beforeFirst = false; currentRow = null; return null; }
public ExecRow setAfterLastRow() throws StandardException { if (! seenLast) { getLastRow(); } currentPosition = lastPosition + 1; afterLast = true; beforeFirst = false; currentRow = null; return null; }
1,105,929
public ExportResultSetForObject(Connection con, String schemaName, String tableName, String selectStatement ) { this.con = con; if( selectStatement == null) this.entityName = (schemaName == null ? tableName : schemaName + "." + tableName); this.selectStatement = selectStatement; }
public ExportResultSetForObject(Connection con, String schemaName, String tableName, String selectQuery ) { this.con = con; if( selectStatement == null) this.entityName = (schemaName == null ? tableName : schemaName + "." + tableName); this.selectStatement = selectStatement; }
1,105,930
public ExportResultSetForObject(Connection con, String schemaName, String tableName, String selectStatement ) { this.con = con; if( selectStatement == null) this.entityName = (schemaName == null ? tableName : schemaName + "." + tableName); this.selectStatement = selectStatement; }
public ExportResultSetForObject(Connection con, String schemaName, String tableName, String selectStatement ) { this.con = con; if( selectStatement == null) this.entityName = (schemaName == null ? tableName : schemaName + "." + tableName); this.selectStatement = selectStatement; }
1,105,931
private void getMetaDataInfo() throws Exception { ResultSetMetaData metaData = rs.getMetaData(); columnCount = metaData.getColumnCount(); int numColumns = columnCount; columnNames = new String[numColumns]; columnTypes = new String[numColumns]; columnLengths = new int[numColumns]; for (int i=0; i<numC...
private void getMetaDataInfo() throws Exception { ResultSetMetaData metaData = rs.getMetaData(); columnCount = metaData.getColumnCount(); int numColumns = columnCount; columnNames = new String[numColumns]; columnTypes = new String[numColumns]; columnLengths = new int[numColumns]; for (int i=0; i<numC...
1,105,932
private void getMetaDataInfo() throws Exception { ResultSetMetaData metaData = rs.getMetaData(); columnCount = metaData.getColumnCount(); int numColumns = columnCount; columnNames = new String[numColumns]; columnTypes = new String[numColumns]; columnLengths = new int[numColumns]; for (int i=0; i<numC...
private void getMetaDataInfo() throws Exception { ResultSetMetaData metaData = rs.getMetaData(); columnCount = metaData.getColumnCount(); int numColumns = columnCount; columnNames = new String[numColumns]; columnTypes = new String[numColumns]; columnLengths = new int[numColumns]; for (int i=0; i<numC...
1,105,933
public ResultSet getResultSet() throws Exception { rs = null; String queryString = getQuery(); //execute select on passed enitity and keep it's meta data info ready Statement expStmt = con.createStatement(); rs = expStmt.executeQuery(queryString); getMetaDataInfo(); return rs; }
public ResultSet getResultSet() throws Exception { rs = null; String queryString = getQuery(); //execute select on passed enitity and keep it's meta data info ready Statement expStmt = con.createStatement(); rs = expStmt.executeQuery(queryString); getMetaDataInfo(); return rs; }
1,105,934
public void executeGrantRevoke( Activation activation, boolean grant, List grantees) throws StandardException { LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); String currentUser = lcc.getAuthorizationId(); TransactionControll...
public void executeGrantRevoke( Activation activation, boolean grant, List grantees) throws StandardException { LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); String currentUser = lcc.getAuthorizationId(); TransactionControll...
1,105,935
public void executeGrantRevoke( Activation activation, boolean grant, List grantees) throws StandardException { LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); String currentUser = lcc.getAuthorizationId(); TransactionControll...
public void executeGrantRevoke( Activation activation, boolean grant, List grantees) throws StandardException { LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); String currentUser = lcc.getAuthorizationId(); TransactionControll...
1,105,936
public void executeGrantRevoke( Activation activation, boolean grant, List grantees) throws StandardException { LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); String currentUser = lcc.getAuthorizationId(); TransactionControll...
public void executeGrantRevoke( Activation activation, boolean grant, List grantees) throws StandardException { LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); String currentUser = lcc.getAuthorizationId(); TransactionControll...
1,105,937
private String buildDeleteString() throws SqlException { String deleteString = "DELETE FROM "; // build the update string using the server's cursor name deleteString += (getTableName() + " WHERE CURRENT OF " + getServerCursorName()); if (isRowsetCursor_) { deleteString += " FO...
private String buildDeleteString() throws SqlException { String deleteString = "DELETE FROM "; // build the update string using the server's cursor name deleteString += (getTableName() + " WHERE CURRENT OF \"" + getServerCursorName() + "\""); if (isRowsetCursor_) { deleteStrin...
1,105,939
private String getTableName() { String tableName = ""; if (resultSetMetaData_.sqlxRdbnam_[0] != null && !resultSetMetaData_.sqlxRdbnam_[0].equals("")) // catalog { tableName += resultSetMetaData_.sqlxRdbnam_[0].trim() + "."; } if (!resultSetMetaData_...
private String getTableName() throws SqlException { String tableName = ""; if (resultSetMetaData_.sqlxRdbnam_[0] != null && !resultSetMetaData_.sqlxRdbnam_[0].equals("")) // catalog { tableName += resultSetMetaData_.sqlxRdbnam_[0].trim() + "."; } if ...
1,105,943
private String getTableName() { String tableName = ""; if (resultSetMetaData_.sqlxRdbnam_[0] != null && !resultSetMetaData_.sqlxRdbnam_[0].equals("")) // catalog { tableName += resultSetMetaData_.sqlxRdbnam_[0].trim() + "."; } if (!resultSetMetaData_...
private String getTableName() { String tableName = ""; if (resultSetMetaData_.sqlxRdbnam_[0] != null && !resultSetMetaData_.sqlxRdbnam_[0].equals("")) // catalog { tableName += resultSetMetaData_.sqlxRdbnam_[0].trim() + "."; } if (!resultSetMetaData_...
1,105,944
private String getTableName() { String tableName = ""; if (resultSetMetaData_.sqlxRdbnam_[0] != null && !resultSetMetaData_.sqlxRdbnam_[0].equals("")) // catalog { tableName += resultSetMetaData_.sqlxRdbnam_[0].trim() + "."; } if (!resultSetMetaData_...
private String getTableName() { String tableName = ""; if (resultSetMetaData_.sqlxRdbnam_[0] != null && !resultSetMetaData_.sqlxRdbnam_[0].equals("")) // catalog { tableName += "\"" + resultSetMetaData_.sqlxRdbnam_[baseTableColumn] + "\"."; } if (!re...
1,105,945
private String getTableName() { String tableName = ""; if (resultSetMetaData_.sqlxRdbnam_[0] != null && !resultSetMetaData_.sqlxRdbnam_[0].equals("")) // catalog { tableName += resultSetMetaData_.sqlxRdbnam_[0].trim() + "."; } if (!resultSetMetaData_...
private String getTableName() { String tableName = ""; if (resultSetMetaData_.sqlxRdbnam_[0] != null && !resultSetMetaData_.sqlxRdbnam_[0].equals("")) // catalog { tableName += resultSetMetaData_.sqlxRdbnam_[0].trim() + "."; } if (!resultSetMetaData_...
1,105,946
private String getTableName() { String tableName = ""; if (resultSetMetaData_.sqlxRdbnam_[0] != null && !resultSetMetaData_.sqlxRdbnam_[0].equals("")) // catalog { tableName += resultSetMetaData_.sqlxRdbnam_[0].trim() + "."; } if (!resultSetMetaData_...
private String getTableName() { String tableName = ""; if (resultSetMetaData_.sqlxRdbnam_[0] != null && !resultSetMetaData_.sqlxRdbnam_[0].equals("")) // catalog { tableName += resultSetMetaData_.sqlxRdbnam_[0].trim() + "."; } if (!resultSetMetaData_...
1,105,947
public void updateRow() throws java.sql.SQLException { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "updateRow"); } updateRowX(); } }
public void updateRow() throws java.sql.SQLException { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "updateRow"); } if (updateRowX()) isValidCursorPosition_ = false; } }
1,105,948
private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ...
private boolean updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ...
1,105,949
private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ...
private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ...
1,105,951
private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ...
private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ...
1,105,952
private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ...
private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ...
1,105,953
private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ...
private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ...
1,105,954
private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ...
private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ...
1,105,955
public void embeddedUpdateBlob() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Blob)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted byte[] bytes1 = new by...
public void embeddedUpdateBlob() throws Exception { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Blob)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted byte[] bytes1 = new byte[...
1,105,957
public void embeddedUpdateBlob() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Blob)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted byte[] bytes1 = new by...
public void embeddedUpdateBlob() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Blob)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted byte[] bytes1 = new by...
1,105,958
public void embeddedUpdateBlobStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Blob)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted byt...
public void embeddedUpdateBlobStringParameterName() throws Exception { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Blob)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted byte[]...
1,105,959
public void embeddedUpdateBlobStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Blob)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted byt...
public void embeddedUpdateBlobStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Blob)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted byt...
1,105,960
public void embeddedUpdateClob() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Clob)"); //Initial set of bytes used to create the Ascii Stream for the Clob //that has to be inserted byte[] byt...
public void embeddedUpdateClob() throws Exception { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Clob)"); //Initial set of bytes used to create the Ascii Stream for the Clob //that has to be inserted byte[] bytes1...
1,105,961
public void embeddedUpdateClob() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Clob)"); //Initial set of bytes used to create the Ascii Stream for the Clob //that has to be inserted byte[] byt...
public void embeddedUpdateClob() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Clob)"); //Initial set of bytes used to create the Ascii Stream for the Clob //that has to be inserted byte[] byt...
1,105,962
public void embeddedUpdateClobStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Clob)"); //Initial set of bytes used to create the Ascii Stream for the Clob //that has to be inserte...
public void embeddedUpdateClobStringParameterName() throws Exception { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Clob)"); //Initial set of bytes used to create the Ascii Stream for the Clob //that has to be inserted ...
1,105,963
public void embeddedUpdateClobStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Clob)"); //Initial set of bytes used to create the Ascii Stream for the Clob //that has to be inserte...
public void embeddedUpdateClobStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Clob)"); //Initial set of bytes used to create the Ascii Stream for the Clob //that has to be inserte...
1,105,964
public void testUpdateAsciiStream() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); //Initial set of bytes used to create the Ascii Stream that has to //be inserted byte[] bytes...
public void testUpdateAsciiStream() throws Exception { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); //Initial set of bytes used to create the Ascii Stream that has to //be inserted byte[] bytes = ...
1,105,965
public void testUpdateAsciiStream() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); //Initial set of bytes used to create the Ascii Stream that has to //be inserted byte[] bytes...
public void testUpdateAsciiStream() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); //Initial set of bytes used to create the Ascii Stream that has to //be inserted byte[] bytes...
1,105,966
public void testUpdateAsciiStreamStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); //Initial set of bytes used to create the Ascii Stream that has to //be inserted ...
public void testUpdateAsciiStreamStringParameterName() throws Exception { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); //Initial set of bytes used to create the Ascii Stream that has to //be inserted ...
1,105,967
public void testUpdateAsciiStreamStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); //Initial set of bytes used to create the Ascii Stream that has to //be inserted ...
public void testUpdateAsciiStreamStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); //Initial set of bytes used to create the Ascii Stream that has to //be inserted ...
1,105,968
public void testUpdateBinaryStream() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR FOR BIT DATA)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted ...
public void testUpdateBinaryStream() throws Exception { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR FOR BIT DATA)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted ...
1,105,969
public void testUpdateBinaryStream() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR FOR BIT DATA)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted ...
public void testUpdateBinaryStream() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR FOR BIT DATA)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted ...
1,105,970
public void testUpdateBinaryStreamStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR FOR BIT DATA)"); //Initial set of bytes used to create the Binary Stream that has to ...
public void testUpdateBinaryStreamStringParameterName() throws Exception { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR FOR BIT DATA)"); //Initial set of bytes used to create the Binary Stream that has to //...
1,105,971
public void testUpdateBinaryStreamStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR FOR BIT DATA)"); //Initial set of bytes used to create the Binary Stream that has to ...
public void testUpdateBinaryStreamStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR FOR BIT DATA)"); //Initial set of bytes used to create the Binary Stream that has to ...
1,105,972
public void testUpdateCharacterStream() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); String str = "Test data"; String str_for_update = "Test data used for update"; StringRead...
public void testUpdateCharacterStream() throws Exception { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); String str = "Test data"; String str_for_update = "Test data used for update"; StringReader ...
1,105,973
public void testUpdateCharacterStream() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); String str = "Test data"; String str_for_update = "Test data used for update"; StringRead...
public void testUpdateCharacterStream() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); String str = "Test data"; String str_for_update = "Test data used for update"; StringRead...
1,105,974
public void testUpdateCharacterStreamStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); String str = "Test data"; String str_for_update = "Test data used for update"...
public void testUpdateCharacterStreamStringParameterName() throws Exception { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); String str = "Test data"; String str_for_update = "Test data used for update"; ...
1,105,975
public void testUpdateCharacterStreamStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); String str = "Test data"; String str_for_update = "Test data used for update"...
public void testUpdateCharacterStreamStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); String str = "Test data"; String str_for_update = "Test data used for update"...
1,105,976
public static Test suite() { TestSuite suite = new TestSuite("jdbcapi"); suite.addTest(ConcurrencyTest.suite()); suite.addTest(HoldabilityTest.suite()); suite.addTest(ProcedureTest.suite()); suite.addTest(SURQueryMixTest.suite()); suite.addTest(SURTest.suite()); suite.addTest(UpdateXXXTest.suite()); suite.addT...
public static Test suite() { TestSuite suite = new TestSuite("jdbcapi"); suite.addTest(ConcurrencyTest.suite()); suite.addTest(HoldabilityTest.suite()); suite.addTest(ProcedureTest.suite()); suite.addTest(SURQueryMixTest.suite()); suite.addTest(SURTest.suite()); suite.addTest(UpdateXXXTest.suite()); suite.addT...
1,105,977
public DataValueDescriptor getClone() { BinaryDecimal dvd = (BinaryDecimal) getNewNull(); dvd.data2c = this.data2c; dvd.sqlScale = this.sqlScale; return dvd; }
public DataValueDescriptor getClone() { BinaryDecimal dvd = (BinaryDecimal) getNewNull(); dvd.data2c = this.data2c; dvd.sqlScale = this.sqlScale; return dvd; }
1,105,978
private void addRowToHashTable(ExecRow sourceRow, int position, RowLocation rowLoc, boolean rowUpdated) throws StandardException { DataValueDescriptor[] hashRowArray = new DataValueDescriptor[sourceRowWidth + extraColumns]; // 1st element is the key hashRowArray[0] = new SQLInteger(position); if (isForUpdat...
private void addRowToHashTable(ExecRow sourceRow, int position, RowLocation rowLoc, boolean rowUpdated) throws StandardException { DataValueDescriptor[] hashRowArray = new DataValueDescriptor[sourceRowWidth + extraColumns]; // 1st element is the key hashRowArray[0] = new SQLInteger(position); if (isForUpdat...
1,105,979
private void addRowToHashTable(ExecRow sourceRow, int position, RowLocation rowLoc, boolean rowUpdated) throws StandardException { DataValueDescriptor[] hashRowArray = new DataValueDescriptor[sourceRowWidth + extraColumns]; // 1st element is the key hashRowArray[0] = new SQLInteger(position); if (isForUpdat...
private void addRowToHashTable(ExecRow sourceRow, int position, RowLocation rowLoc, boolean rowUpdated) throws StandardException { DataValueDescriptor[] hashRowArray = new DataValueDescriptor[sourceRowWidth + extraColumns]; // 1st element is the key hashRowArray[0] = new SQLInteger(position); if (isForUpdat...
1,105,980
public void markRowAsDeleted() throws StandardException { positionInHashTable.setValue(currentPosition); DataValueDescriptor[] hashRowArray = (DataValueDescriptor[]) ht.get(positionInHashTable); RowLocation rowLoc = (RowLocation) hashRowArray[POS_ROWLOCATION]; ht.remove(new SQLInteger(currentPosition)); ((SQ...
public void markRowAsDeleted() throws StandardException { positionInHashTable.setValue(currentPosition); DataValueDescriptor[] hashRowArray = (DataValueDescriptor[]) ht.get(positionInHashTable); RowLocation rowLoc = (RowLocation) hashRowArray[POS_ROWLOCATION]; ht.remove(new SQLInteger(currentPosition)); ((SQ...
1,105,981
public void openCore() throws StandardException { beginTime = getCurrentTimeMillis(); if (SanityManager.DEBUG) SanityManager.ASSERT( ! isOpen, "ScrollInsensitiveResultSet already open"); source.openCore(); isOpen = true; numOpens++; /* Create the hash table. We pass * null in as the row source a...
public void openCore() throws StandardException { beginTime = getCurrentTimeMillis(); if (SanityManager.DEBUG) SanityManager.ASSERT( ! isOpen, "ScrollInsensitiveResultSet already open"); source.openCore(); isOpen = true; numOpens++; /* Create the hash table. We pass * null in as the row source a...
1,105,982
public void updateRow(ExecRow row) throws StandardException { ExecRow newRow = row.getClone(); if (source instanceof ProjectRestrictResultSet) { newRow = ((ProjectRestrictResultSet)source). doBaseRowProjection(newRow); } positionInHashTable.setValue(currentPosition); DataValueDescriptor[] hashRowArray = (Da...
public void updateRow(ExecRow row) throws StandardException { ExecRow newRow = row; boolean undoProjection = false; if (source instanceof ProjectRestrictResultSet) { newRow = ((ProjectRestrictResultSet)source). doBaseRowProjection(newRow); } positionInHashTable.setValue(currentPosition); DataValueDescriptor...
1,105,983
public void updateRow(ExecRow row) throws StandardException { ExecRow newRow = row.getClone(); if (source instanceof ProjectRestrictResultSet) { newRow = ((ProjectRestrictResultSet)source). doBaseRowProjection(newRow); } positionInHashTable.setValue(currentPosition); DataValueDescriptor[] hashRowArray = (Da...
public void updateRow(ExecRow row) throws StandardException { ExecRow newRow = row.getClone(); if (source instanceof ProjectRestrictResultSet) { newRow = ((ProjectRestrictResultSet)source). doBaseRowProjection(row); undoProjection = true; } positionInHashTable.setValue(currentPosition); DataValueDescriptor[...
1,105,984
public Object run() throws StandardException { switch( actionCode) { case GET_FILE_NAME_ACTION: return privGetFileName( actionIdentity, actionStub, actionErrorOK, actionTryAlternatePath); case CREATE_CONTAINER_ACTION: { StorageFile file = privGetF...
public Object run() throws StandardException { switch( actionCode) { case GET_FILE_NAME_ACTION: return privGetFileName( actionIdentity, actionStub, actionErrorOK, actionTryAlternatePath); case CREATE_CONTAINER_ACTION: { StorageFile file = privGetF...
1,105,987
public void setInto(PreparedStatement ps, int position) throws SQLException, StandardException { ps.setBlob(position,null); }
public void setInto(PreparedStatement ps, int position) throws SQLException, StandardException { ps.setBlob(position,null); }
1,105,989
public CostEstimate getFinalCostEstimate() { if (SanityManager.DEBUG) { if (costEstimate == null) { SanityManager.THROWASSERT( "costEstimate is not expected to be null for " + getClass().getName()); } } return costEstimate; }
public CostEstimate getFinalCostEstimate() { if (SanityManager.DEBUG) { if (finalCostEstimate == null) { SanityManager.THROWASSERT( "costEstimate is not expected to be null for " + getClass().getName()); } } return costEstimate; }
1,105,990
public CostEstimate getFinalCostEstimate() { if (SanityManager.DEBUG) { if (costEstimate == null) { SanityManager.THROWASSERT( "costEstimate is not expected to be null for " + getClass().getName()); } } return costEstimate; }
public CostEstimate getFinalCostEstimate() { if (SanityManager.DEBUG) { if (costEstimate == null) { SanityManager.THROWASSERT( "finalCostEstimate is not expected to be null for " + getClass().getName()); } } return costEstimate; }
1,105,991
public CostEstimate getFinalCostEstimate() { if (SanityManager.DEBUG) { if (costEstimate == null) { SanityManager.THROWASSERT( "costEstimate is not expected to be null for " + getClass().getName()); } } return costEstimate; }
public CostEstimate getFinalCostEstimate() { if (SanityManager.DEBUG) { if (costEstimate == null) { SanityManager.THROWASSERT( "costEstimate is not expected to be null for " + getClass().getName()); } } return finalCostEstimate; }
1,105,992
protected Optimizer getOptimizer( OptimizableList optList, OptimizablePredicateList predList, DataDictionary dataDictionary, RequiredRowOrdering requiredRowOrdering) throws StandardException { if (optimizer == null) { /* Get an optimizer. */ OptimizerFactory optimizerFactory = getLangua...
protected Optimizer getOptimizer( OptimizableList optList, OptimizablePredicateList predList, DataDictionary dataDictionary, RequiredRowOrdering requiredRowOrdering) throws StandardException { if (optimizer == null) { /* Get an optimizer. */ OptimizerFactory optimizerFactory = getLangua...
1,105,993
private boolean oneAuthHasPermissionOnTable(DataDictionary dd, String authorizationId, boolean forGrant) throws StandardException { TablePermsDescriptor perms = dd.getTablePermissions( tableUUID, authorizationId); if( perms == null) return false; String priv = null; switch( privType) { case Authorizer.SE...
protected boolean oneAuthHasPermissionOnTable(DataDictionary dd, String authorizationId, boolean forGrant) throws StandardException { TablePermsDescriptor perms = dd.getTablePermissions( tableUUID, authorizationId); if( perms == null) return false; String priv = null; switch( privType) { case Authorizer....
1,105,994
protected void compressContainer( RawTransaction ntt, BaseContainerHandle allocHandle) throws StandardException { AllocPage alloc_page = null; AllocPage prev_alloc_page = null; if (firstAllocPageNumber == ContainerHandle.INVALID_PAGE_NUMBER) { // no allocation pages in container...
protected void compressContainer( RawTransaction ntt, BaseContainerHandle allocHandle) throws StandardException { AllocPage alloc_page = null; AllocPage prev_alloc_page = null; if (firstAllocPageNumber == ContainerHandle.INVALID_PAGE_NUMBER) { // no allocation pages in container...
1,105,995
public LogAccessFile( StorageRandomAccessFile log, int bufferSize) throws IOException { if (SanityManager.DEBUG) { if(SanityManager.DEBUG_ON("LogBufferOff")) bufferSize = 10; // make it very tiny } this.log = log; logFileSemaphore = log; if (SanityManager.DEBUG)...
public LogAccessFile( StorageRandomAccessFile log, int bufferSize) throws IOException { if (SanityManager.DEBUG) { if(SanityManager.DEBUG_ON("LogBufferOff")) bufferSize = 10; // make it very tiny } this.log = log; logFileSemaphore = log; if (SanityManager.DEBUG)...
1,105,997
public void close() throws IOException { if (SanityManager.DEBUG) { if (currentBuffer.position != 0) SanityManager.THROWASSERT( "Log file being closed with data still buffered " + currentBuffer.position + " " + currentBuffer.bytes_free); } flushLogAccessFile(); synchronized(log...
public void close() throws IOException, StandardException { if (SanityManager.DEBUG) { if (currentBuffer.position != 0) SanityManager.THROWASSERT( "Log file being closed with data still buffered " + currentBuffer.position + " " + currentBuffer.bytes_free); } flushLogAccessFile()...
1,105,999
public void close() throws IOException { if (SanityManager.DEBUG) { if (currentBuffer.position != 0) SanityManager.THROWASSERT( "Log file being closed with data still buffered " + currentBuffer.position + " " + currentBuffer.bytes_free); } flushLogAccessFile(); synchronized(log...
public void close() throws IOException { if (SanityManager.DEBUG) { if (currentBuffer.position != checksumLogRecordSize) SanityManager.THROWASSERT( "Log file being closed with data still buffered " + currentBuffer.position + " " + currentBuffer.bytes_free); } flushLogAccessFile...
1,106,000
public void flushLogAccessFile() throws IOException { switchLogBuffer(); flushDirtyBuffers(); }
public void flushLogAccessFile() throws IOException, StandardException { switchLogBuffer(); flushDirtyBuffers(); }
1,106,001
public void switchLogBuffer() throws IOException { synchronized(this) { //add the current buffer to the flush buffer list dirtyBuffers.addLast(currentBuffer); //if there is No free buffer, flush the buffers to get a free one if(freeBuffers.size() == 0) { flushDirtyBuffers(); //after the flush ...
public void switchLogBuffer() throws IOException, StandardException { synchronized(this) { //add the current buffer to the flush buffer list dirtyBuffers.addLast(currentBuffer); //if there is No free buffer, flush the buffers to get a free one if(freeBuffers.size() == 0) { flushDirtyBuffers(); ...
1,106,002
public void switchLogBuffer() throws IOException { synchronized(this) { //add the current buffer to the flush buffer list dirtyBuffers.addLast(currentBuffer); //if there is No free buffer, flush the buffers to get a free one if(freeBuffers.size() == 0) { flushDirtyBuffers(); //after the flush ...
public void switchLogBuffer() throws IOException { synchronized(this) { //add the current buffer to the flush buffer list dirtyBuffers.addLast(currentBuffer); //if there is No free buffer, flush the buffers to get a free one if(freeBuffers.size() == 0) { flushDirtyBuffers(); //after the flush ...
1,106,003
public void switchLogBuffer() throws IOException { synchronized(this) { //add the current buffer to the flush buffer list dirtyBuffers.addLast(currentBuffer); //if there is No free buffer, flush the buffers to get a free one if(freeBuffers.size() == 0) { flushDirtyBuffers(); //after the flush ...
public void switchLogBuffer() throws IOException { synchronized(this) { //add the current buffer to the flush buffer list dirtyBuffers.addLast(currentBuffer); //if there is No free buffer, flush the buffers to get a free one if(freeBuffers.size() == 0) { flushDirtyBuffers(); //after the flush ...
1,106,004
public void switchLogBuffer() throws IOException { synchronized(this) { //add the current buffer to the flush buffer list dirtyBuffers.addLast(currentBuffer); //if there is No free buffer, flush the buffers to get a free one if(freeBuffers.size() == 0) { flushDirtyBuffers(); //after the flush ...
public void switchLogBuffer() throws IOException { synchronized(this) { //add the current buffer to the flush buffer list dirtyBuffers.addLast(currentBuffer); //if there is No free buffer, flush the buffers to get a free one if(freeBuffers.size() == 0) { flushDirtyBuffers(); //after the flush ...
1,106,005
public void write(int b) throws IOException { if (currentBuffer.bytes_free == 0) switchLogBuffer(); currentBuffer.buffer[currentBuffer.position++] = (byte) b; currentBuffer.bytes_free--; }
public void write(int b) { if (currentBuffer.bytes_free == 0) switchLogBuffer(); currentBuffer.buffer[currentBuffer.position++] = (byte) b; currentBuffer.bytes_free--; }
1,106,006
public void write(int b) throws IOException { if (currentBuffer.bytes_free == 0) switchLogBuffer(); currentBuffer.buffer[currentBuffer.position++] = (byte) b; currentBuffer.bytes_free--; }
public void write(int b) throws IOException { if (currentBuffer.bytes_free == 0) switchLogBuffer(); currentBuffer.buffer[currentBuffer.position++] = (byte) b; currentBuffer.bytes_free--; }
1,106,007
public void writeInt(int i) throws IOException { if (currentBuffer.bytes_free < 4) switchLogBuffer(); byte[] b = currentBuffer.buffer; int p = currentBuffer.position; b[p++] = (byte) ((i >>> 24) & 0xff); b[p++] = (byte) ((i >>> 16) & 0xff); b[p++] = (byte) ((i >>> 8) & 0xff); b[...
public void writeInt(int i) throws IOException { if (currentBuffer.bytes_free < 4) switchLogBuffer(); byte[] b = currentBuffer.buffer; int p = currentBuffer.position; b[p++] = (byte) ((i >>> 24) & 0xff); b[p++] = (byte) ((i >>> 16) & 0xff); b[p++] = (byte) ((i >>> 8) & 0xff); b[...
1,106,008
public void writeInt(int i) throws IOException { if (currentBuffer.bytes_free < 4) switchLogBuffer(); byte[] b = currentBuffer.buffer; int p = currentBuffer.position; b[p++] = (byte) ((i >>> 24) & 0xff); b[p++] = (byte) ((i >>> 16) & 0xff); b[p++] = (byte) ((i >>> 8) & 0xff); b[...
public void writeInt(int i) throws IOException { if (currentBuffer.bytes_free < 4) switchLogBuffer(); byte[] b = currentBuffer.buffer; int p = currentBuffer.position; b[p++] = (byte) ((i >>> 24) & 0xff); b[p++] = (byte) ((i >>> 16) & 0xff); b[p++] = (byte) ((i >>> 8) & 0xff); b[...
1,106,009
public void writeLogRecord( int length, long instant, byte[] data, int data_offset, byte[] optional_data, int optional_data_offset, int optional_data_length) throws StandardException, IOException { int total_log_record_length = length + LOG_RECORD_FIXED_OV...
public void writeLogRecord( int length, long instant, byte[] data, int data_offset, byte[] optional_data, int optional_data_offset, int optional_data_length) throws StandardException, IOException { int total_log_record_length = length + LOG_RECORD_FIXED_OV...
1,106,010