private void registerEntityNameResolvers(EntityTuplizer tuplizer) { EntityNameResolver[] resolvers = tuplizer.getEntityNameResolvers(); if ( resolvers == null ) { return; } for ( EntityNameResolver resolver : resolvers ) { registerEntityNameResolver( resolver ); } }
private void registerEntityNameResolvers(EntityTuplizer tuplizer) { EntityNameResolver[] resolvers = tuplizer.getEntityNameResolvers(); if (resolvers == null) { return; } for (EntityNameResolver resolver : resolvers) { registerEntityNameResolver(resolver); } }
public Class<? extends EntityTuplizer> getCustomEntityTuplizerClass() { return customEntityTuplizerClass; }
public void setCustomEntityTuplizerClass(Class<? extends EntityTuplizer> customEntityTuplizerClass) { this.customEntityTuplizerClass = customEntityTuplizerClass; }
private EntityBinding buildBasicEntityBinding(EntitySource entitySource, EntityBinding superEntityBinding) { final EntityBinding entityBinding = superEntityBinding == null ? new EntityBinding( currentInheritanceType, currentHierarchyEntityMode ) : new EntityBinding( superEntityBinding ); final String entityName = entitySource.getEntityName(); final String className = currentHierarchyEntityMode == EntityMode.POJO ? entitySource.getClassName() : null; final Entity entity = new Entity( entityName, className, currentBindingContext.makeClassReference( className ), superEntityBinding == null ? null : superEntityBinding.getEntity() ); entityBinding.setEntity( entity ); entityBinding.setJpaEntityName( entitySource.getJpaEntityName() ); if ( currentHierarchyEntityMode == EntityMode.POJO ) { final String proxy = entitySource.getProxy(); if ( proxy != null ) { entityBinding.setProxyInterfaceType( currentBindingContext.makeClassReference( currentBindingContext.qualifyClassName( proxy ) ) ); entityBinding.setLazy( true ); } else if ( entitySource.isLazy() ) { entityBinding.setProxyInterfaceType( entityBinding.getEntity().getClassReferenceUnresolved() ); entityBinding.setLazy( true ); } } else { entityBinding.setProxyInterfaceType( null ); entityBinding.setLazy( entitySource.isLazy() ); } final String customTuplizerClassName = entitySource.getCustomTuplizerClassName(); if ( customTuplizerClassName != null ) { entityBinding.setCustomEntityTuplizerClass( currentBindingContext.<EntityTuplizer>locateClassByName( customTuplizerClassName ) ); } final String customPersisterClassName = entitySource.getCustomPersisterClassName(); if ( customPersisterClassName != null ) { entityBinding.setCustomEntityPersisterClass( currentBindingContext.<EntityPersister>locateClassByName( customPersisterClassName ) ); } entityBinding.setMetaAttributeContext( buildMetaAttributeContext( entitySource ) ); entityBinding.setDynamicUpdate( entitySource.isDynamicUpdate() ); entityBinding.setDynamicInsert( entitySource.isDynamicInsert() ); entityBinding.setBatchSize( entitySource.getBatchSize() ); entityBinding.setSelectBeforeUpdate( entitySource.isSelectBeforeUpdate() ); entityBinding.setAbstract( entitySource.isAbstract() ); entityBinding.setCustomLoaderName( entitySource.getCustomLoaderName() ); entityBinding.setCustomInsert( entitySource.getCustomSqlInsert() ); entityBinding.setCustomUpdate( entitySource.getCustomSqlUpdate() ); entityBinding.setCustomDelete( entitySource.getCustomSqlDelete() ); if ( entitySource.getSynchronizedTableNames() != null ) { entityBinding.addSynchronizedTableNames( entitySource.getSynchronizedTableNames() ); } entityBinding.setJpaCallbackClasses(entitySource.getJpaCallbackClasses()); return entityBinding; }
@Override public EntityTuplizer getEntityTuplizer() { return entityTuplizer; }
@Override public EntityTuplizer getEntityTuplizer() { // TODO Auto-generated method stub return null; }
protected EntityTuplizer getTuplizer(SessionImplementor session) { return getTuplizer( session.getEntityMode() ); }
protected EntityTuplizer getTuplizer(EntityMode entityMode) { return entityMetamodel.getTuplizer( entityMode ); }
public boolean isInstrumented(EntityMode entityMode) { EntityTuplizer tuplizer = entityMetamodel.getTuplizerOrNull(entityMode); return tuplizer!=null && tuplizer.isInstrumented(); }
public EntityTuplizer getEntityTuplizer();