Java 类org.hibernate.tuple.entity.EntityTuplizer 实例源码

项目:lams    文件:SessionFactoryImpl.java   
private void registerEntityNameResolvers(EntityTuplizer tuplizer) {
    EntityNameResolver[] resolvers = tuplizer.getEntityNameResolvers();
    if ( resolvers == null ) {
        return;
    }

    for ( EntityNameResolver resolver : resolvers ) {
        registerEntityNameResolver( resolver );
    }
}
项目:hibernate-dynamic-dialects    文件:SessionFactoryImpl.java   
private void registerEntityNameResolvers(EntityTuplizer tuplizer) {
    EntityNameResolver[] resolvers = tuplizer.getEntityNameResolvers();
    if (resolvers == null) {
        return;
    }

    for (EntityNameResolver resolver : resolvers) {
        registerEntityNameResolver(resolver);
    }
}
项目:lams    文件:EntityBinding.java   
public Class<? extends EntityTuplizer> getCustomEntityTuplizerClass() {
    return customEntityTuplizerClass;
}
项目:lams    文件:EntityBinding.java   
public void setCustomEntityTuplizerClass(Class<? extends EntityTuplizer> customEntityTuplizerClass) {
    this.customEntityTuplizerClass = customEntityTuplizerClass;
}
项目:lams    文件:Binder.java   
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;
}
项目:lams    文件:AbstractEntityPersister.java   
@Override
public EntityTuplizer getEntityTuplizer() {
    return entityTuplizer;
}
项目:Layer-Query    文件:DinamicEntityPersister.java   
@Override
public EntityTuplizer getEntityTuplizer() {
    // TODO Auto-generated method stub
    return null;
}
项目:cacheonix-core    文件:AbstractEntityPersister.java   
protected EntityTuplizer getTuplizer(SessionImplementor session) {
    return getTuplizer( session.getEntityMode() );
}
项目:cacheonix-core    文件:AbstractEntityPersister.java   
protected EntityTuplizer getTuplizer(EntityMode entityMode) {
    return entityMetamodel.getTuplizer( entityMode );
}
项目:cacheonix-core    文件:AbstractEntityPersister.java   
public boolean isInstrumented(EntityMode entityMode) {
    EntityTuplizer tuplizer = entityMetamodel.getTuplizerOrNull(entityMode);
    return tuplizer!=null && tuplizer.isInstrumented();
}
项目:lams    文件:EntityPersister.java   
public EntityTuplizer getEntityTuplizer();