Tupl Support Project Root

Tupl Support Classes

License

License

GroupId

GroupId

com.truward.tupl
ArtifactId

ArtifactId

tupl-support-root
Last Version

Last Version

1.1.4
Release Date

Release Date

Type

Type

pom
Description

Description

Tupl Support Project Root
Tupl Support Classes
Project URL

Project URL

https://github.com/truward/tupl-support
Source Code Management

Source Code Management

https://github.com/truward/tupl-support

Download tupl-support-root

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • tupl-test-support
  • tupl-support
  • tupl-protobuf-support

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
1.0.1
1.0.0