Examples of XmlTable


Examples of net.sf.myjaut.xml.XmlTable

import org.w3c.dom.Document;
import org.xml.sax.SAXException;

public class XmlTableModel extends AbstractTableModel {
    public XmlTableModel(Document document) throws SAXException, IOException, ParserConfigurationException {
        xmlTable = new XmlTable(document);
    }
View Full Code Here

Examples of net.sf.myjaut.xml.XmlTable

import org.w3c.dom.Document;
import org.xml.sax.SAXException;

public class XmlListModel extends AbstractListModel {
    public XmlListModel(Document document) throws SAXException, IOException, ParserConfigurationException {
        this(new XmlTable(document));
    }
View Full Code Here

Examples of net.sf.myjaut.xml.XmlTable

import net.sf.myjaut.xml.XmlTableException;
import net.sf.myjaut.xml.XmlWriter;

public class XmlTablePagedOverview implements PagedOverview {
   public XmlTablePagedOverview(XmlWriter xw, int page, int nbRecordsOnPage) throws XmlTableException {
      this(new XmlTable(xw.toString()), page, nbRecordsOnPage);
   }
View Full Code Here

Examples of net.sf.myjaut.xml.XmlTable

   public XmlTablePagedOverview(XmlWriter xw, int page, int nbRecordsOnPage) throws XmlTableException {
      this(new XmlTable(xw.toString()), page, nbRecordsOnPage);
   }
  
   public XmlTablePagedOverview(XmlProvider xp, int page, int nbRecordsOnPage) throws XmlTableException {
      this(new XmlTable(xp.getXml().toString()), page, nbRecordsOnPage);
   }
View Full Code Here

Examples of oracle.toplink.essentials.internal.ejb.cmp3.xml.tables.XMLTable

           
      if (tableNode != null) {
            if (m_descriptor.ignoreTables()) {
                m_logger.logWarningMessage(m_logger.IGNORE_TABLE_ELEMENT, getJavaClass());
            } else {
                processTable(new XMLTable(tableNode, m_helper, m_logger));
            }
      } else {
            // Check for a table annotation. If no annotation is defined, the
            // table will default.
            super.processTable();
View Full Code Here

Examples of org.hibernate.metamodel.source.annotation.jaxb.XMLTable

    }
  }

  private void mockTableIfNonExist(XMLEntity entity, EntityMappingsMocker.Default defaults) {
    if ( hasSchemaOrCatalogDefined( defaults ) ) {
      XMLTable table = entity.getTable();
      if ( table == null ) {
        table = new XMLTable();
        entity.setTable( table );
      }
    }
  }
View Full Code Here

Examples of org.hibernate.metamodel.source.annotation.xml.XMLTable

    }
  }

  private void mockTableIfNonExist(XMLEntity entity, EntityMappingsMocker.Default defaults) {
    if ( hasSchemaOrCatalogDefined( defaults ) ) {
      XMLTable table = entity.getTable();
      if ( table == null ) {
        table = new XMLTable();
        entity.setTable( table );
      }
    }
  }
View Full Code Here

Examples of org.teiid.query.sql.lang.XMLTable

                        child.setProperty(NodeConstants.Info.OUTPUT_COLS, node.getProperty(NodeConstants.Info.OUTPUT_COLS));
                    }
        }
        Object source = node.getProperty(NodeConstants.Info.TABLE_FUNCTION);
        if (source instanceof XMLTable) {
          XMLTable xt = (XMLTable)source;
          XMLTableNode xtn = new XMLTableNode(getID());
          //we handle the projection filtering once here rather than repeating the
          //path analysis on a per plan basis
          updateGroupName(node, xt);
          Map elementMap = RelationalNode.createLookupMap(xt.getProjectedSymbols());
              List cols = (List) node.getProperty(NodeConstants.Info.OUTPUT_COLS);
          int[] projectionIndexes = RelationalNode.getProjectionIndexes(elementMap, cols);
          ArrayList<XMLColumn> filteredColumns = new ArrayList<XMLColumn>(projectionIndexes.length);
          for (int col : projectionIndexes) {
            filteredColumns.add(xt.getColumns().get(col));
          }
          xt.getXQueryExpression().useDocumentProjection(filteredColumns, analysisRecord);
          xtn.setProjectedColumns(filteredColumns);
          xtn.setTable(xt);
          processNode = xtn;
          break;
        }
View Full Code Here

Examples of org.teiid.query.sql.lang.XMLTable

            rewriteSubqueryContainer((SubqueryFromClause)clause, true);
        } else if (clause instanceof TextTable) {
          TextTable tt = (TextTable)clause;
          tt.setFile(rewriteExpressionDirect(tt.getFile()));
        } else if (clause instanceof XMLTable) {
          XMLTable xt = (XMLTable)clause;
          xt.rewriteDefaultColumn();
          rewriteExpressions(clause);
        } else if (clause instanceof ArrayTable) {
          ArrayTable at = (ArrayTable)clause;
          at.setArrayValue(rewriteExpressionDirect(at.getArrayValue()));
        }
View Full Code Here

Examples of org.teiid.query.sql.lang.XMLTable

   
    @Test public void testXMLTable() throws Exception {
      String sql = "SELECT * from xmltable(xmlnamespaces(no default), '/' columns x for ordinality, y date default {d'2000-01-01'} path '@date') as x"; //$NON-NLS-1$
        Query query = new Query();
        query.setSelect(new Select(Arrays.asList(new AllSymbol())));
        XMLTable xt = new XMLTable();
        xt.setName("x");
        xt.setNamespaces(new XMLNamespaces(Arrays.asList(new XMLNamespaces.NamespaceItem())));
        xt.setXquery("/");
        List<XMLTable.XMLColumn> columns = new ArrayList<XMLTable.XMLColumn>();
        columns.add(new XMLTable.XMLColumn("x"));
        columns.add(new XMLTable.XMLColumn("y", "date", "@date", new Constant(Date.valueOf("2000-01-01"))));
        xt.setColumns(columns);
        query.setFrom(new From(Arrays.asList(xt)));
        helpTest(sql, "SELECT * FROM XMLTABLE(XMLNAMESPACES(NO DEFAULT), '/' COLUMNS x FOR ORDINALITY, y date DEFAULT {d'2000-01-01'} PATH '@date') AS x", query);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.