Code example for SessionImplementor

Methods: getPersistenceContext

0
		final String indexNodeName = getIndexAttributeName(persister); 
 
		List elements =  element.elements( persister.getElementNodeName() ); 
		int length = elements.size(); 
		Serializable[] result = new Serializable[length*2]; 
		for ( int i=0; i<length*2; ) { 
			Element elem = (Element) elements.get(i/2); 
			Object object = elementType.fromXMLNode( elem, persister.getFactory() ); 
			final String indexString = getIndex(elem, indexNodeName, i); 
			Object index = ( (XmlRepresentableType) indexType ).fromXMLString( indexString, persister.getFactory() ); 
			result[i++] = indexType.disassemble( index, getSession(), null ); 
			result[i++] = elementType.disassemble( object, getSession(), null ); 
		} 
		return result; 
	} 
} 
Experience pair programming with AI  Get Codota for Java