Tupl Protobuf Support

Tupl Support Classes

License

License

Categories

Categories

Protobuf Data Data Structures
GroupId

GroupId

com.truward.tupl
ArtifactId

ArtifactId

tupl-protobuf-support
Last Version

Last Version

1.1.4
Release Date

Release Date

Type

Type

jar
Description

Description

Tupl Protobuf Support
Tupl Support Classes

Download tupl-protobuf-support

How to add to project

<!-- https://jarcasting.com/artifacts/com.truward.tupl/tupl-protobuf-support/ -->
<dependency>
    <groupId>com.truward.tupl</groupId>
    <artifactId>tupl-protobuf-support</artifactId>
    <version>1.1.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.truward.tupl/tupl-protobuf-support/
implementation 'com.truward.tupl:tupl-protobuf-support:1.1.4'
// https://jarcasting.com/artifacts/com.truward.tupl/tupl-protobuf-support/
implementation ("com.truward.tupl:tupl-protobuf-support:1.1.4")
'com.truward.tupl:tupl-protobuf-support:jar:1.1.4'
<dependency org="com.truward.tupl" name="tupl-protobuf-support" rev="1.1.4">
  <artifact name="tupl-protobuf-support" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.truward.tupl', module='tupl-protobuf-support', version='1.1.4')
)
libraryDependencies += "com.truward.tupl" % "tupl-protobuf-support" % "1.1.4"
[com.truward.tupl/tupl-protobuf-support "1.1.4"]

Dependencies

compile (1)

Group / Artifact Type Version
com.truward.tupl : tupl-support jar 1.1.4

provided (2)

Group / Artifact Type Version
com.google.code.findbugs : jsr305 jar 1.3.9
com.google.protobuf : protobuf-java jar 3.0.0-beta-2

test (3)

Group / Artifact Type Version
junit : junit jar 4.8.2
org.mockito : mockito-all jar 1.9.0
com.truward.tupl : tupl-test-support jar 1.1.4

Project Modules

There are no modules declared in this project.

Tupl Support

Overview

This library intended to provide a set of support interfaces with default implementations as well as set of DAO exceptions, specific to Tupl operations.

These interfaces can be inherited by certain DAO (data access object) in order to provide easier access to Tupl operations, such as accessing the indexes or operating with transactions.

This library includes the following modules:

  • tupl-test-support - utility methods for Tupl integration tests.
  • tupl-support - helpers for creating Tupl data access objects.
  • tupl-protobuf-support - extension of tupl-support providing helpers, that combine protocol buffers support with tupl-support.

Key entities

  • TuplTransactionManager and its descendant StandardTuplTransactionManager which is a central interface, around which every DAO revolves. This interface provides a contract for accessing Tupl transactions which is then used by all extension interfaces, provided in tupl-support.
  • Key - wrapper on top of byte arrays that intended to represent Tupl keys
  • DaoException and its descendants - provides a common set of exceptions, thrown from Tupl DAOs.
  • TuplLoadSupport and ByteArrayResultMapper - base entities that provide support for uniform data retrieval from Tupl databases.
  • TuplUpdateSupport - helper interface with default methods that provide support for insert, update and delete operations.
  • PersistenceMapDao - a contract, that exposes access to Tupl index in a form of a Map-alike interface, these methods include get, put and enumerate operations. ** PersistenceMapDao.newStringMap - String-to-String implementation of PersistenceMapDao ** StandardPersistentMapDao - standard abstract base for PersistenceMapDao. ** ProtobufModelPersistentMapDao from tupl-protobuf-support - support for protocol buffer messages DAO.

Samples

See sample DAO implementation in BookDaoImpl

See persistent map tests in:

How to use

Add jar dependency in your pom.xml:

<dependency>
  <groupId>com.truward.tupl</groupId>
  <artifactId>tupl-support</artifactId>
  <version>1.1.3/version>
</dependency>

Versions

Version
1.1.4
1.1.3
1.0.2