public class JsonListUserType extends JsonUserType implements org.hibernate.usertype.UserCollectionType
| Constructor and Description |
|---|
JsonListUserType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object collection,
Object entity) |
com.fasterxml.jackson.databind.JavaType |
createJavaType(com.fasterxml.jackson.databind.ObjectMapper mapper)
By default we are expecting to use a simple object / not a collection (Set, List)
|
Iterator<?> |
getElementsIterator(Object collection) |
Object |
indexOf(Object collection,
Object entity) |
Object |
instantiate(int anticipatedSize) |
org.hibernate.collection.spi.PersistentCollection |
instantiate(org.hibernate.engine.spi.SessionImplementor session,
org.hibernate.persister.collection.CollectionPersister persister) |
Object |
replaceElements(Object original,
Object target,
org.hibernate.persister.collection.CollectionPersister persister,
Object owner,
Map copyCache,
org.hibernate.engine.spi.SessionImplementor session) |
org.hibernate.collection.spi.PersistentCollection |
wrap(org.hibernate.engine.spi.SessionImplementor session,
Object collection) |
assemble, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, returnedClass, setParameterValues, sqlTypespublic com.fasterxml.jackson.databind.JavaType createJavaType(com.fasterxml.jackson.databind.ObjectMapper mapper)
JsonUserTypecreateJavaType in class JsonUserTypemapper - : instance jackson object mapperpublic org.hibernate.collection.spi.PersistentCollection instantiate(org.hibernate.engine.spi.SessionImplementor session,
org.hibernate.persister.collection.CollectionPersister persister)
throws org.hibernate.HibernateException
instantiate in interface org.hibernate.usertype.UserCollectionTypeorg.hibernate.HibernateExceptionpublic org.hibernate.collection.spi.PersistentCollection wrap(org.hibernate.engine.spi.SessionImplementor session,
Object collection)
wrap in interface org.hibernate.usertype.UserCollectionTypepublic Iterator<?> getElementsIterator(Object collection)
getElementsIterator in interface org.hibernate.usertype.UserCollectionTypepublic boolean contains(Object collection, Object entity)
contains in interface org.hibernate.usertype.UserCollectionTypepublic Object indexOf(Object collection, Object entity)
indexOf in interface org.hibernate.usertype.UserCollectionTypepublic Object replaceElements(Object original, Object target, org.hibernate.persister.collection.CollectionPersister persister, Object owner, Map copyCache, org.hibernate.engine.spi.SessionImplementor session) throws org.hibernate.HibernateException
replaceElements in interface org.hibernate.usertype.UserCollectionTypeorg.hibernate.HibernateExceptionpublic Object instantiate(int anticipatedSize)
instantiate in interface org.hibernate.usertype.UserCollectionTypeCopyright © 2016. All rights reserved.