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

Commit e3988ab

Browse files
Merge pull request #4 from xdev-software/develop
v1.0.0
2 parents 8607c42 + 38975c3 commit e3988ab

16 files changed

+189
-430
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
## 1.0.0
2+
3+
* Published this library as open source
4+
* Ensured build compatibility with Java 8, 11 and 17

CONTRIBUTING.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
## Contributing
22

3-
We would absolutely love to get the community involved, and we welcome any form of contributions – comments and questions on different communication channels, issues and pull request in the repositories, and anything that you build and share using our components.
3+
We would absolutely love to get the community involved, and we welcome any form of contributions – comments and
4+
questions on different communication channels, issues and pull request in the repositories, and anything that you build
5+
and share using our components.
46

57
### Get in touch with the team
68

7-
Twitter: https://twitter.com/xdevsoftware
9+
Twitter: https://twitter.com/xdevsoftware
810
<br/>
911
Mail: opensource@xdev-software.de
1012

@@ -13,33 +15,44 @@ Mail: opensource@xdev-software.de
1315
- **Report bugs**: File issues on GitHub.
1416
- **Send pull requests**: If you want to contribute code, check out the development instructions below.
1517

16-
We encourage you to read the [contribution instructions by GitHub](https://guides.github.com/activities/contributing-to-open-source/#contributing) also.
18+
We encourage you to read
19+
the [contribution instructions by GitHub](https://guides.github.com/activities/contributing-to-open-source/#contributing)
20+
also.
1721

1822
## Developing
1923

2024
### Software Requirements
25+
2126
You should have the following things installed:
27+
2228
* Git
23-
* Java 8, 11 or 17 - should be as unmodified as possible (Recommended: [Eclipse Adoptium](https://adoptium.net/temurin/releases/))
29+
* Java 8, 11 or 17 - should be as unmodified as possible (
30+
Recommended: [Eclipse Adoptium](https://adoptium.net/temurin/releases/))
2431
* Maven
2532

2633
### Recommended setup
34+
2735
* Install ``IntelliJ`` (Community Edition is sufficient)
28-
* Install the following plugins:
29-
* [Save Actions](https://plugins.jetbrains.com/plugin/7642-save-actions) - Provides save actions, like running the formatter or adding ``final`` to fields
30-
* [SonarLint](https://plugins.jetbrains.com/plugin/7973-sonarlint) - CodeStyle/CodeAnalysis
31-
* [Checkstyle-IDEA](https://plugins.jetbrains.com/plugin/1065-checkstyle-idea) - CodeStyle/CodeAnalysis
32-
* Import the project
33-
* Ensure that everything is encoded in ``UTF-8``
34-
* Ensure that the JDK/Java-Version is correct
36+
* Install the following plugins:
37+
* [Save Actions](https://plugins.jetbrains.com/plugin/7642-save-actions) - Provides save actions, like running
38+
the formatter or adding ``final`` to fields
39+
* [SonarLint](https://plugins.jetbrains.com/plugin/7973-sonarlint) - CodeStyle/CodeAnalysis
40+
* [Checkstyle-IDEA](https://plugins.jetbrains.com/plugin/1065-checkstyle-idea) - CodeStyle/CodeAnalysis
41+
* Import the project
42+
* Ensure that everything is encoded in ``UTF-8``
43+
* Ensure that the JDK/Java-Version is correct
3544

3645
## 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)
3746

3847
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.
48+
49+
* Consider doing
50+
a [test-deployment](https://github.com/xdev-software/xdev-swing-framework-template/actions/workflows/test-deploy.yml?query=branch%3Adevelop)
51+
before actually releasing.
4052
* Check the [changelog](CHANGELOG.md)
4153

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

4456
When the release is finished do the following:
45-
* Merge the auto-generated PR (with the incremented version number) back into the ``develop``
57+
58+
* Merge the auto-generated PR (with the incremented version number) back into the ``develop``

README.md

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
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-firebird)](https://mvnrepository.com/artifact/com.xdev-software/xapi-db-firebird)
2+
[![Build](https://img.shields.io/github/actions/workflow/status/xdev-software/xapi-db-firebird/checkBuild.yml?branch=develop)](https://github.com/xdev-software/xapi-db-firebird/actions/workflows/checkBuild.yml?query=branch%3Adevelop)
3+
[![javadoc](https://javadoc.io/badge2/com.xdev-software/xapi-db-firebird/javadoc.svg)](https://javadoc.io/doc/com.xdev-software/xapi-db-firebird)
54

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

810
## XDEV-IDE
9-
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.
1011

11-
The XDEV-IDE was license-free up to version 4 inclusive and is available for Windows, Linux and macOS. From version 5, the previously proprietary licensed additional modules are included in the IDE and the license of the entire product has been converted to a paid subscription model. The XDEV Application Framework, which represents the core of the RAD concept of XDEV and is part of every XDEV application, was released as open-source in 2008.
12+
The [XDEV(-IDE)](https://xdev.software/en/products/swing-builder) is a visual Java development environment for fast and
13+
easy application development (RAD - Rapid Application Development). XDEV differs from other Java IDEs such as Eclipse or
14+
NetBeans, focusing on programming through a far-reaching RAD concept. The IDE's main components are a Swing GUI builder,
15+
the XDEV Application Framework and numerous drag-and-drop tools and wizards with which the functions of the framework
16+
can be integrated.
17+
18+
The XDEV-IDE was license-free up to version 4 inclusive and is available for Windows, Linux and macOS. From version 5,
19+
the previously proprietary licensed additional modules are included in the IDE and the license of the entire product has
20+
been converted to a paid subscription model. The XDEV Application Framework, which represents the core of the RAD
21+
concept of XDEV and is part of every XDEV application, was released as open-source in 2008.
1222

1323
## Support
14-
If you need support as soon as possible and you can't wait for any pull request, feel free to use [our support](https://xdev.software/en/services/support).
24+
25+
If you need support as soon as possible and you can't wait for any pull request, feel free to
26+
use [our support](https://xdev.software/en/services/support).
1527

1628
## Contributing
29+
1730
See the [contributing guide](./CONTRIBUTING.md) for detailed instructions on how to get started with our project.
1831

1932
## 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/)
33+
34+
View the [license of the current project](LICENSE) or
35+
the [summary including all dependencies](https://xdev-software.github.io/xapi-db-firebird/dependencies/)

SECURITY.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22

33
## Reporting a Vulnerability
44

5-
Please report a security vulnerability [on GitHub Security Advisories](https://github.com/xdev-software/xapi-db-firebird/security/advisories/new).
5+
Please report a security
6+
vulnerability [on GitHub Security Advisories](https://github.com/xdev-software/xapi-db-firebird/security/advisories/new)
7+
.

pom.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xmlns="http://maven.apache.org/POM/4.0.0"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>com.xdev-software</groupId>
88
<artifactId>xapi-db-firebird</artifactId>
9-
<version>1.0.0</version>
9+
<version>1.0.0-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111

1212
<name>SqlEngine Database Adapter Firebird</name>
13-
<description>XAPI SqlEngine Database Adapter for Firebird</description>
14-
<url>https://github.com/xdev-software/xapi-db-firebird</url>
13+
<description>XAPI SqlEngine Database Adapter for Firebird</description>
14+
<url>https://github.com/xdev-software/xapi-db-firebird</url>
1515

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

2121
<inceptionYear>2003</inceptionYear>
2222

@@ -50,7 +50,7 @@
5050
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
5151

5252
<xdev.xapi.version>6.0.1</xdev.xapi.version>
53-
<firebird.version>2.2.5</firebird.version>
53+
<firebird.version>3.0.12</firebird.version>
5454
</properties>
5555

5656
<repositories>

src/main/java/firebird.png

-950 Bytes
Binary file not shown.

src/main/java/xdev/db/firebird/jdbc/FirebirdConnectionInformation.java

Lines changed: 19 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -17,29 +17,8 @@
1717
*/
1818
package xdev.db.firebird.jdbc;
1919

20-
/*-
21-
* #%L
22-
* Firebird
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-
4220
import com.xdev.jadoth.sqlengine.dbms.DbmsConnectionInformation;
21+
4322
import xdev.db.ConnectionInformation;
4423

4524

@@ -50,68 +29,62 @@ public class FirebirdConnectionInformation extends ConnectionInformation<Firebir
5029
// ///////////////////
5130

5231
/**
53-
* @param user
54-
* the user
55-
* @param password
56-
* the password
57-
* @param database
58-
* the database
59-
* @param urlExtension
60-
* the extended url properties
61-
* @param dbmsAdaptor
62-
* the dbms adaptor
32+
* @param user the user
33+
* @param password the password
34+
* @param database the database
35+
* @param urlExtension the extended url properties
36+
* @param dbmsAdaptor the dbms adaptor
6337
*/
64-
public FirebirdConnectionInformation(final String host, final int port, final String user,
65-
final String password, final String database, final String urlExtension,
66-
final FirebirdDbms dbmsAdaptor)
38+
public FirebirdConnectionInformation(
39+
final String host, final int port, final String user,
40+
final String password, final String database, final String urlExtension,
41+
final FirebirdDbms dbmsAdaptor)
6742
{
68-
super(host,port,user,password,database,urlExtension,dbmsAdaptor);
43+
super(host, port, user, password, database, urlExtension, dbmsAdaptor);
6944
}
7045

71-
7246
// /////////////////////////////////////////////////////////////////////////
7347
// getters //
7448
// ///////////////////
49+
7550
/**
7651
* Gets the database.
77-
*
52+
*
7853
* @return the database
7954
*/
8055
public String getDatabase()
8156
{
8257
return this.getCatalog();
8358
}
8459

85-
8660
// /////////////////////////////////////////////////////////////////////////
8761
// setters //
8862
// ///////////////////
63+
8964
/**
9065
* Sets the database.
91-
*
92-
* @param database
93-
* the database to set
66+
*
67+
* @param database the database to set
9468
*/
9569
public void setDatabase(final String database)
9670
{
9771
this.setCatalog(database);
9872
}
9973

100-
10174
// /////////////////////////////////////////////////////////////////////////
10275
// override methods //
10376
// ///////////////////
77+
10478
/**
10579
* @see DbmsConnectionInformation#createJdbcConnectionUrl()
10680
*/
10781
@Override
10882
public String createJdbcConnectionUrl()
10983
{
110-
String url = "jdbc:firebirdsql:" + getHost() + "/" + getPort() + ":" + getCatalog();
111-
return appendUrlExtension(url);
84+
final String url = "jdbc:firebirdsql:" + this.getHost() + "/" + this.getPort() + ":" + this.getCatalog();
85+
return this.appendUrlExtension(url);
11286
}
11387

114-
11588
/**
11689
* @see com.xdev.jadoth.sqlengine.dbms.DbmsConnectionInformation#getJdbcDriverClassName()
11790
*/
@@ -120,5 +93,4 @@ public String getJdbcDriverClassName()
12093
{
12194
return "org.firebirdsql.jdbc.FBDriver";
12295
}
123-
12496
}

src/main/java/xdev/db/firebird/jdbc/FirebirdDDLMapper.java

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,6 @@
1717
*/
1818
package xdev.db.firebird.jdbc;
1919

20-
/*-
21-
* #%L
22-
* Firebird
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-
4220
import com.xdev.jadoth.sqlengine.dbms.standard.StandardDDLMapper;
4321

4422

src/main/java/xdev/db/firebird/jdbc/FirebirdDMLAssembler.java

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,39 +21,17 @@
2121
import com.xdev.jadoth.sqlengine.dbms.standard.StandardDMLAssembler;
2222

2323

24-
/*-
25-
* #%L
26-
* Firebird
27-
* %%
28-
* Copyright (C) 2003 - 2023 XDEV Software
29-
* %%
30-
* This program is free software: you can redistribute it and/or modify
31-
* it under the terms of the GNU Lesser General Public License as
32-
* published by the Free Software Foundation, either version 3 of the
33-
* License, or (at your option) any later version.
34-
*
35-
* This program is distributed in the hope that it will be useful,
36-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
37-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38-
* GNU General Lesser Public License for more details.
39-
*
40-
* You should have received a copy of the GNU General Lesser Public
41-
* License along with this program. If not, see
42-
* <http://www.gnu.org/licenses/lgpl-3.0.html>.
43-
* #L%
44-
*/
4524
public class FirebirdDMLAssembler extends StandardDMLAssembler<FirebirdDbms>
4625
{
4726
public FirebirdDMLAssembler(final FirebirdDbms dbms)
4827
{
4928
super(dbms);
5029
}
5130

52-
5331
@Override
5432
protected StringBuilder assembleSelectRowLimit(
5533
SELECT query, StringBuilder sb, int flags,
56-
String clauseSeperator, String newLine, int indentLevel)
34+
String clauseSeperator, String newLine, int indentLevel)
5735
{
5836
Integer skip = query.getOffsetSkipCount();
5937
Integer range = query.getFetchFirstRowCount();
@@ -63,7 +41,7 @@ protected StringBuilder assembleSelectRowLimit(
6341
if(skip != null)
6442
{
6543
sb.append(newLine).append(clauseSeperator).append("ROWS ").append(skip)
66-
.append(" TO ").append(skip + range - 1);
44+
.append(" TO ").append(skip + range - 1);
6745
}
6846
else
6947
{
@@ -73,7 +51,7 @@ protected StringBuilder assembleSelectRowLimit(
7351
else if(skip != null)
7452
{
7553
sb.append(newLine).append(clauseSeperator).append("ROWS ").append(skip).append(" TO ")
76-
.append(Integer.MAX_VALUE);
54+
.append(Integer.MAX_VALUE);
7755
}
7856

7957
return sb;

0 commit comments

Comments
 (0)