DERBY-6306: XplainStatisticsTest.testSimpleQuery: BEGIN_COMP_TIME unexpectedly NULL

Clear the statement cache between test cases so that statements from
earlier test cases don't affect the results.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1518533 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6318: Simplify setting of possibly null parameters in XPLAIN descriptors

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1518534 13f79535-47bb-0310-9956-ffa450edef68
DERBY-5553 System property for client tracing -Dderby.client.traceDirectory does not work with XADataSource 



git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1518766 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6321: NetBeans project file: add XML api to source classpath

Patch derby-6321: Now that the Derby source code has been modernized
on trunk, there are less red squiggles seen in the NetBeans project
view: the old mix of Java source level versions in different parts of
Derby made the IDE confused.

There are still a few remaining red warning flags to be seen: one is
in classes that reference the XML api.  Adding
"${project.dir}/tools/java/xml-apis.jar" to the project file's source
classpath gets rid of those warnings.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1519006 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6322: Remove erreoneous warning in NetBeans: superfluous use of super to access inherited member variable

This code in SortBufferScan makes NetBeans (7.4beta) issue a warning:

return (super.current != null);

"Incompatible types: boolean is not a functional interface <identifier expected>
; expected"

Patch derby-6322 removes the redundant "super." prefix.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1519007 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6276: Convert lang/DB2IsolationLevels.sql to JUnit

Patch which performs the conversion.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1519008 13f79535-47bb-0310-9956-ffa450edef68
DERBY-532: Support deferrable constraints

Patch derby-532-testAlterConstraintInvalidation.

Adds a fixture to test that prepared statement is invalidated when a
table its depends on undergoes an ALTER TABLE ALTER CONSTRAINT
statement. As it turns out, this is already handled by the common
machinery for ALTER TABLE.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1519045 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6324; DatabaseMetaData.getJDBCMinorVersion() should return 2 now that we've implemented JDBC 4.2
  Adding logic to JVMInfo to identify the supported JDBC level based on the 
  (currently supported) JVM versions, which then is used in the client and embedded drivers.
  Tests are changed to reflect this.


git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1519785 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6276; Convert lang/DB2IsolationLevels.sql to JUnit
  giving svn delete another go to remove master and .sql. Also removing test from derbylang.


git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1519870 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6323: Fix incorrect @throws and @exception tags in javadoc

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1519954 13f79535-47bb-0310-9956-ffa450edef68
DERBY-6317 Optmizer can choose the wrong path when BTreeCostController.java returns an estimate cost and row count of 0.0 

The Optimizer estimates do not handle well 0 row counts coming out of store.
These estimates end up getting multiplied by other estimates and the resulting
0 costs caused the incorrect plan to be picked in the repro included with
this fix.  This fix changes store cost to always return at least a minimum
of one row when asked to estimate the number of rows in an exact range of
keys from an index.  This minimum is consistent with the optimizer assumption
that an exact key match on a unique index will also return 1 row.

Thanks to Brett Bergquist for debugging and suggesting a fix and to mamta 
satoor for providing a reproducible test case for the bug.



git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1521310 13f79535-47bb-0310-9956-ffa450edef68