Package org.hibernate.tuple

Examples of org.hibernate.tuple.Tuplizer


    if ( component.getTuplizerMap() != null ) {
      userSuppliedTuplizerImpls.putAll( component.getTuplizerMap() );
    }

    // Build the dynamic-map tuplizer...
    Tuplizer dynamicMapTuplizer;
    String tuplizerClassName = ( String ) userSuppliedTuplizerImpls.remove( EntityMode.MAP );
    if ( tuplizerClassName == null ) {
      dynamicMapTuplizer = componentTuplizerFactory.constructDefaultTuplizer( EntityMode.MAP, component );
    }
    else {
      dynamicMapTuplizer = componentTuplizerFactory.constructTuplizer( tuplizerClassName, component );
    }

    // then the pojo tuplizer, using the dynamic-map tuplizer if no pojo representation is available
    tuplizerClassName = ( String ) userSuppliedTuplizerImpls.remove( EntityMode.POJO );
    Tuplizer pojoTuplizer;
    if ( owner.hasPojoRepresentation() && component.hasPojoRepresentation() ) {
      if ( tuplizerClassName == null ) {
        pojoTuplizer = componentTuplizerFactory.constructDefaultTuplizer( EntityMode.POJO, component );
      }
      else {
        pojoTuplizer = componentTuplizerFactory.constructTuplizer( tuplizerClassName, component );
      }
    }
    else {
      pojoTuplizer = dynamicMapTuplizer;
    }

    // then dom4j tuplizer, if dom4j representation is available
    Tuplizer dom4jTuplizer;
    tuplizerClassName = ( String ) userSuppliedTuplizerImpls.remove( EntityMode.DOM4J );
    if ( owner.hasDom4jRepresentation() ) {
      if ( tuplizerClassName == null ) {
        dom4jTuplizer = componentTuplizerFactory.constructDefaultTuplizer( EntityMode.DOM4J, component );
      }
View Full Code Here


  public CascadeStyle[] getPropertyCascadeStyles() {
    return entityMetamodel.getCascadeStyles();
  }

  public final Class getMappedClass(EntityMode entityMode) {
    Tuplizer tup = entityMetamodel.getTuplizerOrNull(entityMode);
    return tup==null ? null : tup.getMappedClass();
  }
View Full Code Here

  public CascadeStyle[] getPropertyCascadeStyles() {
    return entityMetamodel.getCascadeStyles();
  }

  public final Class getMappedClass(EntityMode entityMode) {
    Tuplizer tup = entityMetamodel.getTuplizerOrNull(entityMode);
    return tup==null ? null : tup.getMappedClass();
  }
View Full Code Here

  public CascadeStyle[] getPropertyCascadeStyles() {
    return entityMetamodel.getCascadeStyles();
  }

  public final Class getMappedClass(EntityMode entityMode) {
    Tuplizer tup = entityMetamodel.getTuplizerOrNull(entityMode);
    return tup==null ? null : tup.getMappedClass();
  }
View Full Code Here

  public CascadeStyle[] getPropertyCascadeStyles() {
    return entityMetamodel.getCascadeStyles();
  }

  public final Class getMappedClass(EntityMode entityMode) {
    Tuplizer tup = entityMetamodel.getTuplizerOrNull(entityMode);
    return tup==null ? null : tup.getMappedClass();
  }
View Full Code Here

  public CascadeStyle[] getPropertyCascadeStyles() {
    return entityMetamodel.getCascadeStyles();
  }

  public final Class getMappedClass(EntityMode entityMode) {
    Tuplizer tup = entityMetamodel.getTuplizerOrNull(entityMode);
    return tup==null ? null : tup.getMappedClass();
  }
View Full Code Here

  public CascadeStyle[] getPropertyCascadeStyles() {
    return entityMetamodel.getCascadeStyles();
  }

  public final Class getMappedClass(EntityMode entityMode) {
    Tuplizer tup = entityMetamodel.getTuplizerOrNull(entityMode);
    return tup==null ? null : tup.getMappedClass();
  }
View Full Code Here

  public CascadeStyle[] getPropertyCascadeStyles() {
    return entityMetamodel.getCascadeStyles();
  }

  public final Class getMappedClass(EntityMode entityMode) {
    Tuplizer tup = entityMetamodel.getTuplizerOrNull(entityMode);
    return tup==null ? null : tup.getMappedClass();
  }
View Full Code Here

  public CascadeStyle[] getPropertyCascadeStyles() {
    return entityMetamodel.getCascadeStyles();
  }

  public final Class getMappedClass(EntityMode entityMode) {
    Tuplizer tup = entityMetamodel.getTuplizerOrNull(entityMode);
    return tup==null ? null : tup.getMappedClass();
  }
View Full Code Here

    if ( mappedEntity.getTuplizerMap() != null ) {
      userSuppliedTuplizerImpls.putAll( mappedEntity.getTuplizerMap() );
    }

    // Build the dynamic-map tuplizer...
    Tuplizer dynamicMapTuplizer;
    String tuplizerImplClassName = ( String ) userSuppliedTuplizerImpls.remove( EntityMode.MAP );
    if ( tuplizerImplClassName == null ) {
      dynamicMapTuplizer = entityTuplizerFactory.constructDefaultTuplizer( EntityMode.MAP, em, mappedEntity );
    }
    else {
      dynamicMapTuplizer = entityTuplizerFactory.constructTuplizer( tuplizerImplClassName, em, mappedEntity );
    }

    // then the pojo tuplizer, using the dynamic-map tuplizer if no pojo representation is available
    Tuplizer pojoTuplizer;
    tuplizerImplClassName = ( String ) userSuppliedTuplizerImpls.remove( EntityMode.POJO );
    if ( mappedEntity.hasPojoRepresentation() ) {
      if ( tuplizerImplClassName == null ) {
        pojoTuplizer = entityTuplizerFactory.constructDefaultTuplizer( EntityMode.POJO, em, mappedEntity );
      }
      else {
        pojoTuplizer = entityTuplizerFactory.constructTuplizer( tuplizerImplClassName, em, mappedEntity );
      }
    }
    else {
      pojoTuplizer = dynamicMapTuplizer;
    }

    // then dom4j tuplizer, if dom4j representation is available
    Tuplizer dom4jTuplizer;
    tuplizerImplClassName = ( String ) userSuppliedTuplizerImpls.remove( EntityMode.DOM4J );
    if ( mappedEntity.hasDom4jRepresentation() ) {
      if ( tuplizerImplClassName == null ) {
        dom4jTuplizer = entityTuplizerFactory.constructDefaultTuplizer( EntityMode.DOM4J, em, mappedEntity );
      }
View Full Code Here

TOP

Related Classes of org.hibernate.tuple.Tuplizer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.