public Collection < String > getViewNamesByTable ( String tblName , Transaction tx ) { Collection < String > result = new LinkedList < String > ( ) ; TableInfo ti = tblMgr . getTableInfo ( VCAT , tx ) ; RecordFile rf = ti . open ( tx , true ) ; rf . beforeFirst ( ) ; while ( rf . next ( ) ) { Parser parser = new Parser ( ( String ) rf . getVal ( VCAT_VDEF ) . asJavaVal ( ) ) ; if ( parser . queryCommand ( ) . tables ( ) . contains ( tblName ) ) result . add ( ( String ) rf . getVal ( VCAT_VNAME ) . asJavaVal ( ) ) ; } rf . close ( ) ; return result ; }
We may have to come out a better method .