rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
java.sql.Time recyclableTime) { | java.sql.Time recyclableTime, String encoding) throws UnsupportedEncodingException { | public static final java.sql.Time timeBytesToTime(byte[] buffer, int offset, java.sql.Time recyclableTime) { int hour, minute, second; String time = new String(buffer, offset, DateTime.timeReprese... |
String time = new String(buffer, offset, DateTime.timeRepresentationLength); | String time = new String(buffer, offset, DateTime.timeRepresentationLength, encoding); | public static final java.sql.Time timeBytesToTime(byte[] buffer, int offset, java.sql.Time recyclableTime) { int hour, minute, second; String time = new String(buffer, offset, DateTime.timeReprese... |
java.sql.Timestamp recyclableTimestamp) { | java.sql.Timestamp recyclableTimestamp, String encoding) throws UnsupportedEncodingException { | public static final java.sql.Timestamp timestampBytesToTimestamp(byte[] buffer, int offset, java.sql.Timestamp recyclableTimestamp) { int year, month, day, hour, minute, sec... |
String timestamp = new String(buffer, offset, DateTime.timestampRepresentationLength); | String timestamp = new String(buffer, offset, DateTime.timestampRepresentationLength,encoding); | public static final java.sql.Timestamp timestampBytesToTimestamp(byte[] buffer, int offset, java.sql.Timestamp recyclableTimestamp) { int year, month, day, hour, minute, sec... |
java.sql.Time recyclableTime) { | java.sql.Time recyclableTime, String encoding) throws UnsupportedEncodingException { | public static final java.sql.Time timestampBytesToTime(byte[] buffer, int offset, java.sql.Time recyclableTime) { int hour, minute, second; String timestamp = new String(buffer, offset, ... |
String timestamp = new String(buffer, offset, DateTime.timestampRepresentationLength); | String timestamp = new String(buffer, offset, DateTime.timestampRepresentationLength, encoding); | public static final java.sql.Time timestampBytesToTime(byte[] buffer, int offset, java.sql.Time recyclableTime) { int hour, minute, second; String timestamp = new String(buffer, offset, ... |
java.sql.Timestamp recyclableTimestamp) { | java.sql.Timestamp recyclableTimestamp, String encoding) throws UnsupportedEncodingException { | public static final java.sql.Timestamp dateBytesToTimestamp(byte[] buffer, int offset, java.sql.Timestamp recyclableTimestamp) { int year, month, day; String date = new String(... |
String date = new String(buffer, offset, DateTime.dateRepresentationLength); | String date = new String(buffer, offset, DateTime.dateRepresentationLength, encoding); | public static final java.sql.Timestamp dateBytesToTimestamp(byte[] buffer, int offset, java.sql.Timestamp recyclableTimestamp) { int year, month, day; String date = new String(... |
java.sql.Timestamp recyclableTimestamp) { | java.sql.Timestamp recyclableTimestamp, String encoding) throws UnsupportedEncodingException { | public static final java.sql.Timestamp timeBytesToTimestamp(byte[] buffer, int offset, java.sql.Timestamp recyclableTimestamp) { int hour, minute, second; String time = new Str... |
String time = new String(buffer, offset, DateTime.timeRepresentationLength); | String time = new String(buffer, offset, DateTime.timeRepresentationLength, encoding); | public static final java.sql.Timestamp timeBytesToTimestamp(byte[] buffer, int offset, java.sql.Timestamp recyclableTimestamp) { int hour, minute, second; String time = new Str... |
public void copyTypesAndLengthsToSource(ResultColumnList sourceRCL) | public void copyTypesAndLengthsToSource(ResultColumnList sourceRCL) throws StandardException | public void copyTypesAndLengthsToSource(ResultColumnList sourceRCL) { /* Source and target can have different lengths. */ int size = (size() > sourceRCL.size()) ? size() : sourceRCL.size(); for (int index = 0; index < size; index++) { ResultColumn sourceRC = (ResultColumn) sourceRCL.elementAt(index); ResultCol... |
public boolean hasConsistentTypeInfo() | public boolean hasConsistentTypeInfo() throws StandardException | public boolean hasConsistentTypeInfo() { boolean isConsistent = true; if (SanityManager.DEBUG) { int size = size(); for (int index = 0; index < size; index++) { ResultColumn rc = (ResultColumn) elementAt(index); ValueNode expr = rc.getExpression(); DataTypeDescriptor rcDTS = rc.getTypeServices(); ... |
public boolean isExactTypeAndLengthMatch(ResultColumnList otherRCL) | public boolean isExactTypeAndLengthMatch(ResultColumnList otherRCL) throws StandardException | public boolean isExactTypeAndLengthMatch(ResultColumnList otherRCL) { int size = size(); for (int index = 0; index < size; index++) { ResultColumn thisRC = (ResultColumn) elementAt(index); ResultColumn otherRC = (ResultColumn) otherRCL.elementAt(index); if (! thisRC.getTypeServices().isExactTypeAndLengthMatch... |
new SurveyWebComponent().updatePersistedSurvey(request, sform); | SurveyWebComponent swc = new SurveyWebComponent(); if(!swc.updatePersistedSurvey(request, sform)){ forward = mapping.findForward("persistError"); } | public ActionForward updateSurvey(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { SurveyForm sform = (SurveyForm) form; ActionForward forward = mapping.findForward("persistOk"); try{ new SurveyWebComponent().updatePersis... |
if (costEstimate != null && costEstimate.isUninitialized()) { costEstimate = childResult.getFinalCostEstimate(); } | costEstimate = getFinalCostEstimate(); | private void generateMinion(ExpressionClassBuilder acb, MethodBuilder mb, boolean genChildResultSet) throws StandardException { /* If this ProjectRestrict doesn't do anything, bypass its generation. * (Remove any true and true predicates first, as they could be left * by the like transformation.)... |
mb.push(getFinalCostEstimate().rowCount()); mb.push(getFinalCostEstimate().getEstimatedCost()); | mb.push(costEstimate.rowCount()); mb.push(costEstimate.getEstimatedCost()); | private void generateMinion(ExpressionClassBuilder acb, MethodBuilder mb, boolean genChildResultSet) throws StandardException { /* If this ProjectRestrict doesn't do anything, bypass its generation. * (Remove any true and true predicates first, as they could be left * by the like transformation.)... |
if (costEstimate == null) return childResult.getFinalCostEstimate(); | if (finalCostEstimate != null) return finalCostEstimate; if (childResult instanceof Optimizable) finalCostEstimate = childResult.getFinalCostEstimate(); | public CostEstimate getFinalCostEstimate() { /* ** The cost estimate will be set here if either optimize() or ** optimizeIt() was called on this node. It's also possible ** that optimization was done directly on the child node, ** in which case the cost estimate will be null here. */ if (costEstimate == null) ... |
{ return costEstimate; } | finalCostEstimate = getTrulyTheBestAccessPath().getCostEstimate(); return finalCostEstimate; | public CostEstimate getFinalCostEstimate() { /* ** The cost estimate will be set here if either optimize() or ** optimizeIt() was called on this node. It's also possible ** that optimization was done directly on the child node, ** in which case the cost estimate will be null here. */ if (costEstimate == null) ... |
this.userSuppliedOptimizerOverrides = userSuppliedOptimizerOverrides; | public JoinResultSet(NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, boolean oneRowRightSide, boolean notExistsRigh... | |
getPreparedStatement().getClass().getMethod("getParameterMetaData", getParameterMetaDataParam); | getPreparedStatement().getClass().getMethod("getEmbedParameterSetMetaData", getParameterMetaDataParam); | protected EmbedParameterSetMetaData getParameterMetaData() throws SQLException { if (stmtPmeta != null) return stmtPmeta; EmbedParameterSetMetaData pmeta = null; Class[] getParameterMetaDataParam = {}; try { Method sh = getPreparedStatement().getClass().getMethod("getParameterMetaData", getParameterMetaData... |
} | 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); } else // ... | |
&& expectedRow[i].equals(obj)); | && (expectedRow[i].equals(obj) || (obj instanceof byte[] && Arrays.equals((byte[] )obj, (byte[] )expectedRow[i])))); | private static void assertRowInResultSet(ResultSet rs, int rowNum, Object [] expectedRow, boolean asTrimmedStrings) throws SQLException { ResultSetMetaData rsmd = rs.getMetaData(); for (int i = 0; i < expectedRow.length; i++) { Object obj; if (asTrimmedStrings) ... |
":\n Expected: >" + expectedRow[i] + "<\n Found: >" + obj + "<"); | ":\n Expected: >" + expected + "<\n Found: >" + found + "<"); | private static void assertRowInResultSet(ResultSet rs, int rowNum, Object [] expectedRow, boolean asTrimmedStrings) throws SQLException { ResultSetMetaData rsmd = rs.getMetaData(); for (int i = 0; i < expectedRow.length; i++) { Object obj; if (asTrimmedStrings) ... |
System.out.println("expected " + sqle.toString()); | System.out.println("expected SQL Exception: (" + sqle.getSQLState() + ") " + sqle.getMessage()); | 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... |
OptimizablePredicateList predList) { | OptimizablePredicateList predList) throws StandardException { | public double nonBasePredicateSelectivity( Optimizable innerTable, OptimizablePredicateList predList) { double retval = 1.0; if (predList != null) { for (int i = 0; i < predList.size(); i++) { // Don't include redundant join predicates in selectivity calculations if (predList.isRedundantPre... |
if (invokeMethod != null) { Object[] args = { bean }; try { invokeMethod.invoke(bean, EMPTY_ARGUMENTS); } catch (Exception e) { throw new JellyTagException( "failed to invoke method: " + invokeMethod + " on bean: " + bean + " reason: " + e, e ); } } | protected void processBean(String var, Object bean) throws JellyTagException { if (var != null) { context.setVariable(var, bean); } // now lets try set the parent property via calling the adder or the setter method if (bean != null) { Object parentObject = g... | |
Enumeration enum = errors.elements(); | Enumeration e = errors.elements(); | public void displayErrors(){ //If no error are found then nothing is displayed. Enumeration enum = errors.elements(); //In the first line, show the exact token that was parsed from //the URL. if (enum.hasMoreElements()) display(LocalizedResource.getMessage("TL_urlLabel1", "[", getTok... |
if (enum.hasMoreElements()) | if (e.hasMoreElements()) | public void displayErrors(){ //If no error are found then nothing is displayed. Enumeration enum = errors.elements(); //In the first line, show the exact token that was parsed from //the URL. if (enum.hasMoreElements()) display(LocalizedResource.getMessage("TL_urlLabel1", "[", getTok... |
while (enum.hasMoreElements()){ String aString = (String)enum.nextElement(); | while (e.hasMoreElements()){ String aString = (String)e.nextElement(); | public void displayErrors(){ //If no error are found then nothing is displayed. Enumeration enum = errors.elements(); //In the first line, show the exact token that was parsed from //the URL. if (enum.hasMoreElements()) display(LocalizedResource.getMessage("TL_urlLabel1", "[", getTok... |
} | public void displayErrors(){ //If no error are found then nothing is displayed. Enumeration enum = errors.elements(); //In the first line, show the exact token that was parsed from //the URL. if (enum.hasMoreElements()) display(LocalizedResource.getMessage("TL_urlLabel1", "[", getTok... | |
public NestedLoopJoinResultSet(NoPutResultSet leftResultSet, | NestedLoopJoinResultSet(NoPutResultSet leftResultSet, | public NestedLoopJoinResultSet(NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, boolean oneRowRightSide, boolean not... |
String userSuppliedOptimizerOverrides, GeneratedMethod closeCleanup) | String userSuppliedOptimizerOverrides) | public NestedLoopJoinResultSet(NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, boolean oneRowRightSide, boolean not... |
optimizerEstimatedCost, userSuppliedOptimizerOverrides, closeCleanup); | optimizerEstimatedCost, userSuppliedOptimizerOverrides); | public NestedLoopJoinResultSet(NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, boolean oneRowRightSide, boolean not... |
public ResultColumnList getAllResultColumns(String allTableName) | public ResultColumnList getAllResultColumns(TableName allTableName) | public ResultColumnList getAllResultColumns(String allTableName) throws StandardException { if (SanityManager.DEBUG) SanityManager.THROWASSERT( "getAllResultColumns() not expected to be called for " + this.getClass().getName() + this); return null; } |
if(usingEmbeddedClient()) trsm.t_wrapper(rs_main); | public static void main(String args[]) { try { // use the ij utility to read the property file and // make the initial connection. ij.getPropertyArg(args); Connection conn_main = ij.startJBMS(); PreparedStatement ps_main=null; ResultSet rs_main=null; ps_main = conn_main.prepareStatement("se... | |
ParameterValueSet pvs, boolean rollbackParentContext); | ParameterValueSet pvs, boolean rollbackParentContext, long timeoutMillis); | StatementContext pushStatementContext(boolean isAtomic, String stmtText, ParameterValueSet pvs, boolean rollbackParentContext); |
public DistinctScanResultSet(long conglomId, | DistinctScanResultSet(long conglomId, | public DistinctScanResultSet(long conglomId, StaticCompiledOpenConglomInfo scoci, Activation activation, GeneratedMethod resultRowAllocator, int resultSetNumber, int hashKeyItem, String tableName, String userSuppliedOptimizerOverrides, String indexName, boolean isConstraint, int colRefItem, int lockMod... |
double optimizerEstimatedCost, GeneratedMethod closeCleanup) | double optimizerEstimatedCost) | public DistinctScanResultSet(long conglomId, StaticCompiledOpenConglomInfo scoci, Activation activation, GeneratedMethod resultRowAllocator, int resultSetNumber, int hashKeyItem, String tableName, String userSuppliedOptimizerOverrides, String indexName, boolean isConstraint, int colRefItem, int lockMod... |
optimizerEstimatedRowCount, optimizerEstimatedCost, closeCleanup); | optimizerEstimatedRowCount, optimizerEstimatedCost); | public DistinctScanResultSet(long conglomId, StaticCompiledOpenConglomInfo scoci, Activation activation, GeneratedMethod resultRowAllocator, int resultSetNumber, int hashKeyItem, String tableName, String userSuppliedOptimizerOverrides, String indexName, boolean isConstraint, int colRefItem, int lockMod... |
Monitor.logMessage("-------------------------\n"); t.printStackTrace(Monitor.getStream().getPrintWriter()); Monitor.logMessage("-------------------------\n"); ErrorStringBuilder esb = new ErrorStringBuilder(Monitor.getStream().getHeader()); | ErrorStringBuilder esb = new ErrorStringBuilder(Monitor.getStream().getHeader()); | private void printErrorStack(Throwable t) { Monitor.logMessage("-------------------------\n"); t.printStackTrace(Monitor.getStream().getPrintWriter()); Monitor.logMessage("-------------------------\n"); ErrorStringBuilder esb = new ErrorStringBuilder(Monitor.getStream().getHeader()); esb.stackTrace(t); } |
} | Monitor.logMessage(esb.get().toString()); esb.reset(); } | private void printErrorStack(Throwable t) { Monitor.logMessage("-------------------------\n"); t.printStackTrace(Monitor.getStream().getPrintWriter()); Monitor.logMessage("-------------------------\n"); ErrorStringBuilder esb = new ErrorStringBuilder(Monitor.getStream().getHeader()); esb.stackTrace(t); } |
closeMethodArgument(acb, mb); | public void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { /* Get the next ResultSet#, so we can number this ResultSetNode, its * ResultColumnList and ResultSet. */ assignResultSetNumber(); // Get the final cost estimate based on the child's cost. costEstimate = ... | |
mb.callMethod(VMOpcode.INVOKEINTERFACE, (String) null, "getSortResultSet", ClassName.NoPutResultSet, 10); | mb.callMethod(VMOpcode.INVOKEINTERFACE, (String) null, "getSortResultSet", ClassName.NoPutResultSet, 9); | public void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { /* Get the next ResultSet#, so we can number this ResultSetNode, its * ResultColumnList and ResultSet. */ assignResultSetNumber(); // Get the final cost estimate based on the child's cost. costEstimate = ... |
String [] expectedColNames) throws Exception | String [] expectedColNames) throws SQLException | public static void assertColumnNames(ResultSet rs, String [] expectedColNames) throws Exception { ResultSetMetaData rsmd = rs.getMetaData(); int actualCols = rsmd.getColumnCount(); Assert.assertEquals("Unexpected column count:", rsmd.getColumnCount(), expectedColNames.lengt... |
rsmd.getColumnCount(), expectedColNames.length); | expectedColNames.length, rsmd.getColumnCount()); | public static void assertColumnNames(ResultSet rs, String [] expectedColNames) throws Exception { ResultSetMetaData rsmd = rs.getMetaData(); int actualCols = rsmd.getColumnCount(); Assert.assertEquals("Unexpected column count:", rsmd.getColumnCount(), expectedColNames.lengt... |
&& obj.equals(expectedRow[i])); | && expectedRow[i].equals(obj)); | private static void assertRowInResultSet(ResultSet rs, int rowNum, Object [] expectedRow, boolean asTrimmedStrings) throws SQLException { String s; boolean ok; Object obj = null; ResultSetMetaData rsmd = rs.getMetaData(); for (int i = 0; i < expectedRow.length; i++) ... |
cookedArgs[ i ] = "<" + rawArgs[ i ] + ">"; | cookedArgs[ i ] = "<varname><" + rawArgs[ i ] + "></varname>"; | private String plugInArgs( String message, String[] rawArgs ) { int count = rawArgs.length; String[] cookedArgs = new String[ count ]; // add xml angle brackets around the args for ( int i = 0; i < count; i++ ) { cookedArgs[ i ] = "<" + rawArgs[ i ... |
String displayText = replaceSpecialChars( plugInArgs( rawText, args ) ); | private void processMessage( PrintWriter propertiesPW, XMLWriter ditaWriter, Element message ) throws Exception { String name = squeezeText( getFirstChild( message, "name" ) ); String sqlstate = getSQLState( name ); String rawText = squeezeText( getFirstChild( ... | |
} String displayText; if (rawText.indexOf('\'')>=0) { displayText = replaceSpecialChars( escapeTextWithAQuote( rawText ) ); displayText = plugInArgs( displayText , args ); } else { displayText = plugInArgs( replaceSpecialChars( rawText), args ) ; | private void processMessage( PrintWriter propertiesPW, XMLWriter ditaWriter, Element message ) throws Exception { String name = squeezeText( getFirstChild( message, "name" ) ); String sqlstate = getSQLState( name ); String rawText = squeezeText( getFirstChild( ... | |
if (home != null) dataDirectory = home + getSeparator() + dataDirectory; } | void doInit() throws IOException { if( dataDirectory != null) { File dataDirectoryFile = new File( dataDirectory); File databaseRoot = null; if( dataDirectoryFile.isAbsolute()) databaseRoot = dataDirectoryFile; else if( home != null && data... | |
if (td.getTableType() == TableDescriptor.VIEW_TYPE) | switch (td.getTableType()) | private static void defragmentRows( String schemaName, String tableName, DataDictionary data_dictionary, TransactionController tc) throws SQLException { GroupFetchScanController base_group_fetch_cc = null; int num_index... |
return; | case TableDescriptor.VIEW_TYPE: case TableDescriptor.VTI_TYPE: return; default: break; | private static void defragmentRows( String schemaName, String tableName, DataDictionary data_dictionary, TransactionController tc) throws SQLException { GroupFetchScanController base_group_fetch_cc = null; int num_index... |
if (td.getTableType() != TableDescriptor.VIEW_TYPE) | switch (td.getTableType()) | private static void purgeRows( String schemaName, String tableName, DataDictionary data_dictionary, TransactionController tc) throws StandardException { SchemaDescriptor sd = data_dictionary.getSchemaDescriptor(schemaName, tc, true); ... |
} | private static void purgeRows( String schemaName, String tableName, DataDictionary data_dictionary, TransactionController tc) throws StandardException { SchemaDescriptor sd = data_dictionary.getSchemaDescriptor(schemaName, tc, true); ... | |
if (td.getTableType() != TableDescriptor.VIEW_TYPE) | switch (td.getTableType()) | private static void truncateEnd( String schemaName, String tableName, DataDictionary data_dictionary, TransactionController tc) throws StandardException { SchemaDescriptor sd = data_dictionary.getSchemaDescriptor(schemaName, tc, true);... |
ConglomerateDescriptor[] conglom_descriptors = | case TableDescriptor.VIEW_TYPE: case TableDescriptor.VTI_TYPE: break; default: { ConglomerateDescriptor[] conglom_descriptors = | private static void truncateEnd( String schemaName, String tableName, DataDictionary data_dictionary, TransactionController tc) throws StandardException { SchemaDescriptor sd = data_dictionary.getSchemaDescriptor(schemaName, tc, true);... |
} | private static void truncateEnd( String schemaName, String tableName, DataDictionary data_dictionary, TransactionController tc) throws StandardException { SchemaDescriptor sd = data_dictionary.getSchemaDescriptor(schemaName, tc, true);... | |
throws StandardException | public void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) { /* ** Generate the following: ** ** <javaClassName>.<field name> */ mb.getStaticField(field.getDeclaringClass().getName(), fieldName, getJavaTypeName()); } | |
try { if (con.currentConnectionHandle != null) { con.currentConnectionHandle.getIsolationUptoDate(); } } catch (SQLException sqle) { throw wrapInXAException(sqle); } | public final synchronized void start(Xid xid, int flags) throws XAException { checkXAActive(); // JDBC 3.0 section 12.3 - One transaction associated with a XAConnection if (currentXid != null) throw new XAException(XAException.XAER_PROT... | |
reloadData(); | public static void main(String[] args) { System.out.println("Start testing delete and update using JDBC2.0 updateable resultset apis"); try { // use the ij utility to read the property file and // make the initial connection. ij.getPropertyArg(args); conn = ij.startJBMS(); setup(true); System.out.println... | |
public boolean isValid(int timeout) throws SQLException { throw SQLExceptionFactory.notImplemented("isValid(int)"); | synchronized public boolean isValid(int timeout) throws SQLException { if (physicalConnection_ == null) { return false; } return physicalConnection_.isValid(timeout); | public boolean isValid(int timeout) throws SQLException { throw SQLExceptionFactory.notImplemented("isValid(int)"); } |
closeCleanup); | userSuppliedOptimizerOverrides, closeCleanup); | public HashLeftOuterJoinResultSet( NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, GeneratedMethod emptyRowFun, boolean wasRightOuterJoin, boo... |
if (connection_.resultSetHoldability_ == JDBC30Translation.HOLD_CURSORS_OVER_COMMIT) { | if (connection_.holdability() == JDBC30Translation.HOLD_CURSORS_OVER_COMMIT) { | private ResultSet getExportedKeysX(String catalog, String schema, String table) throws SqlException { checkForClosedConnectionX(); ; PreparedStatement cs = prepareMetaDataQuery("SYSIBM.SQLFOREIGNKEYS(?,?,?,?,?,?,?)"); ... |
if (connection_.resultSetHoldability_ == JDBC30Translation.HOLD_CURSORS_OVER_COMMIT) { | if (connection_.holdability() == JDBC30Translation.HOLD_CURSORS_OVER_COMMIT) { | private ResultSet getImportedKeysX(String catalog, String schema, String table) throws SqlException { checkForClosedConnectionX(); PreparedStatement cs = prepareMetaDataQuery("SYSIBM.SQLFOREIGNKEYS(?,?,?,?,?,?,?)"); cs.... |
if (connection_.resultSetHoldability_ == JDBC30Translation.HOLD_CURSORS_OVER_COMMIT) { | if (connection_.holdability() == JDBC30Translation.HOLD_CURSORS_OVER_COMMIT) { | private String getOptions() { int cursorHold; if (connection_.resultSetHoldability_ == JDBC30Translation.HOLD_CURSORS_OVER_COMMIT) { cursorHold = 1; } else { cursorHold = 0; } return "DATATYPE='JDBC';DYNAMIC=0;REPORTPUBLICPRIVILEGES=1;CURSORHOLD=" + cursorHol... |
if (connection_.resultSetHoldability_ == JDBC30Translation.HOLD_CURSORS_OVER_COMMIT) { | if (connection_.holdability() == JDBC30Translation.HOLD_CURSORS_OVER_COMMIT) { | private ResultSet getTableTypesX() throws SqlException { checkForClosedConnectionX(); ; PreparedStatement cs = null; cs = prepareMetaDataQuery("SYSIBM.SQLTABLES(?,?,?,?,?)"); cs.setStringX(1, ""); cs.setStringX(2, ""); cs.setStringX(3, ""); cs.setStringX(4, "%... |
connection_.resultSetHoldability_, | connection_.holdability(), | private PreparedStatement prepareMetaDataQuery(String cmd) throws SqlException { PreparedStatement ps; ps = (org.apache.derby.client.am.PreparedStatement) connection_.prepareStatementX("CALL " + cmd, java.sql.ResultSet.TYPE_FORWARD_ONLY, jav... |
public DerbyProperties(IProject project) throws CoreException { load(project); } | public DerbyProperties() {} | public DerbyProperties(IProject project) throws CoreException { load(project); } |
suite.addTest(new PreparedStatementTest( "embonlytmptestSetClobLengthless")); suite.addTest(new PreparedStatementTest( "embonlytmptestSetBlobLengthless")); suite.addTest(new PreparedStatementTest( "embonlytmptestSetCharacterStreamLengthless")); suite.addTest(new PreparedStatementTest( "embonlytmptestSetAsciiStreamLengt... | if (usingEmbedded()) { suite.addTest(new PreparedStatementTest( "embonlytmptestSetClobLengthless")); suite.addTest(new PreparedStatementTest( "embonlytmptestSetBlobLengthless")); suite.addTest(new PreparedStatementTest( "embonlytmptestSetCharacterStreamLengthless")); suite.addTest(new PreparedStatementTest( "embonlytm... | public static Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(PreparedStatementTest.class); // Add methods temorarily disabled for DerbyNetClient suite.addTest(new PreparedStatementTest( "embonlytmptestSetClobLengthless")); suite.addTest(new... |
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... | |
System.out.println("This exception is expected with jdk 1.3\n" + e.getMessage()); | if (JVMInfo.JDK_ID <= 2) { System.out.println("This exception is expected with jdk 1.3: " + "holdability not supported with jdk131 /ibm131 based jvms"); } else { System.out.println("Got unexpected exception: " + e.getMessage()); } | public static void main(String[] args) { System.out.println("Start testing delete and update using JDBC2.0 updateable resultset apis"); try { // use the ij utility to read the property file and // make the initial connection. ij.getPropertyArg(args); conn = ij.startJBMS(); setup(true); System.out.println... |
FormatableBitSet column_list, int[] format_ids) | DataValueDescriptor[] template) | public static DataValueDescriptor[] newRow( FormatableBitSet column_list, int[] format_ids) throws StandardException { return(allocate_objects(format_ids.length, column_list, format_ids)); } |
return(allocate_objects(format_ids.length, column_list, format_ids)); | DataValueDescriptor[] columns = new DataValueDescriptor[template.length]; try { for (int i = template.length; i-- > 0 ;) { columns[i] = (DataValueDescriptor) template[i].getClass().newInstance(); } } catch (Throwable t) { throw(StandardException.newException( SQLState.CONGLOMERATE_TEMPLATE_CREATE_ERROR)); } retu... | public static DataValueDescriptor[] newRow( FormatableBitSet column_list, int[] format_ids) throws StandardException { return(allocate_objects(format_ids.length, column_list, format_ids)); } |
StorageFile exFileLock = storageFactory.newStorageFile( DB_EX_LOCKFILE_NAME); | exFileLock = storageFactory.newStorageFile( DB_EX_LOCKFILE_NAME); | private void privGetJBMSLockOnDB() throws StandardException { boolean fileLockExisted = false; String blownUUID = null; StorageFile fileLock = storageFactory.newStorageFile( DB_LOCKFILE_NAME); try { // assume we are not read only // SECURITY PERMISSION MP1... |
StorageFile fileLock = storageFactory.newStorageFile( DB_LOCKFILE_NAME); | StorageFile fileLock = storageFactory.newStorageFile(DB_LOCKFILE_NAME); fileLock.delete(); } | private void privReleaseJBMSLockOnDB() throws IOException { if (fileLockOnDB != null) fileLockOnDB.close(); if( storageFactory != null) { StorageFile fileLock = storageFactory.newStorageFile( DB_LOCKFILE_NAME); fileLock.releaseExclusiveFileLock(); } ... |
fileLock.releaseExclusiveFileLock(); } | if(exFileLock != null) exFileLock.releaseExclusiveFileLock(); | private void privReleaseJBMSLockOnDB() throws IOException { if (fileLockOnDB != null) fileLockOnDB.close(); if( storageFactory != null) { StorageFile fileLock = storageFactory.newStorageFile( DB_LOCKFILE_NAME); fileLock.releaseExclusiveFileLock(); } ... |
if (jflags != null) | if (jvmflags != null) | 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) ... |
jvmflags = jvmflags + "^" + jflags; suiteProperties.put("jvmflags", jvmflags); | if (jflags != null) suiteProperties.put("jvmflags", (jvmflags + "^" + jflags)); else suiteProperties.put("jvmflags", jvmflags); } else { if (jflags != null) suiteProperties.put("jvmflags", jflags); | 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) ... |
return; | { perm.setUUID(null); return; } | public void addRemovePermissionsDescriptor( boolean add, PermissionsDescriptor perm, String grantee, TransactionController tc) throws StandardException { int ... |
perm.setUUID(null); | public void addRemovePermissionsDescriptor( boolean add, PermissionsDescriptor perm, String grantee, TransactionController tc) throws StandardException { int ... | |
return bh.write(this.in, len); | long val = 0; if ( !streamClosed ) { val = bh.write(this.in, len); if ( val < len ) streamClosed=true; } return val; | public long fillBuf(int len) throws IOException{ return bh.write(this.in, len); } |
int value = super.read(); if (value != -1) bh.write(value); return value; | int value = -1; if ( !streamClosed ) { value = super.read(); if ( value != -1 ) bh.write(value); else streamClosed =true; } return value; | public int read() throws IOException { if (SanityManager.DEBUG) SanityManager.ASSERT(recording, "Must be in record mode to perform a read."); int value = super.read(); if (value != -1) bh.write(value); return value; } |
streamClosed = false; | public void setInput(InputStream in) { this.in = in; } | |
public int read(OutputStream out, int len) | public int read() | public int read(OutputStream out, int len) throws IOException; |
String[] args = new String[6]; | String[] args = new String[7]; | private static void runTests(Properties suiteProps, String suite) throws IOException, Exception { // save a copy of the system properties at this point; when runing with // java threads we need to reset the system properties to this list; // otherwise we start to accumulate extraneous properti... |
if ((!useprocess) && ((framework !=null) && (framework.startsWith("DerbyNet")))) { try { String stopCmd = javaCmd + " org.apache.derby.drda.NetworkServerControl shutdown"; Process prstop = Runtime.getRuntime().exec(stopCmd); } catch (Exception e) {} } | private static void runTests(Properties suiteProps, String suite) throws IOException, Exception { // save a copy of the system properties at this point; when runing with // java threads we need to reset the system properties to this list; // otherwise we start to accumulate extraneous properti... | |
SanityManager.ASSERT(new_highest_page >= 0, "negative new high page."); | SanityManager.ASSERT(new_highest_page >= -1, "negative new high page."); | protected void compressSpace( LogInstant instant, int new_highest_page, int num_pages_truncated) throws StandardException { if (SanityManager.DEBUG) { SanityManager.ASSERT(isLatched(), "page is not latched"); SanityManager.ASSERT(isLast(), "compress on non last alloc pa... |
TestSuite suite = new TestSuite(); | final TestSuite suite = new TestSuite(); | public static Test suite() { TestSuite suite = new TestSuite(); // DB2 client doesn't support this functionality if (usingDerbyNet()) return suite; // Requires holdability if (JDBC.vmSupportsJDBC3() || JDBC.vmSupportsJSR169()) { su... |
if (usingDerbyNet()) return suite; | suite.addTest(new ConcurrencyTest("testSharedLocks2")); if ((JDBC.vmSupportsJDBC3() || JDBC.vmSupportsJSR169())) { suite.addTest(new ConcurrencyTest("testUpdateLockDownGrade1")); suite.addTest(new ConcurrencyTest("testAquireUpdateLock1")); suite.addTest(new ConcurrencyTest("testSharedLocks1")); suite.addTest(new Co... | public static Test suite() { TestSuite suite = new TestSuite(); // DB2 client doesn't support this functionality if (usingDerbyNet()) return suite; // Requires holdability if (JDBC.vmSupportsJDBC3() || JDBC.vmSupportsJSR169()) { su... |
if (JDBC.vmSupportsJDBC3() || JDBC.vmSupportsJSR169()) { | if (usingEmbedded()) { suite.addTest (new ConcurrencyTest("testUpdatePurgedTuple1")); } } } | public static Test suite() { TestSuite suite = new TestSuite(); // DB2 client doesn't support this functionality if (usingDerbyNet()) return suite; // Requires holdability if (JDBC.vmSupportsJDBC3() || JDBC.vmSupportsJSR169()) { su... |
suite.addTest(new ConcurrencyTest("testUpdateLockDownGrade1")); suite.addTest(new ConcurrencyTest("testAquireUpdateLock1")); suite.addTest(new ConcurrencyTest("testSharedLocks1")); suite.addTest(new ConcurrencyTest("testSharedLocks2")); suite.addTest(new ConcurrencyTest("testSharedAndUpdateLocks1")); suite.addTest(new... | final Properties properties = new Properties(); properties.setProperty("derby.locks.waitTimeout", "4"); | public static Test suite() { TestSuite suite = new TestSuite(); // DB2 client doesn't support this functionality if (usingDerbyNet()) return suite; // Requires holdability if (JDBC.vmSupportsJDBC3() || JDBC.vmSupportsJSR169()) { su... |
} return suite; | return new SystemPropertyTestSetup(suite, properties); | public static Test suite() { TestSuite suite = new TestSuite(); // DB2 client doesn't support this functionality if (usingDerbyNet()) return suite; // Requires holdability if (JDBC.vmSupportsJDBC3() || JDBC.vmSupportsJSR169()) { su... |
Object dts) | Object dts) throws StandardException | public void init( Object columnName, Object tableName, Object dts) { this.columnName = (String) columnName; this.tableName = (TableName) tableName; setType((DataTypeDescriptor) dts); } |
if (clobReader != null){ try{ clobReader.close(); }catch(IOException e){ e.printStackTrace(); throw new SQLException(e.getMessage()); } } | if (clobReader != null) clobReader.close(); | public String getSubString(long pos, int length) throws SQLException { if (pos < 1) throw Util.generateCsSQLException( SQLState.BLOB_BAD_POSITION, new Long(pos)); if (length <= 0) throw Util.generateCsSQLException( SQLState.BLOB_NONPOSITIVE_LENGTH... |
getCompilerContext().popCurrentPrivType(); | public void bindExpressions(FromList fromListParam) throws StandardException { int fromListParamSize = fromListParam.size(); int fromListSize = fromList.size(); int numDistinctAggs; if (SanityManager.DEBUG) SanityManager.ASSERT(fromList != null && resultColumns != null, "Both fromList and resultColumns are ... | |
result = new java.io.ByteArrayInputStream (convertToAsciiByteArray((String) agent_.crossConverters_.setObject(java.sql.Types.CHAR, updatedColumns_[column - 1]))); | result = new AsciiStream((String) agent_.crossConverters_.setObject(java.sql.Types.CHAR, updatedColumns_[column - 1])); | 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 ... |
for( Enumeration e = cl.getResources("org/apache/derby/modules.properties"); e.hasMoreElements() ;) { | Enumeration e = cl == null ? ClassLoader.getSystemResources("org/apache/derby/modules.properties") : cl.getResources("org/apache/derby/modules.properties"); while (e.hasMoreElements()) { | Properties getDefaultModuleProperties() { // SECURITY PERMISSION - IP1 for modules in this jar // or other jars shipped with the Derby release. Properties moduleList = new Properties(); boolean firstList = true; ClassLoader cl = getClass().getClassLoader(); try { for( Enumeration e =... |
DateTimeDataValue getTimestamp( DataValueDescriptor date, DataValueDescriptor time) throws StandardException; | DateTimeDataValue getTimestamp( DataValueDescriptor operand) throws StandardException; | DateTimeDataValue getTimestamp( DataValueDescriptor date, DataValueDescriptor time) throws StandardException; |
public static final String[] splitString(String string, char separator) | public static final String[] splitString(String string, String separator) | public static final String[] splitString(String string, char separator) { /* * 0123456 * Example a;b;c;d --> new String[] { a, b, c, d } */ // System.out.println("splitString ["+path+"] using ["+separator+"]"); List list = new ArrayList(); if (string == null || string.length() == 0) { re... |
int end = string.length(); | int end = string.length() - sepLen + 1; | public static final String[] splitString(String string, char separator) { /* * 0123456 * Example a;b;c;d --> new String[] { a, b, c, d } */ // System.out.println("splitString ["+path+"] using ["+separator+"]"); List list = new ArrayList(); if (string == null || string.length() == 0) { re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.