rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
public BulkTableScanResultSet(long conglomId, | BulkTableScanResultSet(long conglomId, | public BulkTableScanResultSet(long conglomId, StaticCompiledOpenConglomInfo scoci, Activation activation, GeneratedMethod resultRowAllocator, int resultSetNumber, GeneratedMethod startKeyGetter, int startSearchOperator, GeneratedMethod stopKeyGetter, int stopSearchOperator, boolean sameStartStopPosition, Q... |
double optimizerEstimatedCost, GeneratedMethod closeCleanup) | double optimizerEstimatedCost) | public BulkTableScanResultSet(long conglomId, StaticCompiledOpenConglomInfo scoci, Activation activation, GeneratedMethod resultRowAllocator, int resultSetNumber, GeneratedMethod startKeyGetter, int startSearchOperator, GeneratedMethod stopKeyGetter, int stopSearchOperator, boolean sameStartStopPosition, Q... |
optimizerEstimatedCost, closeCleanup); | optimizerEstimatedCost); | public BulkTableScanResultSet(long conglomId, StaticCompiledOpenConglomInfo scoci, Activation activation, GeneratedMethod resultRowAllocator, int resultSetNumber, GeneratedMethod startKeyGetter, int startSearchOperator, GeneratedMethod stopKeyGetter, int stopSearchOperator, boolean sameStartStopPosition, Q... |
public ResultSet execute(LanguageConnectionContext lcc, boolean rollbackParentContext) | public ResultSet execute(LanguageConnectionContext lcc, boolean rollbackParentContext, long timeoutMillis) | public ResultSet execute(LanguageConnectionContext lcc, boolean rollbackParentContext) throws StandardException { Activation a = getActivation(lcc, false); a.setSingleExecution(); return execute(a, false, false, rollbackParentContext); } |
return execute(a, false, false, rollbackParentContext); | return execute(a, false, false, rollbackParentContext, timeoutMillis); | public ResultSet execute(LanguageConnectionContext lcc, boolean rollbackParentContext) throws StandardException { Activation a = getActivation(lcc, false); a.setSingleExecution(); return execute(a, false, false, rollbackParentContext); } |
ps2.setString(1, "APP"); ps2.setString(2, "TENKTUP1"); ps2.setInt(3, 0); ps2.executeUpdate(); conn.commit(); ps2.setString(1, "APP"); ps2.setString(2, "TENKTUP2"); ps2.setInt(3, 0); ps2.executeUpdate(); conn.commit(); ps2.setString(1, "APP"); ps2.setString(2, "ONEKTUP"); ps2.setInt(3, 0); ps2.executeUpdate(); conn.co... | private static void createTables(Connection conn) throws SQLException{ Statement stmt = conn.createStatement(); stmt.execute("create table TENKTUP1 ( unique1 int not null, " + "unique2 int not null, " + "two int, " + "four int, " + "ten int, " + "twenty int, "... | |
generateHolder(acb); | public void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException { DataTypeDescriptor dtd = getTypeServices(); if ((dtd != null) && dtd.getTypeId().isXMLTypeId()) { // We're a parameter that corresponds to an XML column/target, // which we don't allow. We thr... | |
public int getParameterNumber() | int getParameterNumber() | public int getParameterNumber() { return parameterNumber; } |
public void setDescriptors(DataTypeDescriptor[] descriptors) | void setDescriptors(DataTypeDescriptor[] descriptors) | public void setDescriptors(DataTypeDescriptor[] descriptors) { // The following is commented out for #3546, for create publication // or target ddl creations there could be multiple statements trying // to bind their own parameters. So the following assumptions does not // hold true. // i... |
this.lastDSSBeforeMark = -1; | DDMWriter (int minSize, CcsidManager ccsidManager, DRDAConnThread agent, DssTrace dssTrace) { this.bytes = new byte[minSize]; this.ccsidManager = ccsidManager; this.agent = agent; this.prevHdrLocation = -1; this.previousCorrId = DssConstants.CORRELATION_ID_UNKNOWN; this.previousChainByte = DssConstants.DSS_NOCHA... | |
public NestedLoopLeftOuterJoinResultSet( | NestedLoopLeftOuterJoinResultSet( | public NestedLoopLeftOuterJoinResultSet( NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, GeneratedMethod emptyRowFun, boolean wasRightOuterJoin, ... |
String userSuppliedOptimizerOverrides, GeneratedMethod closeCleanup) | String userSuppliedOptimizerOverrides) | public NestedLoopLeftOuterJoinResultSet( NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, GeneratedMethod emptyRowFun, boolean wasRightOuterJoin, ... |
userSuppliedOptimizerOverrides, closeCleanup); | userSuppliedOptimizerOverrides); | public NestedLoopLeftOuterJoinResultSet( NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, GeneratedMethod emptyRowFun, boolean wasRightOuterJoin, ... |
Enumeration enum = tableProperties.keys(); | Enumeration e = tableProperties.keys(); | public void verifyProperties(DataDictionary dDictionary) throws StandardException { if (tableProperties == null) { return; } /* Check here for: * invalid properties key * index and constraint properties * non-existent index * non-existent constraint * invalid joinStrategy * invalid value for h... |
while (enum.hasMoreElements()) | while (e.hasMoreElements()) | public void verifyProperties(DataDictionary dDictionary) throws StandardException { if (tableProperties == null) { return; } /* Check here for: * invalid properties key * index and constraint properties * non-existent index * non-existent constraint * invalid joinStrategy * invalid value for h... |
String key = (String) enum.nextElement(); | String key = (String) e.nextElement(); | public void verifyProperties(DataDictionary dDictionary) throws StandardException { if (tableProperties == null) { return; } /* Check here for: * invalid properties key * index and constraint properties * non-existent index * non-existent constraint * invalid joinStrategy * invalid value for h... |
if (constraintSpecified) { ConglomerateDescriptor cd = dDictionary.getConglomerateDescriptor( consDesc.getConglomerateId()); String indexName = cd.getConglomerateName(); tableProperties.remove("constraint"); tableProperties.put("index", indexName); } } | public void verifyProperties(DataDictionary dDictionary) throws StandardException { if (tableProperties == null) { return; } /* Check here for: * invalid properties key * index and constraint properties * non-existent index * non-existent constraint * invalid joinStrategy * invalid value for h... | |
protected DRDAResultSet(ResultSet rs) throws SQLException | protected DRDAResultSet() | protected DRDAResultSet(ResultSet rs) throws SQLException { setResultSet(rs); state = NOT_OPENED; } |
setResultSet(rs); | protected DRDAResultSet(ResultSet rs) throws SQLException { setResultSet(rs); state = NOT_OPENED; } | |
getCompilerContext().addRequiredRoutinePriv(ad); | if (isPrivilegeCollectionRequired()) getCompilerContext().addRequiredRoutinePriv(ad); | public JavaValueNode bindExpression( FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { // for a function we can get called recursively if (alreadyBound) return this; bindParameters(fromList, subqueryList, aggregateVector); /* If javaClassName is null then we ... |
super(agent, connection, sql, type, concurrency, holdability); ps = new PreparedStatement40(agent, connection, sql, type, concurrency, holdability, java.sql.Statement.NO_GENERATED_KEYS, null); | super(agent, connection, sql, type, concurrency, holdability); | 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... |
checkIfClosed("insertRow"); | protected void checksBeforeInsert() throws SQLException { // 1)Make sure this is an updatable ResultSet // if not updatable resultset, then throw exception checkUpdatableCursor("insertRow"); // 2)Make sure JDBC ResultSet is not closed checkIfClosed("insertRow"); // 3)Make s... | |
checkIfClosed("insertRow"); | protected void checksBeforeInsert() throws SQLException { // 1)Make sure this is an updatable ResultSet // if not updatable resultset, then throw exception checkUpdatableCursor("insertRow"); // 2)Make sure JDBC ResultSet is not closed checkIfClosed("insertRow"); // 3)Make s... | |
checkIfClosed(methodName); | protected void checksBeforeUpdateOrDelete(String methodName, int columnIndex) throws SQLException { //1)Make sure this is an updatable ResultSet checkUpdatableCursor(methodName); //2)Make sure JDBC ResultSet is not closed checkIfClosed(methodName); //3)Make sure JDBC ResultSet is positioned on... | |
checkIfClosed(methodName); | protected void checksBeforeUpdateOrDelete(String methodName, int columnIndex) throws SQLException { //1)Make sure this is an updatable ResultSet checkUpdatableCursor(methodName); //2)Make sure JDBC ResultSet is not closed checkIfClosed(methodName); //3)Make sure JDBC ResultSet is positioned on... | |
checkIfClosed("getConcurrency"); | public int getConcurrency() throws SQLException { return concurrencyOfThisResultSet; } | |
checkIfClosed("getFetchDirection"); | public int getFetchDirection() throws SQLException { if (fetchDirection == 0) { // value is not set at the result set level // get it from the statement level return stmt.getFetchDirection(); } else return fetchDirection; } | |
checkIfClosed("getFetchSize"); | public int getFetchSize() throws SQLException { if (fetchSize == 0) { // value is not set at the result set level // get the default value from the statement return stmt.getFetchSize(); } else return fetchSize; } | |
checkIfClosed("getRow"); | public int getRow() throws SQLException { // getRow() is only allowed on scroll cursors checkScrollCursor("getRow()"); /* * * We probably needn't bother getting the text of * the underlying * statement but it is better to be * consistent and we aren't * particularly worried * about performance of getRow(). ... | |
public final Statement getStatement() | public final Statement getStatement() throws SQLException | public final Statement getStatement() { return applicationStmt; } |
checkIfClosed("getStatement"); | public final Statement getStatement() { return applicationStmt; } | |
checkIfClosed("getType"); | public int getType() throws SQLException { return stmt.getResultSetType(); } | |
checkExecIfClosed("moveToCurrentRow"); | public void moveToCurrentRow() throws SQLException { // if not updatable resultset, then throw exception checkUpdatableCursor("moveToCurrentRow"); checkExecIfClosed("moveToCurrentRow"); synchronized (getConnectionSynchronization()) { try { if (isOnInsertRow) { // Get position previous to moveToInsertRow ... | |
checkExecIfClosed("moveToInsertRow"); | public void moveToInsertRow() throws SQLException { // if not updatable resultset, then throw exception checkUpdatableCursor("moveToInsertRow"); checkExecIfClosed("moveToInsertRow"); synchronized (getConnectionSynchronization()) { try { // initialize state corresponding to insertRow/updateRow impl. for (in... | |
checkIfClosed("rowDeleted"); | public boolean rowDeleted() throws SQLException { return false; } | |
checkIfClosed("rowInserted"); | public boolean rowInserted() throws SQLException { return false; } | |
checkIfClosed("rowUpdated"); | public boolean rowUpdated() throws SQLException { return false; } | |
checkIfClosed("setFetchDirection"); | public void setFetchDirection(int direction) throws SQLException { checkScrollCursor("setFetchDirection()"); /* * FetchDirection is meaningless to us. We just save it off and return * the current value if asked. */ fetchDirection = direction; } | |
checkIfClosed("setFetchSize"); | public void setFetchSize(int rows) throws SQLException { if (rows < 0 || (stmt.getMaxRows() != 0 && rows > stmt.getMaxRows())) { throw Util.generateCsSQLException(SQLState.INVALID_FETCH_SIZE, new Integer(rows)); } else if (rows > 0) // if it is zero ignore the call { fetchSize = rows; } } | |
final TestSuite suite = new TestSuite(suiteName(testClass)); suite.addTest(new CleanDatabaseTestSetup(embeddedSuite(testClass))); suite.addTest(new CleanDatabaseTestSetup(clientServerSuite(testClass))); return (suite); | return defaultSuite(testClass, true); | public static Test defaultSuite(Class testClass) { final TestSuite suite = new TestSuite(suiteName(testClass)); suite.addTest(new CleanDatabaseTestSetup(embeddedSuite(testClass))); suite.addTest(new CleanDatabaseTestSetup(clientServerSuite(testClass))); return (su... |
Enumeration enum = properties.keys(); while (enum.hasMoreElements()) | Enumeration e = properties.keys(); while (e.hasMoreElements()) | public void setProperties(Properties props) throws StandardException { properties = props; /* ** Validate the properties list now. This is possible because ** there is nothing in this properties list that relies on binding ** or optimization to validate. */ Enumeration enum = properties.keys(); while (enum.ha... |
String key = (String) enum.nextElement(); | String key = (String) e.nextElement(); | public void setProperties(Properties props) throws StandardException { properties = props; /* ** Validate the properties list now. This is possible because ** there is nothing in this properties list that relies on binding ** or optimization to validate. */ Enumeration enum = properties.keys(); while (enum.ha... |
} | public void setProperties(Properties props) throws StandardException { properties = props; /* ** Validate the properties list now. This is possible because ** there is nothing in this properties list that relies on binding ** or optimization to validate. */ Enumeration enum = properties.keys(); while (enum.ha... | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | ConsoleReader consoleReader; | public void doTag(XMLOutput output) { if (question != null) { if (defaultInput != null) { System.out.println(question + " [" + defaultInput + "]"); } else { System.out.println(question); } // ... |
input = br.readLine(); if (defaultInput != null && input.trim().equals("")) { input = defaultInput; | consoleReader = new ConsoleReader(); } catch (IOException e) { logger.warn("couldnt create console reader", e); consoleReader = null; } String disableJlineProp = System.getProperty("ask.jline.disable"); boolean disableJline = (disableJlineProp != null && disableJlineProp .equals("true")); try { if (consoleReader != n... | public void doTag(XMLOutput output) { if (question != null) { if (defaultInput != null) { System.out.println(question + " [" + defaultInput + "]"); } else { System.out.println(question); } // ... |
} catch (IOException ioe) { | } catch (IOException ex) { logger.warn("error setting up the console reader", ex); | public void doTag(XMLOutput output) { if (question != null) { if (defaultInput != null) { System.out.println(question + " [" + defaultInput + "]"); } else { System.out.println(question); } // ... |
return rafContainerFactory.newRAFContainer(this); | return newRAFContainer(this); | Cacheable newContainerObject() { if( supportsRandomAccess) return rafContainerFactory.newRAFContainer(this); else return new InputStreamContainer( this); } |
JoinStrategy trulyTheBestJoinStrategy = getTrulyTheBestAccessPath().getJoinStrategy(); | AccessPath ap = getTrulyTheBestAccessPath(); JoinStrategy trulyTheBestJoinStrategy = ap.getJoinStrategy(); | private int getScanArguments(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException { // get a function to allocate scan rows of the right shape and size MethodBuilder resultRowAllocator = resultColumns.generateHolderMethod(acb, referencedCols, (Fo... |
getCompilerContext(). getScanIsolationLevel() | getCompilerContext().getScanIsolationLevel(), ap.getOptimizer().getMaxMemoryPerTable() | private int getScanArguments(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException { // get a function to allocate scan rows of the right shape and size MethodBuilder resultRowAllocator = resultColumns.generateHolderMethod(acb, referencedCols, (Fo... |
return (connection_.xaState_ == Connection.XA_LOCAL) ; | return (connection_.xaState_ == Connection.XA_T0_NOT_ASSOCIATED) ; | private boolean willTickleServer(int number, boolean allowAutoCommits) throws SqlException { boolean requiresAutocommit = false; if (resultSetList_ != null) { for (int i = 0; i < number; i++) { if (resultSetList_[i] != null) { if (resultSetList_[i].openOnSe... |
columnList[ SYSROUTINEPERMS_ROUTINPERMSID - 1] = | columnList[ ROUTINPERMSID_COL_NUM - 1] = | public SystemColumn[] buildColumnList() { if (columnList == null) { columnList = new SystemColumn[ COLUMN_COUNT]; columnList[ SYSROUTINEPERMS_ROUTINPERMSID - 1] = new SystemColumnImpl( convertIdCase( "ROUTINEPERMSID"), SYSROUTINEPERMS... |
SYSROUTINEPERMS_ROUTINPERMSID, | ROUTINPERMSID_COL_NUM, | public SystemColumn[] buildColumnList() { if (columnList == null) { columnList = new SystemColumn[ COLUMN_COUNT]; columnList[ SYSROUTINEPERMS_ROUTINPERMSID - 1] = new SystemColumnImpl( convertIdCase( "ROUTINEPERMSID"), SYSROUTINEPERMS... |
String routinePermsUUIDString = row.getColumn(SYSROUTINEPERMS_ROUTINPERMSID).getString(); | String routinePermsUUIDString = row.getColumn(ROUTINPERMSID_COL_NUM).getString(); | public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTuple, DataDictionary dataDictionary) throws StandardException { if( SanityManager.DEBUG) SanityManager.ASSERT( row.nColumns() == COLUMN_CO... |
case ROUTINEPERMSID_INDEX_NUM: row.setColumn(1, getDataValueFactory().getNullChar( (StringDataValue) null)); break; | public ExecIndexRow buildEmptyIndexRow(int indexNumber, RowLocation rowLocation) throws StandardException { ExecIndexRow row = getExecutionFactory().getIndexableRow( indexColumnPositions[indexNumber].length + 1); row.setColumn( row.nColumns(), rowLocation... | |
case ROUTINEPERMSID_INDEX_NUM: row = getExecutionFactory().getIndexableRow( 1); String routinePermsUUIDStr = perm.getObjectID().toString(); row.setColumn(1, getDataValueFactory().getCharDataValue( routinePermsUUIDStr)); break; | public ExecIndexRow buildIndexKeyRow( int indexNumber, PermissionsDescriptor perm) throws StandardException { ExecIndexRow row = null; switch( indexNumber) { case GRANTEE_ALIAS_GRANTOR_INDEX_NUM: // RESOLVE We do not suppo... | |
row.setColumn( SYSROUTINEPERMS_ROUTINPERMSID, dvf.getCharDataValue(routinePermID)); | row.setColumn( ROUTINPERMSID_COL_NUM, dvf.getCharDataValue(routinePermID)); | 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 =... |
timeoutSeconds = 0; | public EmbedStatement (EmbedConnection connection, boolean forMetaData, int resultSetType, int resultSetConcurrency, int resultSetHoldability) { super(connection); this.forMetaData = forMetaData; this.resultSetType = resultSetType; this.resultSetConcurrency = resultSetConcurrency; this.resultSetHoldabi... | |
long timeoutMillis = (long)timeoutSeconds * 1000L; ps.setQueryTimeout(timeoutMillis); | protected boolean executeStatement(Activation a, boolean executeQuery, boolean executeUpdate) throws SQLException { // we don't differentiate the update from the resultset case. // so, there could be a result set. // note: the statement interface will paste together // an ac... | |
public int getQueryTimeout() throws SQLException { return(0); | public final int getQueryTimeout() throws SQLException { return timeoutSeconds; | public int getQueryTimeout() throws SQLException { // Currently Cloudscape does not support any sort of timeout, so always // return 0, which means that timeout is unlimited. return(0); } |
public void setQueryTimeout(int seconds) throws SQLException { if (seconds != 0) throw Util.notImplemented("setQueryTimeout"); | public final void setQueryTimeout(int seconds) throws SQLException { checkStatus(); if (seconds < 0) { throw newSQLException(SQLState.INVALID_QUERYTIMEOUT_VALUE, new Integer(seconds)); } timeoutSeconds = seconds; | public void setQueryTimeout(int seconds) throws SQLException { if (seconds != 0) throw Util.notImplemented("setQueryTimeout"); } |
InputStream is = loadModuleDefinitions(); | Properties moduleList = new Properties(); boolean firstList = true; | protected Vector getDefaultImplementations() { InputStream is = loadModuleDefinitions(); if (is == null) { if (SanityManager.DEBUG) report("Default implementation list not found"); return null; } Properties moduleList = new Properties(); try { moduleList.load(is); } catch (IOException ioe) { if (Sanit... |
if (is == null) { | try { for( Enumeration e = ClassLoader.getSystemResources( "org/apache/derby/modules.properties"); e.hasMoreElements() ;) { URL modulesPropertiesURL = (URL) e.nextElement(); InputStream is = null; try { is = loadModuleDefinitions( modulesPropertiesURL); if( firstList) { moduleList.load( is); firstList = false; } else {... | protected Vector getDefaultImplementations() { InputStream is = loadModuleDefinitions(); if (is == null) { if (SanityManager.DEBUG) report("Default implementation list not found"); return null; } Properties moduleList = new Properties(); try { moduleList.load(is); } catch (IOException ioe) { if (Sanit... |
Properties moduleList = new Properties(); try { moduleList.load(is); } catch (IOException ioe) { if (SanityManager.DEBUG) report("Can't load default implementation list: " + ioe.toString()); return null; } finally { try { is.close(); } catch (IOException ioe2) { } } | protected Vector getDefaultImplementations() { InputStream is = loadModuleDefinitions(); if (is == null) { if (SanityManager.DEBUG) report("Default implementation list not found"); return null; } Properties moduleList = new Properties(); try { moduleList.load(is); } catch (IOException ioe) { if (Sanit... | |
Class persistentServiceClass = PersistentService.class; | protected Vector getImplementations(Properties moduleList, boolean actualModuleList) { if (moduleList == null) return null; Vector implementations = actualModuleList ? new Vector(moduleList.size()) : new Vector(0,1); Class persistentServiceClass = PersistentService.class; // Get my current JDK environment int t... | |
if (persistentServiceClass.isAssignableFrom(possibleModule)) { PersistentService ps = (PersistentService) newInstance(possibleModule); if (ps == null) { report("Class " + className + " cannot create instance, module ignored."); continue; } if (serviceProviders == null) serviceProviders = new Hashtable(3, (float) 1.0);... | if (getPersistentServiceImplementation(possibleModule)) continue; | protected Vector getImplementations(Properties moduleList, boolean actualModuleList) { if (moduleList == null) return null; Vector implementations = actualModuleList ? new Vector(moduleList.size()) : new Vector(0,1); Class persistentServiceClass = PersistentService.class; // Get my current JDK environment int t... |
} | else if( key.startsWith( Property.SUB_SUB_PROTOCOL_PREFIX)) { String subSubProtocol = key.substring( Property.SUB_SUB_PROTOCOL_PREFIX.length()); String className = moduleList.getProperty(key); if (SanityManager.DEBUG && reportOn) { report("Accessing module " + className + " to run initializers at boot time"); } try { ... | protected Vector getImplementations(Properties moduleList, boolean actualModuleList) { if (moduleList == null) return null; Vector implementations = actualModuleList ? new Vector(moduleList.size()) : new Vector(0,1); Class persistentServiceClass = PersistentService.class; // Get my current JDK environment int t... |
return (String) builtInStorageFactory.get( subSubProtocol); | return (String) storageFactories.get( subSubProtocol); | private String getStorageFactoryClassName( Properties properties, String subSubProtocol) { String propertyName = Property.SUB_SUB_PROTOCOL_PREFIX + subSubProtocol; String className = null; if( properties != null) className = properties.getProperty( propertyName); if( classN... |
protected InputStream loadModuleDefinitions() { | protected InputStream loadModuleDefinitions( URL propertyFileURL) throws IOException { | protected InputStream loadModuleDefinitions() { // SECURITY PERMISSION - IP1 return getClass().getResourceAsStream("/org/apache/derby/modules.properties"); } |
return getClass().getResourceAsStream("/org/apache/derby/modules.properties"); | return propertyFileURL.openStream(); | protected InputStream loadModuleDefinitions() { // SECURITY PERMISSION - IP1 return getClass().getResourceAsStream("/org/apache/derby/modules.properties"); } |
agent_.logWriter_.traceEntry(this, "updateBinaryStream", column, x, length); | agent_.logWriter_.traceEntry(this, "", column, x, length); | public void updateBinaryStream(int column, java.io.InputStream x, int length) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.trace... |
java.io.File file = new java.io.File("short.txt"); | java.io.File file = new java.io.File("short.utf"); | public static void largeTest(String[] args) throws Exception{ System.out.println("connecting"); Connection conn = connectAndCreate("LOBdb"); Statement s = conn.createStatement(); try { System.out.println("dropping"); s.executeUpdate("DROP TABLE atable"); } catch (Exception e) { } System.out.println("creatin... |
static Test suite(boolean callable) { | public static Test suite() { | static Test suite(boolean callable) { TestSuite suite = new TestSuite("SetObjectUnsupportedTest suite"); for (TypeInfo typeInfo : TYPES) { suite.addTest(new SetObjectUnsupportedTest ("testUnsupportedSetObject", typeInfo, callable)); suite.addTest(new SetO... |
for (TypeInfo typeInfo : TYPES) { suite.addTest(new SetObjectUnsupportedTest ("testUnsupportedSetObject", typeInfo, callable)); suite.addTest(new SetObjectUnsupportedTest ("testUnsupportedSetObjectWithScale", typeInfo, callable)); suite.addTest(new SetObjectUnsupportedTest ("testUnsupportedSetNull", typeInfo, callable)... | suite.addTest(baseSuite(false, "SetObjectUnsupportedTest:prepared")); suite.addTest(baseSuite(true, "SetObjectUnsupportedTest:callable")); TestSuite client = new TestSuite("SetObjectUnsupportedTest:client"); client.addTest(baseSuite(false, "SetObjectUnsupportedTest:prepared")); client.addTest(baseSuite(true, "SetObject... | static Test suite(boolean callable) { TestSuite suite = new TestSuite("SetObjectUnsupportedTest suite"); for (TypeInfo typeInfo : TYPES) { suite.addTest(new SetObjectUnsupportedTest ("testUnsupportedSetObject", typeInfo, callable)); suite.addTest(new SetO... |
Connection conn = DriverManager.getConnection("jdbc:derby:" + dbName); | Connection conn = getConnection(); | void runConsistencyChecker(String dbName) throws SQLException { Connection conn = DriverManager.getConnection("jdbc:derby:" + dbName); Statement stmt = conn.createStatement(); stmt.execute("values SYSCS_UTIL.SYSCS_CHECK_TABLE('APP', 'EMP')"); //TO DO : Consistency check all the tables including the system tables.... |
DatabaseActions dmlActions = new DatabaseActions(DatabaseActions.DMLACTIONS, conn); | Connection dmlConn = getConnection(); DatabaseActions dmlActions = new DatabaseActions(DatabaseActions.DMLACTIONS, dmlConn); | private void runTest() throws SQLException, Exception { logMessage("Begin Online Backup Test1"); Connection conn = ij.startJBMS(); conn.setAutoCommit(false); DatabaseActions dbActions = new DatabaseActions(conn); //create the test table. dbActions.createTable(TEST_TABLE_NAME); dbActions.startUnloggedAction(TE... |
DatabaseActions ddlActions = new DatabaseActions(DatabaseActions.CREATEDROPS, conn); | Connection ddlConn = getConnection(); DatabaseActions ddlActions = new DatabaseActions(DatabaseActions.CREATEDROPS, ddlConn); | private void runTest() throws SQLException, Exception { logMessage("Begin Online Backup Test1"); Connection conn = ij.startJBMS(); conn.setAutoCommit(false); DatabaseActions dbActions = new DatabaseActions(conn); //create the test table. dbActions.createTable(TEST_TABLE_NAME); dbActions.startUnloggedAction(TE... |
conn.close(); dmlConn.close(); ddlConn.close() ; | private void runTest() throws SQLException, Exception { logMessage("Begin Online Backup Test1"); Connection conn = ij.startJBMS(); conn.setAutoCommit(false); DatabaseActions dbActions = new DatabaseActions(conn); //create the test table. dbActions.createTable(TEST_TABLE_NAME); dbActions.startUnloggedAction(TE... | |
Connection conn = DriverManager.getConnection("jdbc:derby:" + dbName + ";shutdown=true"); | TestUtil.shutdownUsingDataSource(TEST_DATABASE_NAME); | void shutdown(String dbName) { try{ // shutdown Connection conn = DriverManager.getConnection("jdbc:derby:" + dbName + ";shutdown=true"); }catch(SQLException se){ if (se.getSQLState() != null && se.getSQLState().equals("08006")) System.out.println("database shutdown properly"); else dumpSQLExcepti... |
if (useprocess == false) { unloadEmbeddedDriver(); } | private static void runSuites(Vector suitesToRun) throws ClassNotFoundException, FileNotFoundException, IOException, Exception { // For each suite, locate its properties and runall files // which should be in the "suites" dir or user.dir String suiteName = ""; userdir = ... | |
cd, tc, activation, true); | cd, tc, lcc, true); | private void dropColumnFromTable(Activation activation, int ix) throws StandardException { LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); DependencyManager dm = dd.getDependencyManager(); TransactionController tc = lcc.getTr... |
tc, activation, false); | tc, lcc, false); | private void dropColumnFromTable(Activation activation, int ix) throws StandardException { LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); DependencyManager dm = dd.getDependencyManager(); TransactionController tc = lcc.getTr... |
dm, fkcd.getTableDescriptor(), dd, fkcd, tc, activation, true); | dm, fkcd.getTableDescriptor(), dd, fkcd, tc, lcc, true); | private void dropColumnFromTable(Activation activation, int ix) throws StandardException { LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); DependencyManager dm = dd.getDependencyManager(); TransactionController tc = lcc.getTr... |
DropIndexConstantAction.dropIndex(dm, dd, tc, cd, td, activation); | DropIndexConstantAction.dropIndex(dm, dd, tc, cd, td, activation.getLanguageConnectionContext()); | private void getAffectedIndexes(Activation activation) throws StandardException { IndexLister indexLister = td.getIndexLister( ); /* We have to get non-distinct index row generaters and conglom numbers * here and then compress it to distinct later because drop column * will need to change the index descriptor d... |
System.out.println("split messages" + locale); | OutputStream clientOutStream = new BufferedOutputStream( new FileOutputStream(new File(dir, clientPropsFileName)), 16 * 1024); clientProps.save(clientOutStream, (String)null); clientOutStream.flush(); clientOutStream.close(); if ( addBase ) { clientOutStream = new BufferedOutputStream( new FileOutputStream(new File(... | public static void main(String[] args) throws Exception { Properties p = new Properties(); File dir = new File(args[0]); File source = new File(args[1]); String s = source.getName(); // loose the suffix s = s.substring(0, s.lastIndexOf('.')); // now get the locale String locale = s.substring(s.indexOf('_')); ... |
public static void assertEquals(Blob b1, Blob b2) { | public static void assertEquals(Blob b1, Blob b2) throws IOException, SQLException { | public static void assertEquals(Blob b1, Blob b2) { if (b1 == null || b2 == null) { assertNull("Blob b2 is null, b1 is not", b1); assertNull("Blob b1 is null, b2 is not", b2); return; } InputStream is1 = null, is2 = null; try { assertEquals("Bl... |
InputStream is1 = null, is2 = null; try { assertEquals("Blobs have different lengths", b1.length(), b2.length()); is1 = b1.getBinaryStream(); is2 = b2.getBinaryStream(); if (is1 == null || is2 == null) { assertNull("Blob b2 has null-stream, blob b1 doesn't", is1); assertNull("Blob b1 has null-stream, blob b2 doesn't", ... | assertEquals("Blobs have different lengths", b1.length(), b2.length()); InputStream is1 = b1.getBinaryStream(); InputStream is2 = b2.getBinaryStream(); if (is1 == null || is2 == null) { assertNull("Blob b2 has null-stream, blob b1 doesn't", is1); assertNull("Blob b1 has null-stream, blob b2 doesn't", is2); return; | public static void assertEquals(Blob b1, Blob b2) { if (b1 == null || b2 == null) { assertNull("Blob b2 is null, b1 is not", b1); assertNull("Blob b1 is null, b2 is not", b2); return; } InputStream is1 = null, is2 = null; try { assertEquals("Bl... |
try { long index = 1; int by1 = is1.read(); int by2 = is2.read(); do { | long index = 1; int by1 = is1.read(); int by2 = is2.read(); do { if (by1 != by2) { | public static void assertEquals(Blob b1, Blob b2) { if (b1 == null || b2 == null) { assertNull("Blob b2 is null, b1 is not", b1); assertNull("Blob b1 is null, b2 is not", b2); return; } InputStream is1 = null, is2 = null; try { assertEquals("Bl... |
index++; by1 = is1.read(); by2 = is2.read(); } while ( by1 != -1 || by2 != -1); } catch (IOException ioe) { fail("IOException while asserting Blob equality: " + ioe.getMessage()); } | } index++; by1 = is1.read(); by2 = is2.read(); } while ( by1 != -1 || by2 != -1); is1.close(); is2.close(); | public static void assertEquals(Blob b1, Blob b2) { if (b1 == null || b2 == null) { assertNull("Blob b2 is null, b1 is not", b1); assertNull("Blob b1 is null, b2 is not", b2); return; } InputStream is1 = null, is2 = null; try { assertEquals("Bl... |
procedureNamePattern, "getProcedures"); | procedureNamePattern, "getProcedures40"); | public ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern) throws SQLException { return doGetProcs(catalog, schemaPattern, procedureNamePattern, "getProcedures"); } |
if (sqle instanceof ClientInfoException && | if (sqle instanceof SQLClientInfoException && | protected void checkSQLState(Method method, SQLException sqle) throws SQLException { if (sqle instanceof ClientInfoException && method.getName().equals("setClientInfo") && Arrays.asList(method.getParameterTypes()) .equals(Arrays.asList(ne... |
if (conn_.isPhysicallyClosed()) { | if (conn_.isPhysicalConnClosed()) { | public void commit(Xid xid, boolean onePhase) throws XAException { NetAgent netAgent = conn_.netAgent_; int rc = XAResource.XA_OK; exceptionsOnXA = null; if (conn_.agent_.loggingEnabled()) { conn_.agent_.logWriter_.traceEntry(this, "commit", xid, onePhase); } ... |
else { conn_.setXAState(Connection.XA_LOCAL); } | public void commit(Xid xid, boolean onePhase) throws XAException { NetAgent netAgent = conn_.netAgent_; int rc = XAResource.XA_OK; exceptionsOnXA = null; if (conn_.agent_.loggingEnabled()) { conn_.agent_.logWriter_.traceEntry(this, "commit", xid, onePhase); } ... | |
if (conn_.isPhysicallyClosed()) { | if (conn_.isPhysicalConnClosed()) { | public void end(Xid xid, int flags) throws XAException { NetAgent netAgent = conn_.netAgent_; int rc = XAResource.XA_OK; exceptionsOnXA = null; if (conn_.agent_.loggingEnabled()) { conn_.agent_.logWriter_.traceEntry(this, "end", xid, flags); } if (conn_.isPhysica... |
if (conn_.isPhysicallyClosed()) { | if (conn_.isPhysicalConnClosed()) { | public void forget(Xid xid) throws XAException { NetAgent netAgent = conn_.netAgent_; int rc = XAResource.XA_OK; exceptionsOnXA = null; if (conn_.agent_.loggingEnabled()) { conn_.agent_.logWriter_.traceEntry(this, "forget", xid); } if (conn_.isPhysicallyClosed())... |
if (conn_.isPhysicallyClosed()) { | if (conn_.isPhysicalConnClosed()) { | public int getTransactionTimeout() throws XAException { if (conn_.agent_.loggingEnabled()) { conn_.agent_.logWriter_.traceEntry(this, "getTransactionTimeout"); } exceptionsOnXA = null; if (conn_.isPhysicallyClosed()) { connectionClosedFailure(); } if (... |
if (conn_.isPhysicallyClosed()) { | if (conn_.isPhysicalConnClosed()) { | public boolean isSameRM(XAResource xares) throws XAException { boolean isSame = false; // preset that the RMs are NOT the same exceptionsOnXA = null; if (conn_.agent_.loggingEnabled()) { conn_.agent_.logWriter_.traceEntry(this, "isSameRM", xares); } if (conn_.isPhysical... |
if (conn_.isPhysicallyClosed()) { | if (conn_.isPhysicalConnClosed()) { | public int prepare(Xid xid) throws XAException { // public interface for prepare // just call prepareX with the recursion flag set to true exceptionsOnXA = null; if (conn_.agent_.loggingEnabled()) { conn_.agent_.logWriter_.traceEntry(this, "prepare", xid); } if (conn_.i... |
if (conn_.isPhysicallyClosed()) { | if (conn_.isPhysicalConnClosed()) { | public Xid[] recover(int flag) throws XAException { int rc = XAResource.XA_OK; NetAgent netAgent = conn_.netAgent_; if (conn_.agent_.loggingEnabled()) { conn_.agent_.logWriter_.traceEntry(this, "recover", flag); } exceptionsOnXA = null; if (conn_.isPhysicallyClos... |
if (conn_.isPhysicallyClosed()) { | if (conn_.isPhysicalConnClosed()) { | public void rollback(Xid xid) throws XAException { NetAgent netAgent = conn_.netAgent_; int rc = XAResource.XA_OK; exceptionsOnXA = null; if (conn_.agent_.loggingEnabled()) { conn_.agent_.logWriter_.traceEntry(this, "rollback", xid); } if (conn_.isPhysicallyClose... |
else { conn_.setXAState(Connection.XA_LOCAL); } | public void rollback(Xid xid) throws XAException { NetAgent netAgent = conn_.netAgent_; int rc = XAResource.XA_OK; exceptionsOnXA = null; if (conn_.agent_.loggingEnabled()) { conn_.agent_.logWriter_.traceEntry(this, "rollback", xid); } if (conn_.isPhysicallyClose... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.