Class Hibernate4Module
- java.lang.Object
-
- com.fasterxml.jackson.databind.Module
-
- com.fasterxml.jackson.datatype.hibernate4.Hibernate4Module
-
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned
public class Hibernate4Module extends com.fasterxml.jackson.databind.Module
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHibernate4Module.FeatureEnumeration that defines all toggleable features this module
-
Field Summary
Fields Modifier and Type Field Description protected org.hibernate.engine.spi.Mapping_mappingHibernate mapping.protected int_moduleFeaturesBit flag composed of bits that indicate whichHibernate4Module.Features are enabled.protected org.hibernate.SessionFactory_sessionFactoryprotected static intDEFAULT_FEATURES
-
Constructor Summary
Constructors Constructor Description Hibernate4Module()Hibernate4Module(org.hibernate.engine.spi.Mapping mapping)Hibernate4Module(org.hibernate.engine.spi.Mapping mapping, org.hibernate.SessionFactory sessionFactory)Hibernate4Module(org.hibernate.SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.databind.AnnotationIntrospectorannotationIntrospector()Method called duringsetupModule(com.fasterxml.jackson.databind.Module.SetupContext), to createAnnotationIntrospectorto register along with module.Hibernate4Moduleconfigure(Hibernate4Module.Feature f, boolean state)Hibernate4Moduledisable(Hibernate4Module.Feature f)Hibernate4Moduleenable(Hibernate4Module.Feature f)StringgetModuleName()booleanisEnabled(Hibernate4Module.Feature f)voidsetupModule(com.fasterxml.jackson.databind.Module.SetupContext context)com.fasterxml.jackson.core.Versionversion()
-
-
-
Field Detail
-
DEFAULT_FEATURES
protected static final int DEFAULT_FEATURES
-
_moduleFeatures
protected int _moduleFeatures
Bit flag composed of bits that indicate whichHibernate4Module.Features are enabled.
-
_mapping
protected final org.hibernate.engine.spi.Mapping _mapping
Hibernate mapping.
-
_sessionFactory
protected final org.hibernate.SessionFactory _sessionFactory
-
-
Constructor Detail
-
Hibernate4Module
public Hibernate4Module()
-
Hibernate4Module
public Hibernate4Module(org.hibernate.engine.spi.Mapping mapping)
-
Hibernate4Module
public Hibernate4Module(org.hibernate.SessionFactory sessionFactory)
-
Hibernate4Module
public Hibernate4Module(org.hibernate.engine.spi.Mapping mapping, org.hibernate.SessionFactory sessionFactory)
-
-
Method Detail
-
getModuleName
public String getModuleName()
- Specified by:
getModuleNamein classcom.fasterxml.jackson.databind.Module
-
version
public com.fasterxml.jackson.core.Version version()
- Specified by:
versionin interfacecom.fasterxml.jackson.core.Versioned- Specified by:
versionin classcom.fasterxml.jackson.databind.Module
-
setupModule
public void setupModule(com.fasterxml.jackson.databind.Module.SetupContext context)
- Specified by:
setupModulein classcom.fasterxml.jackson.databind.Module
-
annotationIntrospector
protected com.fasterxml.jackson.databind.AnnotationIntrospector annotationIntrospector()
Method called duringsetupModule(com.fasterxml.jackson.databind.Module.SetupContext), to createAnnotationIntrospectorto register along with module. If null is returned, no introspector is added.
-
enable
public Hibernate4Module enable(Hibernate4Module.Feature f)
-
disable
public Hibernate4Module disable(Hibernate4Module.Feature f)
-
isEnabled
public final boolean isEnabled(Hibernate4Module.Feature f)
-
configure
public Hibernate4Module configure(Hibernate4Module.Feature f, boolean state)
-
-