org.hibernate.tuple.entity.EntityTuplizer Java Examples
The following examples show how to use
org.hibernate.tuple.entity.EntityTuplizer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MetamodelImpl.java From lams with GNU General Public License v2.0 | 5 votes |
private static void registerEntityNameResolvers(EntityTuplizer tuplizer, Map<EntityNameResolver,Object> entityNameResolvers) { EntityNameResolver[] resolvers = tuplizer.getEntityNameResolvers(); if ( resolvers == null ) { return; } for ( EntityNameResolver resolver : resolvers ) { entityNameResolvers.put( resolver, ENTITY_NAME_RESOLVER_MAP_VALUE ); } }
Example #2
Source File: AbstractDelegatingSessionFactoryBuilder.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public T applyEntityTuplizer( EntityMode entityMode, Class<? extends EntityTuplizer> tuplizerClass) { delegate.applyEntityTuplizer( entityMode, tuplizerClass ); return getThis(); }
Example #3
Source File: SessionFactoryBuilderImpl.java From lams with GNU General Public License v2.0 | 5 votes |
@Override public SessionFactoryBuilder applyEntityTuplizer( EntityMode entityMode, Class<? extends EntityTuplizer> tuplizerClass) { this.optionsBuilder.applyEntityTuplizer( entityMode, tuplizerClass ); return this; }
Example #4
Source File: AbstractEntityPersister.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public EntityTuplizer getEntityTuplizer() { return entityTuplizer; }
Example #5
Source File: SessionFactoryOptionsBuilder.java From lams with GNU General Public License v2.0 | 4 votes |
public void applyEntityTuplizer(EntityMode entityMode, Class<? extends EntityTuplizer> tuplizerClass) { this.entityTuplizerFactory.registerDefaultTuplizerClass( entityMode, tuplizerClass ); }
Example #6
Source File: AbstractEntityPersister.java From cacheonix-core with GNU Lesser General Public License v2.1 | 4 votes |
protected EntityTuplizer getTuplizer(SessionImplementor session) { return getTuplizer( session.getEntityMode() ); }
Example #7
Source File: AbstractEntityPersister.java From cacheonix-core with GNU Lesser General Public License v2.1 | 4 votes |
protected EntityTuplizer getTuplizer(EntityMode entityMode) { return entityMetamodel.getTuplizer( entityMode ); }
Example #8
Source File: AbstractEntityPersister.java From cacheonix-core with GNU Lesser General Public License v2.1 | 4 votes |
public boolean isInstrumented(EntityMode entityMode) { EntityTuplizer tuplizer = entityMetamodel.getTuplizerOrNull(entityMode); return tuplizer!=null && tuplizer.isInstrumented(); }
Example #9
Source File: SessionFactoryBuilder.java From lams with GNU General Public License v2.0 | 2 votes |
/** * Register the default {@link org.hibernate.tuple.entity.EntityTuplizer} to be applied to the SessionFactory. * * @param entityMode The entity mode that which this tuplizer will be applied. * @param tuplizerClass The custom tuplizer class. * * @return {@code this}, for method chaining */ SessionFactoryBuilder applyEntityTuplizer( EntityMode entityMode, Class<? extends EntityTuplizer> tuplizerClass);
Example #10
Source File: EntityPersister.java From lams with GNU General Public License v2.0 | votes |
EntityTuplizer getEntityTuplizer();