Package net.tangly.orm.imp
Class PropertyJson<T extends net.tangly.bus.core.HasOid,V>
java.lang.Object
net.tangly.orm.imp.PropertySimple<T>
net.tangly.orm.imp.PropertyJson<T,V>
- Type Parameters:
T- type of the owner of the propertyV- type of the format of the single or multiple values property
- All Implemented Interfaces:
Property<T>
public class PropertyJson<T extends net.tangly.bus.core.HasOid,V> extends PropertySimple<T>
A property which stores its values as as JSON representation in one column in the database table. Multi-format properties are supported.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PropertyJson(java.lang.String name, java.lang.Class<T> entity, java.lang.Class<V> referenceType)Constructor of the JSON property. -
Method Summary
Modifier and Type Method Description <P, V> voidset(T entity, V value, @NotNull Property.ConverterType type)Methods inherited from class net.tangly.orm.imp.PropertySimple
entity, field, getConverter, jdbcType, name, sqlType
-
Constructor Details
-
PropertyJson
public PropertyJson(java.lang.String name, java.lang.Class<T> entity, java.lang.Class<V> referenceType)Constructor of the JSON property.- Parameters:
name- name of the propertyentity- class owning the mapped propertyreferenceType- class of the reference type to map
-
-
Method Details
-
set
public <P, V> void set(@NotNull T entity, V value, @NotNull @NotNull Property.ConverterType type) throws java.security.PrivilegedActionException- Throws:
java.security.PrivilegedActionException
-