-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from SchwarzIT/feature/NFWWS-7688-recognise-da…
…tatype-issues-in-entities NFWWS-7688: Redirect data class type changes
- Loading branch information
Showing
33 changed files
with
546 additions
and
213 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
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: 6 additions & 2 deletions
8
couchbase-entity-api/src/main/java/kaufland/com/coachbasebinderapi/TypeConversion.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,9 +1,13 @@ | ||
package kaufland.com.coachbasebinderapi; | ||
|
||
import org.jetbrains.annotations.Nullable; | ||
|
||
public interface TypeConversion { | ||
|
||
Object write(Object value); | ||
@Nullable | ||
Object write(@Nullable Object value); | ||
|
||
Object read(Object value); | ||
@Nullable | ||
Object read(@Nullable Object value); | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
...e-entity-api/src/main/java/kaufland/com/coachbasebinderapi/TypeConversionErrorCallback.kt
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,5 @@ | ||
package kaufland.com.coachbasebinderapi | ||
|
||
interface TypeConversionErrorCallback { | ||
fun invokeOnError(errorWrapper: TypeConversionErrorWrapper) | ||
} |
10 changes: 10 additions & 0 deletions
10
...se-entity-api/src/main/java/kaufland/com/coachbasebinderapi/TypeConversionErrorWrapper.kt
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,10 @@ | ||
package kaufland.com.coachbasebinderapi | ||
|
||
import kotlin.reflect.KClass | ||
|
||
data class TypeConversionErrorWrapper( | ||
val exception: Exception, | ||
val fieldName: String, | ||
val value: Any?, | ||
val `class`: KClass<*> | ||
) |
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
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
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
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
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
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
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.