public VoltXMLElement getXMLForTable ( String tableName ) throws HSQLParseException { VoltXMLElement xml = emptySchema . duplicate ( ) ; // search all the tables XXX probably could do this non-linearly, // but i don't know about case-insensitivity yet HashMappedList hsqlTables = getHSQLTables ( ) ; for ( int i = 0 ; i < hsqlTables . size ( ) ; i ++ ) { Table table = ( Table ) hsqlTables . get ( i ) ; String candidateTableName = table . getName ( ) . name ; // found the table of interest if ( candidateTableName . equalsIgnoreCase ( tableName ) ) { VoltXMLElement vxmle = table . voltGetTableXML ( sessionProxy ) ; assert ( vxmle != null ) ; xml . children . add ( vxmle ) ; return xml ; } } return null ; }
Get a serialized XML representation of a particular table .