Skip to content

Commit

Permalink
Set XSD version to v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Aug 11, 2023
1 parent d70dc52 commit cf9f7f9
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 5 deletions.
2 changes: 2 additions & 0 deletions ddlx/src/main/resources/ddlx-0.5.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
program. If not, see <http://opensource.org/licenses/MIT/>.
-->
<xs:schema
vc:minVersion="1.1"
elementFormDefault="qualified"
targetNamespace="http://www.jaxdb.org/ddlx-0.5.xsd"
xmlns:ddlx="http://www.jaxdb.org/ddlx-0.5.xsd"
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:include schemaLocation="ddlx-common-0.5.xsd"/>
Expand Down
2 changes: 2 additions & 0 deletions ddlx/src/main/resources/ddlx-common-0.5.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
program. If not, see <http://opensource.org/licenses/MIT/>.
-->
<xs:schema
vc:minVersion="1.1"
elementFormDefault="qualified"
targetNamespace="http://www.jaxdb.org/ddlx-0.5.xsd"
xmlns:ddlx="http://www.jaxdb.org/ddlx-0.5.xsd"
xmlns:dt="http://www.jaxdb.org/datatypes-0.5.xsd"
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

Expand Down
5 changes: 3 additions & 2 deletions jsql/src/main/java/org/jaxdb/jsql/Schema.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ Notifier<?> getCacheNotifier() {
final SELECT<T> select = onConnectPreLoad.apply(table);
if (select != null) {
final Connector connector = table.getSchema().getConnector();
try (final RowIterator<T> rows = select.execute(connector)) {
while (rows.nextRow());
try (final RowIterator<T> rows = select.execute(connector, CacheConfig.withoutCacheSelectEntity)) {
while (rows.nextRow())
cacheNotifier.onSelect(rows.nextEntity());
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions jsql/src/main/resources/jsql-0.5.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
program. If not, see <http://opensource.org/licenses/MIT/>.
-->
<xs:schema
vc:minVersion="1.1"
elementFormDefault="qualified"
attributeFormDefault="qualified"
targetNamespace="http://www.jaxdb.org/jsql-0.5.xsd"
xmlns:ddlx="http://www.jaxdb.org/ddlx-0.5.xsd"
xmlns:sqlx="http://www.jaxdb.org/sqlx-0.5.xsd"
xmlns:jsql="http://www.jaxdb.org/jsql-0.5.xsd"
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:import namespace="http://www.jaxdb.org/ddlx-0.5.xsd" schemaLocation="jsql-ddlx-0.5.xsd"/>
Expand Down
2 changes: 2 additions & 0 deletions jsql/src/main/resources/jsql-ddlx-0.5.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
program. If not, see <http://opensource.org/licenses/MIT/>.
-->
<xs:schema
vc:minVersion="1.1"
elementFormDefault="qualified"
targetNamespace="http://www.jaxdb.org/ddlx-0.5.xsd"
xmlns:ddlx="http://www.jaxdb.org/ddlx-0.5.xsd"
xmlns:sqlx="http://www.jaxdb.org/sqlx-0.5.xsd"
xmlns:jsql="http://www.jaxdb.org/jsql-0.5.xsd"
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:import namespace="http://www.jaxdb.org/jsql-0.5.xsd" schemaLocation="jsql-0.5.xsd"/>
Expand Down
4 changes: 2 additions & 2 deletions jsql/src/test/java/org/jaxdb/jsql/TestCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public static class Select {
}

private static boolean called;
private static ThreadLocal<AssertCommand> assertCommand = new ThreadLocal<>();
private static ThreadLocal<AssertSelect> assertSelect = new ThreadLocal<>();
private static final ThreadLocal<AssertCommand> assertCommand = new ThreadLocal<>();
private static final ThreadLocal<AssertSelect> assertSelect = new ThreadLocal<>();

public static boolean called() {
if (!called)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import java.sql.SQLException;

public abstract class TestConnectionFactory implements ConnectionFactory {
private static ThreadLocal<Boolean> called = new ThreadLocal<Boolean>() {
private static final ThreadLocal<Boolean> called = new ThreadLocal<Boolean>() {
@Override
protected Boolean initialValue() {
return Boolean.FALSE;
Expand Down
2 changes: 2 additions & 0 deletions sqlx/src/main/resources/sqlx-0.5.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
program. If not, see <http://opensource.org/licenses/MIT/>.
-->
<xs:schema
vc:minVersion="1.1"
elementFormDefault="qualified"
attributeFormDefault="qualified"
targetNamespace="http://www.jaxdb.org/sqlx-0.5.xsd"
xmlns:ddlx="http://www.jaxdb.org/ddlx-0.5.xsd"
xmlns:sqlx="http://www.jaxdb.org/sqlx-0.5.xsd"
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:import namespace="http://www.jaxdb.org/ddlx-0.5.xsd" schemaLocation="sqlx-ddlx-0.5.xsd"/>
Expand Down
2 changes: 2 additions & 0 deletions sqlx/src/main/resources/sqlx-common-0.5.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
program. If not, see <http://opensource.org/licenses/MIT/>.
-->
<xs:schema
vc:minVersion="1.1"
attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="http://www.jaxdb.org/sqlx-0.5.xsd"
xmlns:sqlx="http://www.jaxdb.org/sqlx-0.5.xsd"
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:simpleType name="increment">
Expand Down
2 changes: 2 additions & 0 deletions sqlx/src/main/resources/sqlx-ddlx-0.5.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
program. If not, see <http://opensource.org/licenses/MIT/>.
-->
<xs:schema
vc:minVersion="1.1"
elementFormDefault="qualified"
targetNamespace="http://www.jaxdb.org/ddlx-0.5.xsd"
xmlns:ddlx="http://www.jaxdb.org/ddlx-0.5.xsd"
xmlns:sqlx="http://www.jaxdb.org/sqlx-0.5.xsd"
xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:import namespace="http://www.jaxdb.org/sqlx-0.5.xsd" schemaLocation="sqlx-0.5.xsd"/>
Expand Down

0 comments on commit cf9f7f9

Please sign in to comment.