Examples of ColumnImpl


Examples of org.apache.jackrabbit.spi.commons.query.qom.ColumnImpl

         *                               among the column names of the query result table.
         * @throws RepositoryException   if another error occurs.
         */
        public Value getValue(String columnName) throws ItemNotFoundException, RepositoryException {
            try {
                ColumnImpl col = columns.get(columnName);
                if (col == null) {
                    if (isExcerptFunction(columnName)) {
                        // excerpt function with parameter
                        return getExcerpt(columnName);
                    } else {
                        throw new ItemNotFoundException(columnName);
                    }
                }
                Node n = getNode(col.getSelectorName());
                if (n == null) {
                    return null;
                }

                if (NameConstants.JCR_PATH.equals(col.getPropertyQName())) {
                    int idx = getSelectorIndex(col.getSelectorName());
                    QValue p = valueFactory.getQValueFactory().create(hmgr.getPath(sn[idx].getNodeId()));
                    return valueFactory.createValue(p);
                } else if (n.hasProperty(col.getPropertyName())) {
                    Property p = n.getProperty(col.getPropertyName());
                    if (p.isMultiple()) {
                        // mvp values cannot be returned
                        return null;
                    } else {
                        if (p.getDefinition().getRequiredType() == PropertyType.UNDEFINED) {
View Full Code Here

Examples of org.apache.jackrabbit.spi.commons.query.qom.ColumnImpl

        QueryObjectModelFactory qomFactory = session.getWorkspace().getQueryManager().getQOMFactory();
        // get columns
        Map<Name, ColumnImpl> columns = new LinkedHashMap<Name, ColumnImpl>();
        for (Name name : root.getSelectProperties()) {
            String pn = session.getJCRName(name);
            ColumnImpl col = (ColumnImpl) qomFactory.column(
                    session.getJCRName(DEFAULT_SELECTOR_NAME), pn, pn);
            columns.put(name, col);
        }
        if (columns.size() == 0) {
            // use node type constraint
View Full Code Here

Examples of org.apache.torque.ColumnImpl

        criteria.addJoin(
                BookPeer.AUTHOR_ID, AuthorPeer.AUTHOR_ID,
                Criteria.RIGHT_JOIN);
        criteria.addJoin(
                AuthorPeer.AUTHOR_ID,
                new ColumnImpl("b." + BookPeer.AUTHOR_ID.getColumnName()),
                Criteria.LEFT_JOIN);
        List<Author> authorList = AuthorPeer.doSelect(criteria);
        // Here we get 11 authors:
        // the author with one book, the author without books,
        // and nine times the author with three books
View Full Code Here

Examples of org.eclipse.persistence.internal.jpa.config.columns.ColumnImpl

    public WriteTransformerImpl() {
        super(new WriteTransformerMetadata());
    }
   
    public Column setColumn() {
        ColumnImpl column = new ColumnImpl();
        getMetadata().setColumn(column.getMetadata());
        return column;
    }
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.