Package org.hibernate.type

Examples of org.hibernate.type.Type.assemble()


  throws HibernateException {
   
    Type elementType = persister.getElementType();
    Serializable[] cached = (Serializable[]) disassembled;
    for ( int i=0; i<cached.length; i++ ) {
      Object object = elementType.assemble( cached[i], getSession(), owner );
      Element subelement = element.addElement( persister.getElementNodeName() );
      elementType.setToXMLNode( subelement, object, persister.getFactory() );
    }
   
  }
View Full Code Here


  public void initializeFromCache(CollectionPersister persister, Serializable disassembled, Object owner)
      throws HibernateException {
    final Type collectionElementType = persister.getElementType();
    final Serializable[] cachedSnapshot = (Serializable[]) disassembled;
    for ( Serializable cachedItem : cachedSnapshot ) {
      final Object object = collectionElementType.assemble( cachedItem, getSession(), owner );
      final Element subElement = element.addElement( persister.getElementNodeName() );
      collectionElementType.setToXMLNode( subElement, object, persister.getFactory() );
    }
  }
View Full Code Here

    final String indexNodeName = getIndexAttributeName( persister );

    final Serializable[] cached = (Serializable[]) disassembled;
    int i = 0;
    while ( i < cached.length ) {
      final Object index = indexType.assemble( cached[i++], getSession(), owner );
      final Object object = elementType.assemble( cached[i++], getSession(), owner );

      final Element subElement = element.addElement( persister.getElementNodeName() );
      elementType.setToXMLNode( subElement, object, persister.getFactory() );
View Full Code Here

      throws HibernateException {
    final Type elementType = persister.getElementType();
    final String indexNodeName = getIndexAttributeName( persister );
    final Serializable[] cached = (Serializable[]) disassembled;
    for ( int i=0; i<cached.length; i++ ) {
      final Object object = elementType.assemble( cached[i], getSession(), owner );
      final Element subelement = element.addElement( persister.getElementNodeName() );
      elementType.setToXMLNode( subelement, object, persister.getFactory() );
      setIndex( subelement, indexNodeName, Integer.toString( i ) );
    }
  }
View Full Code Here

  throws HibernateException {
   
    Type elementType = persister.getElementType();
    Serializable[] cached = (Serializable[]) disassembled;
    for ( int i=0; i<cached.length; i++ ) {
      Object object = elementType.assemble( cached[i], getSession(), owner );
      Element subelement = element.addElement( persister.getElementNodeName() );
      elementType.setToXMLNode( subelement, object, persister.getFactory() );
    }
   
  }
View Full Code Here

    final String indexNodeName = getIndexAttributeName(persister);

    Serializable[] cached = (Serializable[]) disassembled;

    for ( int i=0; i<cached.length; ) {
      Object index = indexType.assemble( cached[i++], getSession(), owner );
      Object object = elementType.assemble( cached[i++], getSession(), owner );
     
      Element subelement = element.addElement( persister.getElementNodeName() );
      elementType.setToXMLNode( subelement, object, persister.getFactory() );
     
View Full Code Here

   
    Type elementType = persister.getElementType();
    final String indexNodeName = getIndexAttributeName(persister);
    Serializable[] cached = (Serializable[]) disassembled;
    for ( int i=0; i<cached.length; i++ ) {
      Object object = elementType.assemble( cached[i], getSession(), owner );
      Element subelement = element.addElement( persister.getElementNodeName() );
      elementType.setToXMLNode( subelement, object, persister.getFactory() );
      setIndex( subelement, indexNodeName, Integer.toString(i) );
    }
   
View Full Code Here

  throws HibernateException {
   
    Type elementType = persister.getElementType();
    Serializable[] cached = (Serializable[]) disassembled;
    for ( int i=0; i<cached.length; i++ ) {
      Object object = elementType.assemble( cached[i], getSession(), owner );
      Element subelement = element.addElement( persister.getElementNodeName() );
      elementType.setToXMLNode( subelement, object, persister.getFactory() );
    }
   
  }
View Full Code Here

    final String indexNodeName = getIndexAttributeName(persister);

    Serializable[] cached = (Serializable[]) disassembled;

    for ( int i=0; i<cached.length; ) {
      Object index = indexType.assemble( cached[i++], getSession(), owner );
      Object object = elementType.assemble( cached[i++], getSession(), owner );
     
      Element subelement = element.addElement( persister.getElementNodeName() );
      elementType.setToXMLNode( subelement, object, persister.getFactory() );
     
View Full Code Here

   
    Type elementType = persister.getElementType();
    final String indexNodeName = getIndexAttributeName(persister);
    Serializable[] cached = (Serializable[]) disassembled;
    for ( int i=0; i<cached.length; i++ ) {
      Object object = elementType.assemble( cached[i], getSession(), owner );
      Element subelement = element.addElement( persister.getElementNodeName() );
      elementType.setToXMLNode( subelement, object, persister.getFactory() );
      setIndex( subelement, indexNodeName, Integer.toString(i) );
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.