1 21 22 package org.apache.derby.impl.store.access.heap; 23 24 import org.apache.derby.iapi.reference.SQLState; 25 26 import org.apache.derby.iapi.error.StandardException; 27 28 import org.apache.derby.iapi.types.RowLocation; 29 30 import org.apache.derby.impl.store.access.conglomerate.OpenConglomerate; 31 32 35 36 class OpenHeap extends OpenConglomerate 37 { 38 42 43 47 48 52 53 57 public int[] getFormatIds() 58 { 59 return(((Heap) getConglomerate()).format_ids); 60 } 61 62 70 public RowLocation newRowLocationTemplate() 71 throws StandardException 72 { 73 if (getContainer() == null) 74 { 75 throw StandardException.newException( 76 SQLState.HEAP_IS_CLOSED, 77 getConglomerate().getId()); 78 } 79 80 return new HeapRowLocation(); 81 } 82 } 83 | Popular Tags |