Examples of BaseColumn


Examples of org.openfaces.component.table.BaseColumn

        return ANY_COLUMN_VALUE_EXPRESSION;
    }

    @Override
    public List<UIComponent> getChildren() {
        BaseColumn actualCol = getCurrentlyRenderedColumn();
        if (actualCol instanceof ContextDependentComponent) {
            if (!((ContextDependentComponent) actualCol).isComponentInContext()) {
                // This method is expected to be called only from within the encodeAll method of this instance, and this
                // method sets up column's context. If this check fails then it means that this method is invoked from
                // somewhere else, and if that invocation is rightful then this cell's enterComponentContext method has
                // to be invoked prior to this
                throw new IllegalStateException("The current column is supposed to be in context when its children are retrieved");
            }
        }

        UIComponent headerOrFooterComponentFromFacet = actualCol.getFacet(getFacetName());
        if (headerOrFooterComponentFromFacet != null)
            return Collections.singletonList(headerOrFooterComponentFromFacet);
        else {
            // Returning an empty string output-text here...
            // A non-empty child list is required even when rendering a per-column group header cell for a column that
View Full Code Here

Examples of org.teiid.metadata.BaseColumn

        String typeName = columns.getString(7);
        sqlType = checkForUnsigned(sqlType, typeName);
        if (columnType == DatabaseMetaData.procedureColumnUnknown) {
          continue; //there's a good chance this won't work
        }
        BaseColumn record = null;
        int precision = columns.getInt(8);
        String runtimeType = getRuntimeType(sqlType, typeName, precision);
        if (columnType == DatabaseMetaData.procedureColumnResult) {
          Column column = metadataFactory.addProcedureResultSetColumn(columnName, runtimeType, procedure);
          record = column;
          column.setNativeType(typeName);
        } else {
          record = metadataFactory.addProcedureParameter(columnName, runtimeType, Type.values()[columnType], procedure);
        }
        record.setPrecision(columns.getInt(8));
        record.setLength(columns.getInt(9));
        record.setScale(columns.getInt(10));
        record.setRadix(columns.getInt(11));
        record.setNullType(NullType.values()[columns.getShort(12)]);
        record.setAnnotation(columns.getString(13));
      }
    }
    procedures.close();
  }
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.