-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
540 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Mature Modular Meta-framework (mmm) | ||
|
||
![logo](https://raw.github.com/m-m-m/mmm/master/src/site/resources/images/logo.png) | ||
|
||
**Welcome to the wonderful world of [mmm](http://m-m-m.sourceforge.net/index.html)!** | ||
|
||
## mmm-util-property | ||
|
||
This module is part of the [mmm-util project](../README.md) and brings extended property and bean support including | ||
* [Properties](http://m-m-m.github.io/maven/apidocs/net/sf/mmm/util/property/api/package-summary.html#package.description) extending JavaFx properties with type reflection and validation support. | ||
* [Bean](http://m-m-m.github.io/maven/apidocs/net/sf/mmm/util/bean/api/package-summary.html#package.description) to implement beans as interface without writing any boiler-plate code. | ||
* and much more... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>net.sf.m-m-m</groupId> | ||
<artifactId>mmm-util-modules</artifactId> | ||
<version>dev-SNAPSHOT</version> | ||
<relativePath>../mmm-util-modules/pom.xml</relativePath> | ||
</parent> | ||
<artifactId>mmm-util-query</artifactId> | ||
<version>${net.sf.mmm.util.version}</version> | ||
<packaging>jar</packaging> | ||
<name>${project.artifactId}</name> | ||
<description>This project allows to build queries with a fluent and type-safe API.</description> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>mmm-util-property</artifactId> | ||
<version>${net.sf.mmm.util.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>mmm-util-test</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.hibernate.javax.persistence</groupId> | ||
<artifactId>hibernate-jpa-2.1-api</artifactId> | ||
<optional>true</optional> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.hibernate</groupId> | ||
<artifactId>hibernate-entitymanager</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<configuration> | ||
<source>1.8</source> | ||
<target>1.8</target> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
6 changes: 3 additions & 3 deletions
6
...l/property/api/query/DeleteStatement.java → ...f/mmm/util/query/api/DeleteStatement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...l/property/api/query/InsertStatement.java → ...f/mmm/util/query/api/InsertStatement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...l/property/api/query/ModifyStatement.java → ...f/mmm/util/query/api/ModifyStatement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...l/property/api/query/SelectStatement.java → ...f/mmm/util/query/api/SelectStatement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...mm/util/property/api/query/Statement.java → .../net/sf/mmm/util/query/api/Statement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...il/property/api/query/StoreStatement.java → ...sf/mmm/util/query/api/StoreStatement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...l/property/api/query/UpdateStatement.java → ...f/mmm/util/query/api/UpdateStatement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...perty/api/query/feature/FeatureFetch.java → .../util/query/api/feature/FeatureFetch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...rty/api/query/feature/FeatureGroupBy.java → ...til/query/api/feature/FeatureGroupBy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...erty/api/query/feature/FeatureHaving.java → ...util/query/api/feature/FeatureHaving.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...perty/api/query/feature/FeatureLimit.java → .../util/query/api/feature/FeatureLimit.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...erty/api/query/feature/FeatureModify.java → ...util/query/api/feature/FeatureModify.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...rty/api/query/feature/FeatureOrderBy.java → ...til/query/api/feature/FeatureOrderBy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...erty/api/query/feature/FeaturePaging.java → ...util/query/api/feature/FeaturePaging.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...roperty/api/query/feature/FeatureSet.java → ...mm/util/query/api/feature/FeatureSet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
mmm-util-query/src/main/java/net/sf/mmm/util/query/api/feature/FeatureValues.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 | ||
* http://www.apache.org/licenses/LICENSE-2.0 */ | ||
package net.sf.mmm.util.query.api.feature; | ||
|
||
import net.sf.mmm.util.property.api.path.PropertyPath; | ||
|
||
/** | ||
* This is the abstract interface for a query {@link net.sf.mmm.util.query.api.Statement} allowing a | ||
* {@link #value(PropertyPath, Object) VALUES clause}. For each invocation of {@link #value(PropertyPath, Object) | ||
* value(pI, vI)} a value binding is added so in the end the resulting SQL fragment will be: | ||
* | ||
* <pre> | ||
* (p1, p2, ..., pN) VALUES (v1, v2, ..., vN) | ||
* </pre> | ||
* | ||
* @param <SELF> the generic type of this query itself (this) for fluent API calls. | ||
* | ||
* @author hohwille | ||
* @since 8.0.0 | ||
*/ | ||
public abstract interface FeatureValues<SELF extends FeatureValues<SELF>> extends StatementFeature { | ||
|
||
/** | ||
* Adds a value binding setting the given {@link PropertyPath} to the given {@code value}. | ||
* | ||
* @param <V> the generic type of the {@code value}. | ||
* @param path the {@link PropertyPath} for the value to assign that will be added to the bracket before the | ||
* {@ocde VALUES} keyword. | ||
* @param value the literal value to assign that will be added to the bracket after the {@ocde VALUES} keyword. | ||
* @return this query instance for fluent API calls. | ||
*/ | ||
<V> SELF value(PropertyPath<V> path, V value); | ||
|
||
} |
4 changes: 2 additions & 2 deletions
4
...perty/api/query/feature/FeatureWhere.java → .../util/query/api/feature/FeatureWhere.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...y/api/query/feature/StatementFeature.java → ...l/query/api/feature/StatementFeature.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...operty/api/query/JpqlSelectStatement.java → ...l/query/api/jpql/JpqlSelectStatement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 | ||
* http://www.apache.org/licenses/LICENSE-2.0 */ | ||
package net.sf.mmm.util.property.api.query; | ||
package net.sf.mmm.util.query.api.jpql; | ||
|
||
import net.sf.mmm.util.property.api.query.feature.FeatureHaving; | ||
import net.sf.mmm.util.query.api.SelectStatement; | ||
import net.sf.mmm.util.query.api.feature.FeatureHaving; | ||
|
||
/** | ||
* Extends a regular {@link SelectStatement} with advanced features like | ||
* {@link #having(net.sf.mmm.util.property.api.expression.Expression...) HAVING clause}. | ||
* | ||
* @param <E> the generic type of the queried object (typically a {@link net.sf.mmm.util.bean.api.Bean}). | ||
* @param <SELF> the generic type of this query itself (this) for fluent API calls. | ||
* | ||
* @author hohwille | ||
* @since 8.0.0 | ||
*/ | ||
public interface JpqlSelectStatement<E, SELF extends JpqlSelectStatement<E, SELF>> | ||
extends SelectStatement<E, SELF>, FeatureHaving<SELF> { | ||
public interface JpqlSelectStatement<E> | ||
extends SelectStatement<E, JpqlSelectStatement<E>>, FeatureHaving<JpqlSelectStatement<E>> { | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
mmm-util-query/src/main/java/net/sf/mmm/util/query/api/orientdb/OrientDbSelectStatement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 | ||
* http://www.apache.org/licenses/LICENSE-2.0 */ | ||
package net.sf.mmm.util.query.api.orientdb; | ||
|
||
import net.sf.mmm.util.query.api.SelectStatement; | ||
import net.sf.mmm.util.query.api.feature.FeatureHaving; | ||
|
||
/** | ||
* Extends a regular {@link SelectStatement} with advanced features like | ||
* {@link #having(net.sf.mmm.util.property.api.expression.Expression...) HAVING clause}. | ||
* | ||
* @param <E> the generic type of the queried object (typically a {@link net.sf.mmm.util.bean.api.Bean}). | ||
* | ||
* @author hohwille | ||
* @since 8.0.0 | ||
*/ | ||
public interface OrientDbSelectStatement<E> | ||
extends SelectStatement<E, OrientDbSelectStatement<E>>, FeatureHaving<OrientDbSelectStatement<E>> { | ||
|
||
} |
4 changes: 2 additions & 2 deletions
4
...y/base/query/AbstractDeleteStatement.java → ...l/query/base/AbstractDeleteStatement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.