Package io.permazen
Abstraction layer allowing access to a
Database
using normal Java objects.- See Also:
Permazen
,Database
, The Permazen Project
-
Interface Summary Interface Description JFieldSwitch<R> Visitor pattern interface forJField
s.JObject Interface implemented byPermazen
Java model objects.Session.Action Callback interface used bySession.performSessionAction()
andSession.performSessionActionWithCurrentTransaction()
.Session.HasTransactionOptions Interface implemented bySession.TransactionalAction
's that want to provide custom transaction options.Session.RetryableAction Tagging interface indicating aSession.TransactionalAction
that should be retried if aRetryTransactionException
is thrown.Session.TransactionalAction Tagging interface indicating anSession.Action
that requires there to be an open transaction.StorageIdGenerator Used to auto-generate storage ID's for Java model classes, fields, and composite indexes when not specified explicitly in the corresponding@PermazenType
,@JField
, etc., annotations.UniquenessConstraints JSR 303 validation group for Permazen uniqueness constraints. -
Class Summary Class Description CopyState Maintains state about a multi-object copy operation.Counter Represents a 64-bit counter value that can be adjusted concurrently by multiple transactions, typically without locking (depending on the underlying key/value store).DefaultStorageIdGenerator DefaultStorageIdGenerator
implementation.EnumConverter<T extends Enum<T>> ExportContext Context for exporting plain (POJO) objects from aJTransaction
.ImportContext Context for importing plain (POJO) objects into aJTransaction
.JClass<T> Information about a Java class that is used to represent a specific Permazen object type.JCollectionField Represents a collection field in aJClass
.JComplexField Represents a complex field in aJClass
.JCompositeIndex A composite index.JCounterField Represents a counter field in aJClass
.JEnumArrayField JEnumField JField Represents a field in a Java model object.JFieldSwitchAdapter<R> Adapter class forJFieldSwitch
.JListField Represents a list field in aJClass
.JMapField Represents a map field in aJClass
.JReferenceField JSchemaObject JSetField Represents a set field in aJClass
.JSimpleField JTransaction A transaction associated with aPermazen
instance.Permazen Permazen Java persistence layer.PermazenFactory Factory forPermazen
instances.ReferencePath Reference paths.Session Utility class for programmaticPermazen
database access.SnapshotJTransaction An in-memoryJTransaction
that persists indefinitely.UntypedJObject Represents aJObject
for which no Java model type is defined in the instance's associated schema version.Util Various utility routines.Version Contains Permazen library version information. -
Enum Summary Enum Description SessionMode Session
modes.UpgradeConversionPolicy Policies to apply when a simple or counter field's type changes during a schema update.ValidationMode Configures whether and how objects are enqueued for validation in aJTransaction
. -
Exception Summary Exception Description PermazenException Superclass of all unchecked exceptions thrown by thePermazen
API.UpgradeConversionException Exception thrown when an object is upgraded, some simple field's type changes, the field is configured withUpgradeConversionPolicy.REQUIRE
, and automated conversion of the field's value to the new type fails.ValidationException Thrown whenJTransaction.validate()
(orJTransaction.commit()
) fails due to one or more validation errors.