void insertIntoTable ( Session session , Result result ) { PersistentStore store = session . sessionData . getRowStore ( this ) ; RowSetNavigator nav = result . initialiseNavigator ( ) ; while ( nav . hasNext ( ) ) { Object [ ] data = nav . getNext ( ) ; Object [ ] newData = ( Object [ ] ) ArrayUtil . resizeArrayIfDifferent ( data , getColumnCount ( ) ) ; insertData ( store , newData ) ; } }
Multi - row insert method . Used for CREATE TABLE AS ... queries .