rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
for( int i = 0; i < row.length; i++) { if( row[i] instanceof DataValueDescriptor) max_inmemory_size -= ((DataValueDescriptor) row[i]).estimateMemoryUsage(); max_inmemory_size -= ClassSize.refSize; } max_inmemory_size -= ClassSize.refSize; | max_inmemory_size -= getEstimatedMemUsage(row); | private void doSpaceAccounting( Object[] row, boolean firstDuplicate) { inmemory_rowcnt++; if( max_inmemory_rowcnt <= 0) { for( int i = 0; i < row.length; i++) { if( row[i] instanceof DataValueDescriptor) ... |
public HashLeftOuterJoinResultSet( | HashLeftOuterJoinResultSet( | public HashLeftOuterJoinResultSet( NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, GeneratedMethod emptyRowFun, boolean wasRightOuterJoin, boo... |
String userSuppliedOptimizerOverrides, GeneratedMethod closeCleanup) | String userSuppliedOptimizerOverrides) | public HashLeftOuterJoinResultSet( NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, GeneratedMethod emptyRowFun, boolean wasRightOuterJoin, boo... |
userSuppliedOptimizerOverrides, closeCleanup); | userSuppliedOptimizerOverrides); | public HashLeftOuterJoinResultSet( NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, GeneratedMethod emptyRowFun, boolean wasRightOuterJoin, boo... |
System.out.println("agentError in " + agent); | agent.trace("agentError in " + agent); | protected static DRDAProtocolException newAgentError(DRDAConnThread agent, int svrcod, String rdbnam, String srvdgn) { if ( SanityManager.DEBUG ) System.out.println("agentError in " + agent); Object[] oa = {new Integer(svrcod), rdbnam, srvdgn}; return new DRDAProtocolException(DRDA_AgentError, ... |
static void noSecurityManager() throws PrivilegedActionException | public static Test noSecurityManager(BaseTestCase test) | static void noSecurityManager() throws PrivilegedActionException { installSecurityManager("<NONE>"); } |
installSecurityManager("<NONE>"); | if (externalSecurityManagerInstalled) return new TestSuite(); return new SecurityManagerSetup(test, "<NONE>"); | static void noSecurityManager() throws PrivilegedActionException { installSecurityManager("<NONE>"); } |
endPosition += logOut.reserveSpaceForChecksum(length, logFileNumber,endPosition); | protected long appendLogRecord(byte[] data, int offset, int length, byte[] optionalData, int optionalDataOffset, int optionalDataLength) throws StandardException { long instant; boolean testIncompleteLogWrite = false; if (ReadOnlyDB) { throw StandardException.newException( SQLState.LOG_... | |
StorageRandomAccessFile theLog = privRandomAccessFile(logFile, "rw"); if (!initLogFile(theLog, logFileNumber, LogCounter.INVALID_LOG_INSTANT)) | firstLog = privRandomAccessFile(logFile, "rw"); if (!initLogFile(firstLog, logFileNumber, LogCounter.INVALID_LOG_INSTANT)) | public void boot(boolean create, Properties startParams) throws StandardException { dataDirectory = startParams.getProperty(PersistentService.ROOT); logDevice = startParams.getProperty(Attribute.LOG_DEVICE); if( logDevice != null) { // in case the user specifies logDevice in URL form String... |
endPosition = theLog.getFilePointer(); lastFlush = theLog.getFilePointer(); | endPosition = firstLog.getFilePointer(); lastFlush = firstLog.getFilePointer(); | public void boot(boolean create, Properties startParams) throws StandardException { dataDirectory = startParams.getProperty(PersistentService.ROOT); logDevice = startParams.getProperty(Attribute.LOG_DEVICE); if( logDevice != null) { // in case the user specifies logDevice in URL form String... |
preAllocateNewLogFile(theLog); theLog.close(); theLog= privRandomAccessFile(logFile, "rws"); | preAllocateNewLogFile(firstLog); firstLog.close(); firstLog= privRandomAccessFile(logFile, "rws"); | public void boot(boolean create, Properties startParams) throws StandardException { dataDirectory = startParams.getProperty(PersistentService.ROOT); logDevice = startParams.getProperty(Attribute.LOG_DEVICE); if( logDevice != null) { // in case the user specifies logDevice in URL form String... |
theLog.seek(endPosition); } logOut = new LogAccessFile(theLog, logBufferSize); | firstLog.seek(endPosition); } | public void boot(boolean create, Properties startParams) throws StandardException { dataDirectory = startParams.getProperty(PersistentService.ROOT); logDevice = startParams.getProperty(Attribute.LOG_DEVICE); if( logDevice != null) { // in case the user specifies logDevice in URL form String... |
firstLog = null; | public void boot(boolean create, Properties startParams) throws StandardException { dataDirectory = startParams.getProperty(PersistentService.ROOT); logDevice = startParams.getProperty(Attribute.LOG_DEVICE); if( logDevice != null) { // in case the user specifies logDevice in URL form String... | |
throws IOException | throws IOException, StandardException | private void flushBuffer(long fileNumber, long wherePosition) throws IOException { synchronized (this) { if (fileNumber < logFileNumber) // history return; // A log instant indicates the start of a log record // but not how long it is. Thus the amount of data in // the logOut buffer is irrelevant. We can ... |
long instant = currentInstant(); | long instant; | private long logtest_appendPartialLogRecord(byte[] data, int offset, int length, byte[] optionalData, int optionalDataOffset, int optionalDataLength) throws StandardException { if (SanityManager.DEBUG) { int bytesToWrite = 1; String TestPartialLogWrite = PropertyUt... |
endPosition += logOut.reserveSpaceForChecksum(((length + LOG_RECORD_OVERHEAD) < bytesToWrite ? length : (bytesToWrite - LOG_RECORD_OVERHEAD)), logFileNumber,endPosition); instant = currentInstant(); | private long logtest_appendPartialLogRecord(byte[] data, int offset, int length, byte[] optionalData, int optionalDataOffset, int optionalDataLength) throws StandardException { if (SanityManager.DEBUG) { int bytesToWrite = 1; String TestPartialLogWrite = PropertyUt... | |
logOut = new LogAccessFile(theLog, logBufferSize); | logOut = new LogAccessFile(this, theLog, logBufferSize); | public void recover( RawStoreFactory rsf, DataFactory df, TransactionFactory tf) throws StandardException { if (SanityManager.DEBUG) { SanityManager.ASSERT(rsf != null, "raw store factory == null"); SanityManager.ASSERT(df != null, "data factory == null"); } checkCorrupt(); rawStore... |
} catch (IOException ioe) { | public void stop() { // stop our checkpoint if (checkpointDaemon != null) { checkpointDaemon.unsubscribe(myClientNumber); checkpointDaemon.stop(); } synchronized(this) { stopped = true; if (logOut != null) { try { logOut.flushLogAccessFile(); logOut.close(); } catch (IOException ioe) { ... | |
catch (IOException ioe) {} catch(StandardException se){} | public void stop() { // stop our checkpoint if (checkpointDaemon != null) { checkpointDaemon.unsubscribe(myClientNumber); checkpointDaemon.stop(); } synchronized(this) { stopped = true; if (logOut != null) { try { logOut.flushLogAccessFile(); logOut.close(); } catch (IOException ioe) { ... | |
logOut.writeInt(0); | logOut.writeEndMarker(0); | private void switchLogFile() throws StandardException { boolean switchedOver = false; ///////////////////////////////////////////////////// // Freeze the log for the switch over to a new log file. // This blocks out any other threads from sending log // record to the log stream. // // The switching of the log ... |
logOut = new LogAccessFile(newLog, logBufferSize); | logOut = new LogAccessFile(this, newLog, logBufferSize); | private void switchLogFile() throws StandardException { boolean switchedOver = false; ///////////////////////////////////////////////////// // Freeze the log for the switch over to a new log file. // This blocks out any other threads from sending log // record to the log stream. // // The switching of the log ... |
public void addRemovePermissionsDescriptor( boolean add, | public boolean addRemovePermissionsDescriptor( boolean add, | public void addRemovePermissionsDescriptor( boolean add, PermissionsDescriptor perm, String grantee, TransactionController tc) throws StandardException; |
UUID routineUUID) | UUID routineUUID, boolean hasExecutePermission) throws StandardException | public RoutinePermsDescriptor( DataDictionary dd, String grantee, String grantor, UUID routineUUID) { this( dd, grantee, grantor, routineUUID, true); } |
this( dd, grantee, grantor, routineUUID, true); | super (dd, grantee, grantor); this.routineUUID = routineUUID; this.hasExecutePermission = hasExecutePermission; routineName = dd.getAliasDescriptor(routineUUID).getObjectName(); | public RoutinePermsDescriptor( DataDictionary dd, String grantee, String grantor, UUID routineUUID) { this( dd, grantee, grantor, routineUUID, true); } |
String routinePermsUUIDString = row.getColumn(ROUTINPERMSID_COL_NUM).getString(); | String routinePermsUUIDString = row.getColumn(ROUTINEPERMSID_COL_NUM).getString(); | public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTuple, DataDictionary dataDictionary) throws StandardException { if( SanityManager.DEBUG) SanityManager.ASSERT( row.nColumns() == COLUMN_CO... |
return new ColPermsDescriptor( dataDictionary, getAuthorizationID( row, GRANTEE_COL_NUM), getAuthorizationID( row, GRANTOR_COL_NUM), tableUUID, type, columns); | ColPermsDescriptor colPermsDesc = new ColPermsDescriptor( dataDictionary, getAuthorizationID( row, GRANTEE_COL_NUM), getAuthorizationID( row, GRANTOR_COL_NUM), tableUUID, type, columns); colPermsDesc.setUUID(colPermsUUID); return colPermsDesc; | public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTuple, DataDictionary dataDictionary) throws StandardException { if( SanityManager.DEBUG) SanityManager.ASSERT( row.nColumns() == COLUMN_CO... |
return new TablePermsDescriptor( dataDictionary, | TablePermsDescriptor tabPermsDesc = new TablePermsDescriptor( dataDictionary, | public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTuple, DataDictionary dataDictionary) throws StandardException { if( SanityManager.DEBUG) SanityManager.ASSERT( row.nColumns() == COLUMN_CO... |
tabPermsDesc.setUUID(tablePermsUUID); return tabPermsDesc; | public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTuple, DataDictionary dataDictionary) throws StandardException { if( SanityManager.DEBUG) SanityManager.ASSERT( row.nColumns() == COLUMN_CO... | |
public ColPermsDescriptor getColumnPermissions( UUID colPermsUUID) throws StandardException; | public ColPermsDescriptor getColumnPermissions( UUID tableUUID, int privType, boolean forGrant, String authorizationId) throws StandardException; | public ColPermsDescriptor getColumnPermissions( UUID colPermsUUID) throws StandardException; |
String type) { this( dd, grantee, grantor, tableUUID, type, (FormatableBitSet) null); } | String type, FormatableBitSet columns) throws StandardException { super (dd, grantee, grantor); this.tableUUID = tableUUID; this.type = type; this.columns = columns; tableName = dd.getTableDescriptor(tableUUID).getName(); } | public ColPermsDescriptor( DataDictionary dd, String grantee, String grantor, UUID tableUUID, String type) { this( dd, grantee, grantor, tableUUID, type, (FormatableBitSet) null); } |
abstract protected void dumpRS(int procId, ResultSet s) throws SQLException; | protected void dumpRS(ResultSet rs) throws SQLException { dumpRS(IGNORE_PROC_ID, rs); } | abstract protected void dumpRS(int procId, ResultSet s) throws SQLException; |
try { Class s = "".getClass(); Class [] a = new Class [] { s, s, s }; java.lang.reflect.Method gf = met.getClass().getMethod("getFunctions", a); if (!java.lang.reflect.Modifier.isAbstract(gf.getModifiers())){ System.out.println("getFunctions(null,null,null):"); dumpRS(0, (ResultSet)gf. invoke(met, new String [] {nul... | public void runTest() { DatabaseMetaData met; ResultSet rs; ResultSetMetaData rsmet; System.out.println("Test metadata starting"); try { //Cleanup any leftover database objects from previous test run cleanUp(s); // test decimal type and other numeric types precision, scale, // and display width after ope... | |
public static int parseStyle(Class constantClass, String text, boolean toUpperCase) throws JellyTagException{ int answer = 0; if (text != null) { if (toUpperCase) { text = text.toUpperCase(); } StringTokenizer items = new StringTokenizer(text, ","); while (items.hasMoreTokens()) { String token = items.nextToken().trim(... | public static int parseStyle(Class constantClass, String text) throws JellyTagException { return parseStyle(constantClass, text, true); | public static int parseStyle(Class constantClass, String text, boolean toUpperCase) throws JellyTagException{ int answer = 0; if (text != null) { if (toUpperCase) { text = text.toUpperCase(); } StringTokenizer items = new StringTokenizer(text, ","); ... |
protected void invokeBody(XMLOutput output) throws Exception { | public void invokeBody(XMLOutput output) throws Exception { | protected void invokeBody(XMLOutput output) throws Exception { if ( isTrim() && ! hasTrimmed ) { trimBody(); } invokeBody(output); } |
invokeBody(output); | getBody().run(context, output); | protected void invokeBody(XMLOutput output) throws Exception { if ( isTrim() && ! hasTrimmed ) { trimBody(); } invokeBody(output); } |
testSpecialProps = p.getProperty("testSpecialProps"); | static Properties getSuiteProperties(String suiteName, boolean isTop) throws ClassNotFoundException, IOException { // Locate the suite's config file and get the properties // The file should be in the harness dir or user.dir String suiteProps = "suites" + '/' + suiteName + ".propertie... | |
String encryptAlgorithm = sp.getProperty("testEncryptionAlgorithm"); if (encryptAlgorithm != null) suiteProperties.put("testEncryptionAlgorithm", encryptAlgorithm); | private static void getSystemProperties() { // Get any properties specified on the command line // which may not have been specified in the suite prop file Properties sp = System.getProperties(); String searchCP = sp.getProperty("ij.searchClassPath"); if (searchCP != null) ... | |
public RunList(Vector suitesToRun, File runDir, File outDir, PrintWriter pwOut, Properties suiteProperties, Properties specialProperties, String topParentSuite) throws ClassNotFoundException, IOException, Exception | public RunList() | public RunList(Vector suitesToRun, File runDir, File outDir, PrintWriter pwOut, Properties suiteProperties, Properties specialProperties, String topParentSuite) throws ClassNotFoundException, IOException, Exception { this.runDir = runDir; this.outDir = outDir; ... |
this.runDir = runDir; this.outDir = outDir; this.pwOut = pwOut; this.suiteProperties = suiteProperties; this.specialProperties = specialProperties; this.topSuiteName = suiteProperties.getProperty("suitename"); this.topParentSuite = topParentSuite; runSuites(suitesToRun); | public RunList(Vector suitesToRun, File runDir, File outDir, PrintWriter pwOut, Properties suiteProperties, Properties specialProperties, String topParentSuite) throws ClassNotFoundException, IOException, Exception { this.runDir = runDir; this.outDir = outDir; ... | |
public CursorTableReference ( String exposedName, String baseName, String schemaName ) | public CursorTableReference() | public CursorTableReference ( String exposedName, String baseName, String schemaName ) { this.exposedName = exposedName; this.baseName = baseName; this.schemaName = schemaName; } |
this.exposedName = exposedName; this.baseName = baseName; this.schemaName = schemaName; | public CursorTableReference ( String exposedName, String baseName, String schemaName ) { this.exposedName = exposedName; this.baseName = baseName; this.schemaName = schemaName; } | |
if (TestUtil.isDerbyNetClientFramework()) testClientDSConnectionAttributes(); | protected void runTest(String[] args) throws Exception { // Check the returned type of the JDBC Connections. ij.getPropertyArg(args); Connection dmc = ij.startJBMS(); dmc.createStatement().executeUpdate("create table y(i int)"); dmc.createStatement().executeUpdate( "create procedure checkConn2(in d... | |
public String getNumberAsString(long o){ | public String getNumberAsString(int o){ | public String getNumberAsString(long o){ if (enableLocalized){ return formatNumber.format(o); } else{ return String.valueOf(o); } } |
getProductVersionHolderFromMyEnv(InputStream propertiesStream) | getProductVersionHolderFromMyEnv(String productGenus) | getProductVersionHolderFromMyEnv(InputStream propertiesStream) { if (propertiesStream == null) return null; Properties p = new Properties(); try { p.load(propertiesStream); } catch (IOException ioe) { System.out.println("IOE " + ioe.getMessage()); // //This case is a bit ugly. If we get an IOException, ... |
if (propertiesStream == null) | ProductVersionHolder tempPVH = new ProductVersionHolder(); tempPVH.productGenus = productGenus; Properties p = (Properties) java.security.AccessController.doPrivileged(tempPVH); if (p == null) | getProductVersionHolderFromMyEnv(InputStream propertiesStream) { if (propertiesStream == null) return null; Properties p = new Properties(); try { p.load(propertiesStream); } catch (IOException ioe) { System.out.println("IOE " + ioe.getMessage()); // //This case is a bit ugly. If we get an IOException, ... |
Properties p = new Properties(); try { p.load(propertiesStream); } catch (IOException ioe) { System.out.println("IOE " + ioe.getMessage()); return null; } finally { try { propertiesStream.close(); } catch (IOException ioe2) { } } | getProductVersionHolderFromMyEnv(InputStream propertiesStream) { if (propertiesStream == null) return null; Properties p = new Properties(); try { p.load(propertiesStream); } catch (IOException ioe) { System.out.println("IOE " + ioe.getMessage()); // //This case is a bit ugly. If we get an IOException, ... | |
public ijFatalException(SQLException e) | public ijFatalException() | public ijFatalException(SQLException e) { super(FatalException); this.e = e; } |
super(FatalException); this.e = e; | super(FatalException); e = null; | public ijFatalException(SQLException e) { super(FatalException); this.e = e; } |
public ChefGraph(Composite par, int style, Chef je) { super(par, style); shell = par.getShell(); log = LogWriter.getInstance(); chef = je; canvas = this; newProps(); selrect = null; hop_candidate = null; last_hop_split = null; selected_entries = null; selected_note = null; hori = getHorizontalBar(); vert = getVerti... | public ChefGraph(Composite par, int style, LogWriter l, Chef je) { this(par, style, je); } | public ChefGraph(Composite par, int style, Chef je) { super(par, style); shell = par.getShell(); log = LogWriter.getInstance(); chef = je; canvas = this; newProps(); selrect = null; hop_candidate = null; last_hop_split = null; selected_entries = null; selected_note = null; hori = g... |
public ChefLog(Composite parent, int style, Chef chef) { super(parent, style); shell=parent.getShell(); this.log=LogWriter.getInstance(); display=shell.getDisplay(); this.chef=chef; FormLayout formLayout = new FormLayout (); formLayout.marginWidth = Const.FORM_MARGIN; formLayout.marginHeight = Const.FORM_MARGIN; se... | public ChefLog(Composite parent, int style, LogWriter log, Chef chef) { this(parent, style, chef); } | public ChefLog(Composite parent, int style, Chef chef) { super(parent, style); shell=parent.getShell(); this.log=LogWriter.getInstance(); display=shell.getDisplay(); this.chef=chef; FormLayout formLayout = new FormLayout (); formLayout.marginWidth = Const.FORM_MARGIN; formLayout.marginHeight = Const.FORM_... |
return colRef.getColumnName(); | return columnExpression.getColumnName(); | public String getColumnName() { return colRef.getColumnName(); } |
colRef = (ColumnReference) colRef.bindExpression(fromList, | columnExpression = (ValueNode) columnExpression.bindExpression(fromList, | public void bindExpression( FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { /* Bind the ColumnReference to the FromList */ colRef = (ColumnReference) colRef.bindExpression(fromList, subqueryList, aggregateVector); // Verify that we can grou... |
if (columnExpression.isParameterNode()) { throw StandardException.newException(SQLState.LANG_INVALID_COL_REF_GROUPED_SELECT_LIST, columnExpression); } | public void bindExpression( FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { /* Bind the ColumnReference to the FromList */ colRef = (ColumnReference) colRef.bindExpression(fromList, subqueryList, aggregateVector); // Verify that we can grou... | |
TypeId ctid = colRef.getTypeId(); | TypeId ctid = columnExpression.getTypeId(); | public void bindExpression( FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { /* Bind the ColumnReference to the FromList */ colRef = (ColumnReference) colRef.bindExpression(fromList, subqueryList, aggregateVector); // Verify that we can grou... |
return "Column Reference: "+colRef+super.toString(); | return "Column Expression: "+columnExpression+super.toString(); | public String toString() { if (SanityManager.DEBUG) { return "Column Reference: "+colRef+super.toString(); } else { return ""; } } |
this.setThrowable(cause); | if ( cause != null ) { this.setThrowable(cause); } | public SqlException(LogWriter logwriter, MessageId msgid, Object[] args, Throwable cause) { this( logwriter, msgutil_.getCompleteMessage( msgid.msgid, args), ExceptionUtil.getSQLStateFromIdentifier(msgid.msgid), ExceptionUti... |
StorageRandomAccessFile newRaf = newFile.getRandomAccessFile("rw"); | StorageRandomAccessFile newRaf = privGetRandomAccessFile(newFile); | protected void encryptContainer(BaseContainerHandle handle, String newFilePath) throws StandardException { BasePage page = null; StorageFile newFile = dataFactory.getStorageFactory().newStorageFile(newFilePath); try { long ... |
public Object run() throws StandardException | public Object run() throws StandardException, IOException | 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... |
case GET_RANDOM_ACCESS_FILE_ACTION: { return actionFile.getRandomAccessFile("rw"); } | 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 static int readFormatIdInteger(byte[] data) { | public static int readFormatIdInteger(DataInput in) throws IOException { | public static int readFormatIdInteger(byte[] data) { int a = data[0]; int b = data[1]; return (((a & 0xff) << 8) | (b & 0xff)); } |
int a = data[0]; int b = data[1]; return (((a & 0xff) << 8) | (b & 0xff)); | return in.readUnsignedShort(); | public static int readFormatIdInteger(byte[] data) { int a = data[0]; int b = data[1]; return (((a & 0xff) << 8) | (b & 0xff)); } |
testJvmProps.addElement("user.language=en"); testJvmProps.addElement("user.country=US"); | addStandardTestJvmProps(Vector testJvmProps,String derbySystemHome, String userDirName, jvm jvm) { if (derbySystemHome==null || derbySystemHome.length() == 0) derbySystemHome = userDirName; testJvmProps.addElement("derby.system.home=" + derbySystemHome); testJvmProps.addElement("derby.infolog.append=true ")... | |
if (! startServer) { System.out.println("startServer = false. Bypass server check"); return true; } | public boolean testNetworkServerConnection() throws Exception { Object[] testConnectionArg = null; if (networkServer == null) { Constructor serverConstructor; Class serverClass = Class.forName(NETWORK_SERVER_CLASS_NAME); serverConstructor = serverClass.getDeclaredConstructor(null); networkServer = se... | |
((OptimizerImpl)optimizer).prepForNextRound(); | protected ResultSetNode optimizeSource( Optimizer optimizer, ResultSetNode sourceResultSet, PredicateList predList, CostEstimate outerCost) throws StandardException { ResultSetNode retval; if (sourceResultSet instanceof FromTable) { FromList optList = (FromList) getNodeFactory().getNode(... | |
if (dataSource.getConnectionAttributes() != null) { databaseName_ = dataSource.getDatabaseName() + ";" + dataSource.getConnectionAttributes(); } else { databaseName_ = dataSource.getDatabaseName(); } | databaseName_ = dataSource.getDatabaseName(); String connAtrrs = dataSource.getConnectionAttributes(); if(databaseName_ != null && connAtrrs != null) databaseName_ = databaseName_ + ";" + connAtrrs; | protected void initConnection(org.apache.derby.client.am.LogWriter logWriter, String user, org.apache.derby.jdbc.ClientBaseDataSource dataSource) throws SqlException { if (logWriter != null) { ... |
public boolean getRetrieveMessageText() { return this.retrieveMessageText; | public static boolean getRetrieveMessageText(Properties properties) { String retrieveMessageTextString = properties.getProperty(Attribute.CLIENT_RETIEVE_MESSAGE_TEXT); return parseBoolean(retrieveMessageTextString, propertyDefault_retrieveMessageText); | public boolean getRetrieveMessageText() { return this.retrieveMessageText; } |
public void resetAgent(Connection connection, LogWriter logWriter, int loginTimeout, String server, int port) throws SqlException { resetAgent(logWriter); resetAgent_(logWriter, loginTimeout, server, port); | protected void resetAgent(LogWriter logWriter) { accumulatedReadExceptions_ = null; enableBatchedExceptionTracking_ = false; batchedExceptionLabelIndex_ = 0; batchedExceptionGenerated_ = null; logWriter_ = logWriter; deferredException_ = null; | public void resetAgent(Connection connection, LogWriter logWriter, int loginTimeout, String server, int port) throws SqlException { resetAgent(logWriter); resetAgent_(logWriter, loginTimeout, server, port); } |
timeoutMillis = 0L; | protected GenericPreparedStatement() { /* Get the UUID for this prepared statement */ UUIDFactory uuidFactory = Monitor.getMonitor().getUUIDFactory(); UUIDValue = uuidFactory.createUUID(); UUIDString = UUIDValue.toString(); spsAction = false; } | |
public synchronized String getJobEntryAttributeString(long id_jobentry, String code) throws KettleDatabaseException | public synchronized String getJobEntryAttributeString(long id_jobentry, int nr, String code) throws KettleDatabaseException | public synchronized String getJobEntryAttributeString(long id_jobentry, String code) throws KettleDatabaseException { return getJobEntryAttributeString(id_jobentry, 0, code); } |
return getJobEntryAttributeString(id_jobentry, 0, code); | Row r = getJobEntryAttributeRow(id_jobentry, nr, code); if (r == null) return null; return r.searchValue("VALUE_STR").getString(); | public synchronized String getJobEntryAttributeString(long id_jobentry, String code) throws KettleDatabaseException { return getJobEntryAttributeString(id_jobentry, 0, code); } |
public boolean getJobEntryAttributeBoolean(long id_jobentry, String code) throws KettleDatabaseException | public boolean getJobEntryAttributeBoolean(long id_jobentry, int nr, String code) throws KettleDatabaseException | public boolean getJobEntryAttributeBoolean(long id_jobentry, String code) throws KettleDatabaseException { return getJobEntryAttributeBoolean(id_jobentry, 0, code, false); } |
return getJobEntryAttributeBoolean(id_jobentry, 0, code, false); | return getJobEntryAttributeBoolean(id_jobentry, nr, code, false); | public boolean getJobEntryAttributeBoolean(long id_jobentry, String code) throws KettleDatabaseException { return getJobEntryAttributeBoolean(id_jobentry, 0, code, false); } |
public synchronized long getJobEntryAttributeInteger(long id_jobentry, String code) throws KettleDatabaseException | public synchronized long getJobEntryAttributeInteger(long id_jobentry, int nr, String code) throws KettleDatabaseException | public synchronized long getJobEntryAttributeInteger(long id_jobentry, String code) throws KettleDatabaseException { return getJobEntryAttributeInteger(id_jobentry, 0, code); } |
return getJobEntryAttributeInteger(id_jobentry, 0, code); | Row r = getJobEntryAttributeRow(id_jobentry, nr, code); if (r == null) return 0; return r.searchValue("VALUE_NUM").getInteger(); | public synchronized long getJobEntryAttributeInteger(long id_jobentry, String code) throws KettleDatabaseException { return getJobEntryAttributeInteger(id_jobentry, 0, code); } |
Object retValue = BackingStoreHashtable.cloneRow( row); | Object retValue = BackingStoreHashtable.shallowCloneRow( row); | public Object nextElement() { if( ! hasMore) throw new NoSuchElementException(); try { scan.fetch( row); Object retValue = BackingStoreHashtable.cloneRow( row); hasMore = scan.next(); if( ! hasMor... |
if( rowCount == 1) retValue = BackingStoreHashtable.cloneRow( row); | if( rowCount == 1) { retValue = BackingStoreHashtable.shallowCloneRow( row); } | private Object getRemove( Object key, boolean remove, boolean existenceOnly) throws StandardException { int hashCode = key.hashCode(); int rowCount = 0; Object retValue = null; scanKey[0].setValue( hashCode); ScanController scan = tc.openScan( btreeConglomerateId, ... |
v.add( BackingStoreHashtable.cloneRow( row)); | } v.add( BackingStoreHashtable.shallowCloneRow( row)); | private Object getRemove( Object key, boolean remove, boolean existenceOnly) throws StandardException { int hashCode = key.hashCode(); int rowCount = 0; Object retValue = null; scanKey[0].setValue( hashCode); ScanController scan = tc.openScan( btreeConglomerateId, ... |
RowLocation[] oldrowloc_array, RowLocation[] newrowloc_array) | RowLocation[] rowloc_array) | public int fetchNextGroup( DataValueDescriptor[][] row_array, RowLocation[] oldrowloc_array, RowLocation[] newrowloc_array) throws StandardException; |
public utilMain(int numConnections, LocalizedOutput out, Hashtable ignoreErrors) | utilMain(int numConnections, LocalizedOutput out) | public utilMain(int numConnections, LocalizedOutput out, Hashtable ignoreErrors) throws ijFatalException { String framework_property = util.getSystemProperty("framework"); if (framework_property != null) { if (framework_property.equals("DB2jNet") || framework_property.equals("DB2jcc")) isJCC = true; }... |
String framework_property = util.getSystemProperty("framework"); if (framework_property != null) { if (framework_property.equals("DB2jNet") || framework_property.equals("DB2jcc")) isJCC = true; } charStream = new UCode_CharStream( new StringReader(" "), 1, 1); ijTokMgr = new ijTokenManager(charStream); ijParser = new... | this(numConnections, out, (Hashtable)null); | public utilMain(int numConnections, LocalizedOutput out, Hashtable ignoreErrors) throws ijFatalException { String framework_property = util.getSystemProperty("framework"); if (framework_property != null) { if (framework_property.equals("DB2jNet") || framework_property.equals("DB2jcc")) isJCC = true; }... |
buildHashSet(); | public void setUp() throws SQLException { con = getConnection(); blob = BlobClobTestSetup.getSampleBlob(con); } | |
t.printStackTrace(); | private void handleReflectionException(Exception e) throws SQLException { if (e instanceof InvocationTargetException) { Throwable t = ((InvocationTargetException) e).getTargetException(); if (t instanceof SQLException) { throw (SQLException) t; } else { throw Util.javaException(t); } } el... | |
protected final Statement getStatement() throws SQLException { | public final Statement getStatement() throws SQLException { | protected final Statement getStatement() throws SQLException { return getPreparedStatement(); } |
unuseStreams(); | public boolean absoluteX(int row) throws SqlException { checkForClosedResultSet(); checkThatResultSetTypeIsScrollable(); clearWarningsX(); wasNull_ = ResultSet.WAS_NULL_UNSET; // discard all previous updates when moving the cursor. resetUpdatedColumns(); resetRowsetF... | |
unuseStreams(); | private void afterLastX() throws SqlException { resetRowsetFlags(); // this method has no effect if the result set has no rows. // only send cntqry to position the cursor after last if // resultset contains rows and it is not already after last, or // if the cursor is a dynamic cu... | |
resetRowsetFlags(); | resetRowsetFlags(); unuseStreams(); | private void beforeFirstX() throws SqlException { resetRowsetFlags(); // this method has no effect if the result set has no rows. // only send cntqry to position the cursor before first if // resultset contains rows and it is not already before first, or // if the cursor is a dyna... |
unuseStreams(); | private boolean firstX() throws SqlException { checkForClosedResultSet(); checkThatResultSetTypeIsScrollable(); clearWarningsX(); wasNull_ = ResultSet.WAS_NULL_UNSET; // discard all previous updates when moving the cursor resetUpdatedColumns(); resetRowsetFlags(); ... | |
useStream(column); | public java.io.InputStream getAsciiStream(int column) throws SqlException { closeCloseFilterInputStream(); if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "getAsciiStream", column); } checkGetterPreconditions(column); java.io.InputStream result ... | |
useStream(column); | public java.io.InputStream getBinaryStream(int column) throws SqlException { closeCloseFilterInputStream(); if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "getBinaryStream", column); } checkGetterPreconditions(column); java.io.InputStream resul... | |
useStream(column); | public java.io.Reader getCharacterStream(int column) throws SqlException { closeCloseFilterInputStream(); if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "getCharacterStream", column); } checkGetterPreconditions(column); java.io.Reader result = ... | |
useStream(column); | public java.io.InputStream getUnicodeStream(int column) throws SqlException { closeCloseFilterInputStream(); if (agent_.loggingEnabled()) { agent_.logWriter_.traceDeprecatedEntry(this, "getUnicodeStream", column); } checkGetterPreconditions(column); java.io.Input... | |
unuseStreams(); | private boolean lastX() throws SqlException { checkForClosedResultSet(); checkThatResultSetTypeIsScrollable(); clearWarningsX(); wasNull_ = ResultSet.WAS_NULL_UNSET; // discard all previous updates when moving the cursor resetUpdatedColumns(); resetRowsetFlags(); ... | |
unuseStreams(); | boolean nextX() throws SqlException { checkForClosedResultSet(); clearWarningsX(); wasNull_ = ResultSet.WAS_NULL_UNSET; // discard all previous updates when moving the cursor resetUpdatedColumns(); // for TYPE_FORWARD_ONLY ResultSet, just call cursor.next() if (resul... | |
unuseStreams(); | private boolean previousX() throws SqlException { checkForClosedResultSet(); checkThatResultSetTypeIsScrollable(); clearWarningsX(); wasNull_ = ResultSet.WAS_NULL_UNSET; // discard all previous updates when moving the cursor. resetUpdatedColumns(); isBeforeFirst_ = f... | |
unuseStreams(); | private void refreshRowX() throws SqlException { checkForClosedResultSet(); checkThatResultSetTypeIsScrollable(); if (isBeforeFirstX() || isAfterLastX() || isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.l... | |
unuseStreams(); | private boolean relativeX(int rows) throws SqlException { checkForClosedResultSet(); checkThatResultSetTypeIsScrollable(); clearWarningsX(); wasNull_ = ResultSet.WAS_NULL_UNSET; // discard all previous updates when moving the cursor. resetUpdatedColumns(); // this me... | |
public DisconnectException(Agent agent, SqlException e) { this(agent, e.getMessage()); setNextException(e); | public DisconnectException(Agent agent, MessageId msgid, SqlCode sqlcode) { super(agent != null ? agent.logWriter_ : null, msgid, sqlcode); | public DisconnectException(Agent agent, SqlException e) { this(agent, e.getMessage()); setNextException(e); } |
throw new SqlException(agent_.logWriter_, e.getMessage()); | throw new SqlException(agent_.logWriter_, new MessageId (SQLState.UNSUPPORTED_ENCODING), "CHAR", "java.io.InputStream", e); | public final java.io.InputStream getAsciiStream(int column) throws SqlException { try { switch (jdbcTypes_[column - 1]) { case java.sql.Types.CLOB: Clob c = getClobColumn_(column, agent_); return c.getAsciiStream(); case java.sql.Types.CHAR: ... |
throw new SqlException(agent_.logWriter_, e.getMessage()); | throw new SqlException(agent_.logWriter_, new MessageId (SQLState.UNSUPPORTED_ENCODING), "VARCHAR/LONGVARCHAR", "java.io.InputStream", e); | public final java.io.InputStream getAsciiStream(int column) throws SqlException { try { switch (jdbcTypes_[column - 1]) { case java.sql.Types.CLOB: Clob c = getClobColumn_(column, agent_); return c.getAsciiStream(); case java.sql.Types.CHAR: ... |
throw new ColumnTypeConversionException(agent_.logWriter_); | throw new ColumnTypeConversionException(agent_.logWriter_, "java.sql.Types " + jdbcTypes_[column -1], "java.io.InputStream"); | public final java.io.InputStream getAsciiStream(int column) throws SqlException { try { switch (jdbcTypes_[column - 1]) { case java.sql.Types.CLOB: Clob c = getClobColumn_(column, agent_); return c.getAsciiStream(); case java.sql.Types.CHAR: ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.