Skip to content
This repository was archived by the owner on Jan 18, 2024. It is now read-only.

Commit a0f444e

Browse files
Init
1 parent fd432f9 commit a0f444e

14 files changed

+1887
-17
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ You should have the following things installed:
3333
* Ensure that everything is encoded in ``UTF-8``
3434
* Ensure that the JDK/Java-Version is correct
3535

36-
## Releasing [![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/xdev-swing-framework-template/release.yml?branch=master)](https://github.com/xdev-software/xdev-swing-framework-template/actions/workflows/release.yml)
36+
## Releasing [![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/xapi-db-hsqldb2/release.yml?branch=master)](https://github.com/xdev-software/xapi-db-hsqldb2/actions/workflows/release.yml)
3737

3838
Before releasing:
39-
* Consider doing a [test-deployment](https://github.com/xdev-software/xdev-swing-framework-template/actions/workflows/test-deploy.yml?query=branch%3Adevelop) before actually releasing.
39+
* Consider doing a [test-deployment](https://github.com/xdev-software/xapi-db-hsqldb2/actions/workflows/test-deploy.yml?query=branch%3Adevelop) before actually releasing.
4040
* Check the [changelog](CHANGELOG.md)
4141

4242
If the ``develop`` is ready for release, create a pull request to the ``master``-Branch and merge the changes.

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
[![Latest version](https://img.shields.io/maven-central/v/com.xdev-software/xdev-swing-framework-template)](https://mvnrepository.com/artifact/com.xdev-software/xdev-swing-framework-template)
2-
[![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/xdev-swing-framework-template/checkBuild.yml?branch=develop)](https://github.com/xdev-software/xdev-swing-framework-template/actions/workflows/checkBuild.yml?query=branch%3Adevelop)
3-
[![javadoc](https://javadoc.io/badge2/com.xdev-software/xdev-swing-framework-template/javadoc.svg)](https://javadoc.io/doc/com.xdev-software/xdev-swing-framework-template)
4-
# xdev-swing-framework-template
1+
[![Latest version](https://img.shields.io/maven-central/v/com.xdev-software/xapi-db-hsqldb2)](https://mvnrepository.com/artifact/com.xdev-software/xapi-db-hsqldb2)
2+
[![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/xapi-db-hsqldb2/checkBuild.yml?branch=develop)](https://github.com/xdev-software/xapi-db-hsqldb2/actions/workflows/checkBuild.yml?query=branch%3Adevelop)
3+
[![javadoc](https://javadoc.io/badge2/com.xdev-software/xapi-db-hsqldb2/javadoc.svg)](https://javadoc.io/doc/com.xdev-software/xapi-db-hsqldb2)
4+
# SqlEngine Database Adapter HSQLDB2
55

6-
A XDEV Swing Framework Template
6+
The XDEV Application Framework provides an abstraction over database dialects as part of its SqlEngine. This module is the Database Adapter for HSQLDB2 which includes the HSQLDB2-specific implementation for database access.
77

88
## XDEV-IDE
99
The [XDEV(-IDE)](https://xdev.software/en/products/swing-builder) is a visual Java development environment for fast and easy application development (RAD - Rapid Application Development). XDEV differs from other Java IDEs such as Eclipse or NetBeans, focusing on programming through a far-reaching RAD concept. The IDE's main components are a Swing GUI builder, the XDEV Application Framework and numerous drag-and-drop tools and wizards with which the functions of the framework can be integrated.
@@ -17,4 +17,4 @@ If you need support as soon as possible and you can't wait for any pull request,
1717
See the [contributing guide](./CONTRIBUTING.md) for detailed instructions on how to get started with our project.
1818

1919
## Dependencies and Licenses
20-
View the [license of the current project](LICENSE) or the [summary including all dependencies](https://xdev-software.github.io/xdev-swing-framework-template/dependencies/)
20+
View the [license of the current project](LICENSE) or the [summary including all dependencies](https://xdev-software.github.io/xapi-db-hsqldb2/dependencies/)

pom.xml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>com.xdev-software</groupId>
8-
<artifactId>xdev-swing-framework-template</artifactId>
8+
<artifactId>xapi-db-hsql2</artifactId>
99
<version>1.0.0-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111

12-
<name>xdev-swing-framework-template</name>
13-
<description>xdev-swing-framework-template</description>
14-
<url>https://github.com/xdev-software/xdev-swing-framework-template</url>
12+
<name>SqlEngine Database Adapter HSQL2</name>
13+
<description>XAPI SqlEngine Database Adapter for HSQL2</description>
14+
<url>https://github.com/xdev-software/xapi-db-hsql2</url>
1515

1616
<scm>
17-
<url>https://github.com/xdev-software/xdev-swing-framework-template</url>
18-
<connection>https://github.com/xdev-software/xdev-swing-framework-template.git</connection>
19-
</scm>
17+
<url>https://github.com/xdev-software/xapi-db-hsql2</url>
18+
<connection>https://github.com/xdev-software/xapi-db-hsql2.git</connection>
19+
</scm>
2020

21-
<inceptionYear>2023</inceptionYear>
21+
<inceptionYear>2003</inceptionYear>
2222

2323
<organization>
2424
<name>XDEV Software</name>
@@ -48,6 +48,8 @@
4848

4949
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5050
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
51+
52+
<xdev.xapi.version>6.0.1</xdev.xapi.version>
5153
</properties>
5254

5355
<repositories>
@@ -87,7 +89,18 @@
8789
</distributionManagement>
8890

8991
<dependencies>
90-
92+
<dependency>
93+
<groupId>com.xdev-software</groupId>
94+
<artifactId>xapi</artifactId>
95+
<version>${xdev.xapi.version}</version>
96+
</dependency>
97+
98+
<!-- https://mvnrepository.com/artifact/org.hsqldb/hsqldb -->
99+
<dependency>
100+
<groupId>org.hsqldb</groupId>
101+
<artifactId>hsqldb</artifactId>
102+
<version>2.7.1</version>
103+
</dependency>
91104
</dependencies>
92105

93106
<build>

src/main/java/hsql.png

943 Bytes
Loading
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
/*
2+
* SqlEngine Database Adapter HSQL2 - XAPI SqlEngine Database Adapter for HSQL2
3+
* Copyright © 2003 XDEV Software (https://xdev.software)
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU Lesser General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU Lesser General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU Lesser General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
19+
package xdev.db.hsql2.jdbc;
20+
21+
/*-
22+
* #%L
23+
* HSQL2
24+
* %%
25+
* Copyright (C) 2003 - 2023 XDEV Software
26+
* %%
27+
* This program is free software: you can redistribute it and/or modify
28+
* it under the terms of the GNU Lesser General Public License as
29+
* published by the Free Software Foundation, either version 3 of the
30+
* License, or (at your option) any later version.
31+
*
32+
* This program is distributed in the hope that it will be useful,
33+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
34+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35+
* GNU General Lesser Public License for more details.
36+
*
37+
* You should have received a copy of the GNU General Lesser Public
38+
* License along with this program. If not, see
39+
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
40+
* #L%
41+
*/
42+
43+
import com.xdev.jadoth.sqlengine.dbms.DbmsConnectionInformation;
44+
import xdev.db.ConnectionInformation;
45+
46+
47+
public class HSQL2ConnectionInformation extends ConnectionInformation<HSQL2Dbms>
48+
{
49+
// /////////////////////////////////////////////////////////////////////////
50+
// constructors //
51+
// ///////////////////
52+
53+
/**
54+
* Instantiates a new hsql20 connection information.
55+
*
56+
* @param user
57+
* the user
58+
* @param password
59+
* the password
60+
* @param database
61+
* the database
62+
* @param urlExtension
63+
* the extended url properties
64+
* @param dbmsAdaptor
65+
* the dbms adaptor
66+
*/
67+
public HSQL2ConnectionInformation(final String host, final int port, final String user,
68+
final String password, final String database, final String urlExtension,
69+
final HSQL2Dbms dbmsAdaptor)
70+
{
71+
super(host,port,user,password,database,urlExtension,dbmsAdaptor);
72+
}
73+
74+
75+
// /////////////////////////////////////////////////////////////////////////
76+
// getters //
77+
// ///////////////////
78+
/**
79+
* Gets the database.
80+
*
81+
* @return the database
82+
*/
83+
public String getDatabase()
84+
{
85+
return this.getCatalog();
86+
}
87+
88+
89+
// /////////////////////////////////////////////////////////////////////////
90+
// setters //
91+
// ///////////////////
92+
/**
93+
* Sets the database.
94+
*
95+
* @param database
96+
* the database to set
97+
*/
98+
public void setDatabase(final String database)
99+
{
100+
this.setCatalog(database);
101+
}
102+
103+
104+
// /////////////////////////////////////////////////////////////////////////
105+
// override methods //
106+
// ///////////////////
107+
/**
108+
* @see DbmsConnectionInformation#createJdbcConnectionUrl()
109+
*/
110+
@Override
111+
public String createJdbcConnectionUrl()
112+
{
113+
String url = "jdbc:hsqldb:hsql://" + getHost() + ":" + getPort() + "/" + getCatalog();
114+
return appendUrlExtension(url);
115+
}
116+
117+
118+
/**
119+
* @see com.xdev.jadoth.sqlengine.dbms.DbmsConnectionInformation#getJdbcDriverClassName()
120+
*/
121+
@Override
122+
public String getJdbcDriverClassName()
123+
{
124+
return "org.hsqldb.jdbc.JDBCDriver";
125+
}
126+
127+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*
2+
* SqlEngine Database Adapter HSQL2 - XAPI SqlEngine Database Adapter for HSQL2
3+
* Copyright © 2003 XDEV Software (https://xdev.software)
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU Lesser General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU Lesser General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU Lesser General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
package xdev.db.hsql2.jdbc;
19+
20+
/*-
21+
* #%L
22+
* HSQL2
23+
* %%
24+
* Copyright (C) 2003 - 2023 XDEV Software
25+
* %%
26+
* This program is free software: you can redistribute it and/or modify
27+
* it under the terms of the GNU Lesser General Public License as
28+
* published by the Free Software Foundation, either version 3 of the
29+
* License, or (at your option) any later version.
30+
*
31+
* This program is distributed in the hope that it will be useful,
32+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
33+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34+
* GNU General Lesser Public License for more details.
35+
*
36+
* You should have received a copy of the GNU General Lesser Public
37+
* License along with this program. If not, see
38+
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
39+
* #L%
40+
*/
41+
42+
43+
import com.xdev.jadoth.sqlengine.dbms.standard.StandardDDLMapper;
44+
45+
46+
public class HSQL2DDLMapper extends StandardDDLMapper<HSQL2Dbms>
47+
{
48+
protected HSQL2DDLMapper(final HSQL2Dbms dbmsAdaptor)
49+
{
50+
super(dbmsAdaptor);
51+
}
52+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* SqlEngine Database Adapter HSQL2 - XAPI SqlEngine Database Adapter for HSQL2
3+
* Copyright © 2003 XDEV Software (https://xdev.software)
4+
*
5+
* This program is free software: you can redistribute it and/or modify
6+
* it under the terms of the GNU Lesser General Public License as published by
7+
* the Free Software Foundation, either version 3 of the License, or
8+
* (at your option) any later version.
9+
*
10+
* This program is distributed in the hope that it will be useful,
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
* GNU Lesser General Public License for more details.
14+
*
15+
* You should have received a copy of the GNU Lesser General Public License
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
package xdev.db.hsql2.jdbc;
19+
20+
/*-
21+
* #%L
22+
* HSQL2
23+
* %%
24+
* Copyright (C) 2003 - 2023 XDEV Software
25+
* %%
26+
* This program is free software: you can redistribute it and/or modify
27+
* it under the terms of the GNU Lesser General Public License as
28+
* published by the Free Software Foundation, either version 3 of the
29+
* License, or (at your option) any later version.
30+
*
31+
* This program is distributed in the hope that it will be useful,
32+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
33+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34+
* GNU General Lesser Public License for more details.
35+
*
36+
* You should have received a copy of the GNU General Lesser Public
37+
* License along with this program. If not, see
38+
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
39+
* #L%
40+
*/
41+
42+
import com.xdev.jadoth.sqlengine.dbms.standard.StandardDMLAssembler;
43+
44+
45+
public class HSQL2DMLAssembler extends StandardDMLAssembler<HSQL2Dbms>
46+
{
47+
public HSQL2DMLAssembler(final HSQL2Dbms dbms)
48+
{
49+
super(dbms);
50+
}
51+
}

0 commit comments

Comments
 (0)