Skip to content

Commit

Permalink
update jakarta nosql
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed Jan 11, 2023
1 parent 3e68aa6 commit 0a2f161
Show file tree
Hide file tree
Showing 19 changed files with 30 additions and 604 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

package jakarta.nosql.mapping.column;

import jakarta.nosql.mapping.Page;

/**
* @param <T> the entity type
* @deprecated Use the Jakarta Data Page instead.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

import jakarta.nosql.ServiceLoaderProvider;
import jakarta.nosql.column.ColumnQuery;
import jakarta.nosql.mapping.Page;
import jakarta.nosql.mapping.Pagination;

import java.util.ServiceLoader;
import java.util.function.BiFunction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
package jakarta.nosql.mapping.column;

import jakarta.nosql.column.ColumnManager;
import jakarta.nosql.mapping.Repository;

/**
* The producer of {@link Repository}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import jakarta.nosql.column.ColumnDeleteQuery;
import jakarta.nosql.column.ColumnManager;
import jakarta.nosql.column.ColumnQuery;
import jakarta.nosql.mapping.Page;
import jakarta.nosql.mapping.PreparedStatement;
import jakarta.nosql.mapping.Template;

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* this entity must have a field with {@link Id} annotation. If this entity
* hasn't this information an exception will be launch.
*/
public class IdNotFoundException extends MappingException {
public class IdNotFoundException extends NoSQLException {

public static final Supplier<IdNotFoundException> KEY_NOT_FOUND_EXCEPTION_SUPPLIER = ()
-> new IdNotFoundException("To use this resource you must annotated a field with @Id");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,16 @@
*/
package jakarta.nosql.mapping;

import jakarta.nosql.NoSQLException;

/**
* The root exception to Mapping layer
*/
public class MappingException extends NoSQLException {
public class NoSQLException extends RuntimeException {

/**
* Constructs a new runtime exception with null as its detail message.
*/
public MappingException() {
public NoSQLException() {
super();
}

Expand All @@ -34,7 +33,7 @@ public MappingException() {
*
* @param message the message
*/
public MappingException(String message) {
public NoSQLException(String message) {
super(message);
}

Expand All @@ -44,7 +43,7 @@ public MappingException(String message) {
* @param message the message
* @param cause the cause
*/
public MappingException(String message, Throwable cause) {
public NoSQLException(String message, Throwable cause) {
super(message, cause);
}

Expand All @@ -55,7 +54,7 @@ public MappingException(String message, Throwable cause) {
*
* @param cause the cause
*/
public MappingException(Throwable cause) {
public NoSQLException(Throwable cause) {
super(cause);
}

Expand All @@ -69,9 +68,9 @@ public MappingException(Throwable cause) {
* @param enableSuppression the enableSuppression
* @param writableStackTrace the writableStackTrace
*/
protected MappingException(String message, Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) {
protected NoSQLException(String message, Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}
}
Expand Down
61 changes: 0 additions & 61 deletions api/nosql-core/src/main/java/jakarta/nosql/mapping/Page.java

This file was deleted.

104 changes: 0 additions & 104 deletions api/nosql-core/src/main/java/jakarta/nosql/mapping/Pagination.java

This file was deleted.

33 changes: 0 additions & 33 deletions api/nosql-core/src/main/java/jakarta/nosql/mapping/Param.java

This file was deleted.

0 comments on commit 0a2f161

Please sign in to comment.