org.teiid.metadata.Datatype.getRadix()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(107)

本文整理了Java中org.teiid.metadata.Datatype.getRadix()方法的一些代码示例,展示了Datatype.getRadix()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Datatype.getRadix()方法的具体详情如下:
包路径:org.teiid.metadata.Datatype
类名称:Datatype
方法名:getRadix

Datatype.getRadix介绍

暂无

代码示例

代码示例来源:origin: teiid/teiid

row.add(datatype.getRadix());
row.add(datatype.getSearchType().toString()); 
row.add(datatype.getUUID());

代码示例来源:origin: org.jboss.teiid/teiid-engine

row.add(datatype.getRadix());
row.add(datatype.getSearchType().toString()); 
row.add(datatype.getUUID());

代码示例来源:origin: org.teiid/teiid-engine

row.add(datatype.getRadix());
row.add(datatype.getSearchType().toString()); 
row.add(datatype.getUUID());

代码示例来源:origin: teiid/teiid

public void setDatatype(Datatype datatype, boolean copyAttributes, int arrayDimensions) {
  this.datatype = datatype;
  this.arrayDimensions = arrayDimensions;
  if (datatype != null) {
    this.datatypeUUID = this.datatype.getUUID();
    this.runtimeType = this.datatype.getRuntimeTypeName();
    if (arrayDimensions > 0) {
      this.runtimeType += StringUtil.join(Collections.nCopies(arrayDimensions, "[]"), ""); //$NON-NLS-1$ //$NON-NLS-2$
    }
    if (copyAttributes) {
      this.radix = this.datatype.getRadix();
      this.length = this.datatype.getLength();
      if (!datatype.getName().equals(DataTypeManager.DefaultDataTypes.BIG_DECIMAL)) {
        this.precision = this.datatype.getPrecision();
        this.scale = this.datatype.getScale();
      }
      this.nullType = this.datatype.getNullType();
    }
  }
}

代码示例来源:origin: teiid/teiid

private void appendColumnOptions(BaseColumn column) {
  StringBuilder options = new StringBuilder();
  addCommonOptions(options, column);
  
  if (!column.getDatatype().isBuiltin() && column.getDatatype().getType() != Datatype.Type.Domain) {
    //an enterprise type
    addOption(options, UDT, column.getDatatype().getName() + "("+column.getLength()+ ", " +column.getPrecision()+", " + column.getScale()+ ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
  }
  
  if (column.getDatatype().getRadix() != 0 && column.getRadix() != column.getDatatype().getRadix()) {
    addOption(options, RADIX, column.getRadix());
  }
  
  buildColumnOptions(column, options);
  
  if (options.length() != 0) {
    append(SPACE).append(OPTIONS).append(SPACE).append(LPAREN).append(options).append(RPAREN);
  }
}

代码示例来源:origin: org.jboss.teiid/teiid-engine

private void appendColumnOptions(BaseColumn column) {
  StringBuilder options = new StringBuilder();
  addCommonOptions(options, column);
  
  if (!column.getDatatype().isBuiltin() && column.getDatatype().getType() != Datatype.Type.Domain) {
    //an enterprise type
    addOption(options, UDT, column.getDatatype().getName() + "("+column.getLength()+ ", " +column.getPrecision()+", " + column.getScale()+ ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
  }
  
  if (column.getDatatype().getRadix() != 0 && column.getRadix() != column.getDatatype().getRadix()) {
    addOption(options, RADIX, column.getRadix());
  }
  
  buildColumnOptions(column, options);
  
  if (options.length() != 0) {
    append(SPACE).append(OPTIONS).append(SPACE).append(LPAREN).append(options).append(RPAREN);
  }
}

代码示例来源:origin: org.teiid/teiid-engine

private void appendColumnOptions(BaseColumn column) {
  StringBuilder options = new StringBuilder();
  addCommonOptions(options, column);
  
  if (!column.getDatatype().isBuiltin() && column.getDatatype().getType() != Datatype.Type.Domain) {
    //an enterprise type
    addOption(options, UDT, column.getDatatype().getName() + "("+column.getLength()+ ", " +column.getPrecision()+", " + column.getScale()+ ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
  }
  
  if (column.getDatatype().getRadix() != 0 && column.getRadix() != column.getDatatype().getRadix()) {
    addOption(options, RADIX, column.getRadix());
  }
  
  buildColumnOptions(column, options);
  
  if (options.length() != 0) {
    append(SPACE).append(OPTIONS).append(SPACE).append(LPAREN).append(options).append(RPAREN);
  }
}

相关文章