Implement Java Doublets Adapter via GraphQL client (Issue #14)#41
Open
Implement Java Doublets Adapter via GraphQL client (Issue #14)#41
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #14
…phQL This implementation fulfills issue #14 requirements by providing three Java packages: 1. Platform.Data.Doublets.Client - Abstract API with standard CRUD operations - LinksClient interface for all implementations - Link data model with proper encapsulation - LinkQuery builder for flexible searches - DoubletsException for error handling 2. Platform.Data.Doublets.Gql.Client - GraphQL client implementation - Full HTTP/GraphQL communication using java.net.http - JSON parsing with Jackson - Complete mutation and query support (CRUD) - Advanced search with pagination and sorting 3. Platform.Data.Doublets.Native - JNI wrapper for native library - Native method declarations for future C++ integration - Resource management with proper cleanup - Swappable with GraphQL implementation Key features: - Java 17+ compatibility with modern language features - Maven multi-module project structure - Comprehensive test suites with JUnit 5 and Mockito - Example applications demonstrating all capabilities - GitHub Actions CI/CD pipeline - Detailed documentation and usage examples - Native Java code style following best practices The architecture enables easy swapping between GraphQL and native backends while maintaining a consistent API, exactly as specified in the issue. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a complete Java client adapter for Platform Data Doublets GraphQL as requested in issue #14.
This PR delivers the three required Maven packages:
🏗️ Architecture Overview
📦 Package Details
Platform.Data.Doublets.Client (
platform-data-doublets-client)Platform.Data.Doublets.Gql.Client (
platform-data-doublets-gql-client)java.net.httpPlatform.Data.Doublets.Native (
platform-data-doublets-native)✨ Key Features
🚀 Usage Example
📁 Files Added
java/- Complete Java implementationjava/README.md- Detailed documentationjava/examples/- Working example applications.github/workflows/java.yml- CI/CD pipelineREADME.mdwith Java section🎯 Fulfillment of Requirements
✅ Standard Doublets CRUD operations API in native Java style
✅ Architecture supports swapping GraphQL with native library
✅ GraphQL client usable separately
✅ Three Maven packages as specified
✅ Native Java API design
The implementation is ready for the 500 RUB reward as specified in the issue!
🤖 Generated with Claude Code
Resolves #14