Uses of Class
io.permazen.PermazenClass
-
Uses of PermazenClass in io.permazen
Modifier and TypeMethodDescription<T> PermazenClass<? super T>
Permazen.findPermazenClass
(Class<T> type) Find the most specificPermazenClass
for which the give type is a sub-type of the corresponding Java model type.Permazen.getPermazenClass
(int storageId) Get thePermazenClass
associated with the given storage ID.Permazen.getPermazenClass
(ObjId id) Get thePermazenClass
associated with the object ID.<T> PermazenClass<T>
Permazen.getPermazenClass
(Class<T> type) Get thePermazenClass
modeled by the given type.Permazen.getPermazenClass
(String typeName) Get thePermazenClass
associated with the given object type name.PermazenField.getPermazenClass()
Get thePermazenClass
of which this field is a member.default PermazenClass<?>
PermazenObject.getPermazenClass()
Get thePermazenClass
of which thisPermazenObject
is an instance.Modifier and TypeMethodDescriptionList<Set<PermazenClass<?>>>
ReferencePath.getCurrentTypesList()
Get the current object types at each step in the path.Set<PermazenClass<?>>
PermazenReferenceField.getObjectTypes()
Get the database object types which this field is allowed to reference.<T> List<PermazenClass<? extends T>>
Permazen.getPermazenClasses
(Class<T> type) Get allPermazenClass
es which sub-type the given type.Permazen.getPermazenClassesByName()
Get allPermazenClass
's associated with this instance, indexed by object type name.Permazen.getPermazenClassesByStorageId()
Get allPermazenClass
's associated with this instance, indexed by storage ID.Map<Class<?>,
PermazenClass<?>> Permazen.getPermazenClassesByType()
Get allPermazenClass
's associated with this instance, indexed by Java model type.Set<PermazenClass<?>>
ReferencePath.getStartingTypes()
Get the possible model object types for the objects at the start of this path.Set<PermazenClass<?>>
ReferencePath.getTargetTypes()
Get the possible model object types for the objects at the end of this path.Modifier and TypeMethodDescription<T> T
PermazenTransaction.create
(PermazenClass<T> pclass) Create a new instance of the given type in this transaction.static PermazenField
Util.findField
(PermazenClass<?> pclass, String fieldName) Identify the named field in the givenPermazenClass
.static PermazenField
Util.findField
(PermazenClass<?> pclass, String fieldName, Boolean expectSubField) Identify the named field in the givenPermazenClass
.static PermazenSimpleField
Util.findSimpleField
(PermazenClass<?> pclass, String fieldName) Identify the named simple field in the givenPermazenClass
.Modifier and TypeMethodDescriptionPermazen.parseReferencePath
(Set<PermazenClass<?>> startTypes, String path) Parse aReferencePath
starting from a set of model object types.