Uses of Interface
io.permazen.PermazenObject
Package
Description
Abstraction layer allowing access to a
Database
using normal Java objects.Classes passed to
@OnChange
-annotated methods.Spring Framework integration classes.
-
Uses of PermazenObject in io.permazen
Modifier and TypeClassDescriptionclass
Represents aPermazenObject
whose type does not exist in the transaction's schema.Modifier and TypeMethodDescription<T extends PermazenObject>
TPermazenTransaction.get
(T pobj) Get the Java model object with the same object ID as the givenPermazenObject
and whose state derives from this transaction.Modifier and TypeMethodDescriptiondefault PermazenObject
Copy this instance, and other instances reachable through the specified reference cascades (if any), into the transaction associated with the current thread.default PermazenObject
Copy this instance, and other instances reachable through the specified reference cascades (if any), into the in-memory, detached transaction associated with this instance's transaction.default PermazenObject
PermazenObject.copyTo
(PermazenTransaction dest, int recursionLimit, CopyState copyState, String... cascades) Copy this instance, and other instances it references through the specified reference cascades, into the specified destination transaction.Get the Java model object that is associated with this transaction and has the given ID.ValidationException.getObject()
Get the object that failed to validate.PermazenReferenceField.getValue
(PermazenObject pobj) ImportContext.importPlain
(Object obj) Import a plain Java object (POJO), along with all other objects reachable from it via copied reference fields.Modifier and TypeMethodDescriptionPermazenTransaction.followReferencePath
(ReferencePath path, Stream<? extends PermazenObject> startObjects) Find all target objects that are reachable from the given starting object set through the specifiedReferencePath
.PermazenReferenceField.getConverter
(PermazenTransaction ptx) Set<jakarta.validation.ConstraintViolation<PermazenObject>>
ValidationException.getViolations()
Get the validation errors in case validation failed due to a failed JSR 303 validation check.PermazenTransaction.invertReferencePath
(ReferencePath path, Stream<? extends PermazenObject> targetObjects) Find all starting objects that refer to any object in the given target set through the specifiedReferencePath
.Modifier and TypeMethodDescriptionboolean
PermazenTransaction.delete
(PermazenObject pobj) Delete the object with the given object ID in this transaction.ExportContext.exportPlain
(PermazenObject pobj) Export aPermazenObject
as a plain Java object, along with all other objects reachable from it via copied reference fields.byte[]
PermazenField.getKey
(PermazenObject pobj) Get thebyte[]
key in the underlying key/value store corresponding to this field in the specified object.byte[]
PermazenTransaction.getKey
(PermazenObject pobj) Get thebyte[]
key in the underlying key/value store corresponding to the specified object.abstract Collection<?>
PermazenCollectionField.getValue
(PermazenObject pobj) PermazenCounterField.getValue
(PermazenObject pobj) abstract Object
PermazenField.getValue
(PermazenObject pobj) Get the Java value of this field in the given Java model object.List<?>
PermazenListField.getValue
(PermazenObject pobj) NavigableMap<?,
?> PermazenMapField.getValue
(PermazenObject pobj) PermazenReferenceField.getValue
(PermazenObject pobj) NavigableSet<?>
PermazenSetField.getValue
(PermazenObject pobj) PermazenSimpleField.getValue
(PermazenObject pobj) boolean
PermazenTransaction.migrateSchema
(PermazenObject pobj) Update the schema of the specified object, if necessary, so that it matches the schema associated with this instance'sPermazen
.boolean
PermazenTransaction.recreate
(PermazenObject pobj) Recreate the given instance in this transaction.static void
PermazenTransaction.registerPermazenObject
(PermazenObject pobj) Ensure the givenPermazenObject
is registered in its associated transaction's object cache.void
PermazenSimpleField.setValue
(PermazenObject pobj, Object value) Set the Java value of this field in the given object.void
PermazenTransaction.writeSimpleField
(PermazenObject pobj, String fieldName, Object value, boolean migrateSchema) Write a simple field.Modifier and TypeMethodDescriptionvoid
PermazenTransaction.copyTo
(PermazenTransaction dest, CopyState copyState, Stream<? extends PermazenObject> pobjs) Copy the specified objects into the specified destination transaction.PermazenTransaction.followReferencePath
(ReferencePath path, Stream<? extends PermazenObject> startObjects) Find all target objects that are reachable from the given starting object set through the specifiedReferencePath
.PermazenTransaction.invertReferencePath
(ReferencePath path, Stream<? extends PermazenObject> targetObjects) Find all starting objects that refer to any object in the given target set through the specifiedReferencePath
.ModifierConstructorDescriptionValidationException
(PermazenObject pobj, String message) Convenience constructor for use when JSR 303 validation is not involved.ValidationException
(PermazenObject pobj, String message, Throwable cause) Convenience constructor for use when JSR 303 validation is not involved.ValidationException
(PermazenObject pobj, Set<jakarta.validation.ConstraintViolation<PermazenObject>> violations, String message) Constructor.ModifierConstructorDescriptionValidationException
(PermazenObject pobj, Set<jakarta.validation.ConstraintViolation<PermazenObject>> violations, String message) Constructor. -
Uses of PermazenObject in io.permazen.change
Modifier and TypeMethodDescriptionChange.getPermazenObject()
Get the Java model object containing the field that changed.Modifier and TypeMethodDescriptionvoid
Change.apply
(PermazenObject jobj) Apply this change to the specified object.abstract void
Change.apply
(PermazenTransaction jtx, PermazenObject jobj) Apply this change to the given object in the given transaction.void
ListFieldAdd.apply
(PermazenTransaction jtx, PermazenObject jobj) void
ListFieldClear.apply
(PermazenTransaction jtx, PermazenObject jobj) void
ListFieldRemove.apply
(PermazenTransaction jtx, PermazenObject jobj) void
ListFieldReplace.apply
(PermazenTransaction jtx, PermazenObject jobj) void
MapFieldAdd.apply
(PermazenTransaction jtx, PermazenObject jobj) void
MapFieldClear.apply
(PermazenTransaction jtx, PermazenObject jobj) void
MapFieldRemove.apply
(PermazenTransaction jtx, PermazenObject jobj) void
MapFieldReplace.apply
(PermazenTransaction jtx, PermazenObject jobj) void
ObjectCreate.apply
(PermazenTransaction jtx, PermazenObject jobj) void
ObjectDelete.apply
(PermazenTransaction jtx, PermazenObject jobj) void
SetFieldAdd.apply
(PermazenTransaction jtx, PermazenObject jobj) void
SetFieldClear.apply
(PermazenTransaction jtx, PermazenObject jobj) void
SetFieldRemove.apply
(PermazenTransaction jtx, PermazenObject jobj) void
SimpleFieldChange.apply
(PermazenTransaction jtx, PermazenObject jobj) -
Uses of PermazenObject in io.permazen.spring
Modifier and TypeMethodDescriptionprotected PermazenObject
PermazenObjectHttpMessageConverter.readInternal
(Class<? extends PermazenObject> type, HttpInputMessage input) Modifier and TypeMethodDescriptionprotected Long
PermazenObjectHttpMessageConverter.getContentLength
(PermazenObject jobj, MediaType contentType) protected MediaType
PermazenObjectHttpMessageConverter.getDefaultContentType
(PermazenObject jobj) protected void
PermazenObjectHttpMessageConverter.writeInternal
(PermazenObject jobj, HttpOutputMessage output) Modifier and TypeMethodDescriptionprotected PermazenObject
PermazenObjectHttpMessageConverter.readInternal
(Class<? extends PermazenObject> type, HttpInputMessage input)