Examples of OCTypeDescription


Examples of com.ipc.oce.metadata.OCTypeDescription

   * Определяет тип для значений, которые могут храниться в элементах данного списка значений.
   * @return
   * @throws JIException
   */
  public OCTypeDescription getValueType() throws JIException {
    return new OCTypeDescription(get("ValueType"));
  }
View Full Code Here

Examples of com.ipc.oce.metadata.OCTypeDescription

   * Содержит объект, описывающий допустимые типы значений для колонки.
   * @return
   * @throws JIException
   */
  public OCTypeDescription getValueType() throws JIException {
    return new OCTypeDescription(get("ValueType"));
  }
View Full Code Here

Examples of com.ipc.oce.metadata.OCTypeDescription

   * Содержит объект, описывающий допустимые типы значений для колонки
   * @return
   * @throws JIException
   */
  public OCTypeDescription getValueType() throws JIException {
    return new OCTypeDescription(get("ValueType"));
  }
View Full Code Here

Examples of com.ipc.oce.metadata.OCTypeDescription

   * Тип значения характеристики
   * @return OCTypeDescription
   * @throws JIException
   */
  public OCTypeDescription getValueType() throws JIException{
    return new OCTypeDescription(get("ValueType"));
  }
View Full Code Here

Examples of com.ipc.oce.metadata.OCTypeDescription

    super(aDispatch);
  }
 
  public OCTypeDescription getTypeDescription() throws JIException{
    if (typeDescription == null) {
      typeDescription = new OCTypeDescription(get("Type"));
    }
    return typeDescription;
  }
View Full Code Here

Examples of com.ipc.oce.metadata.OCTypeDescription

  /**
   * Используется для измерений регистра бухгалтерии, регистра накопления, регистра расчета, регистра сведений, последовательности.
   * Тип данных объекта метаданных
   */
  public OCTypeDescription getTypeDescription() throws JIException{
    return new OCTypeDescription(get("Type"));
  }
View Full Code Here

Examples of com.ipc.oce.metadata.OCTypeDescription

  public OCExtDimensionAccountingFlagMetadataObject(JIVariant aDispatch) throws JIException {
    super(aDispatch);
  }

  public OCTypeDescription getTypeDescription() throws JIException {
    return new OCTypeDescription(get("Type"));
  }
View Full Code Here

Examples of com.ipc.oce.metadata.OCTypeDescription

   * Тип данных объекта метаданных.
   * @return OCTypeDescription
   * @throws JIException
   */
  public OCTypeDescription getTypeDescription() throws JIException{
    return new OCTypeDescription(get("Type"));
  }
View Full Code Here

Examples of com.ipc.oce.metadata.OCTypeDescription

   * Тип поля.
   * @return OCTypeDescription
   * @throws JIException
   */
  public OCTypeDescription getValueType() throws JIException {
    return new OCTypeDescription(get("ValueType"));
  }
View Full Code Here

Examples of com.ipc.oce.metadata.OCTypeDescription

  private static void attribute2resultSet(
      final OCMetadataAttributeCollection attributeCollection,
      LocalResultSet lrs, String schema, String tableName)
      throws SQLException, JIException {
    OCAttributeMetadataObject amo = null;
    OCTypeDescription typeDescription = null;
    int attrSZ = attributeCollection.size();
    for (int z = 0; z < attrSZ; z++) {
      amo = attributeCollection.get(z);
      typeDescription = amo.getTypeDescription();
      OCType ot = typeDescription.getType();
      int innerType = ot.getTypeCode();
      // determinate column size
      Integer columnSize = null;
      Integer decimalDigits = null;
      if (!(typeDescription.isMultiType())) {
        switch (innerType) {
          case OCType.OCT_STRING: {
            columnSize = typeDescription.getStringQualifiers()
                .getLength();
            break;
          }
          case OCType.OCT_NUMBER: {
            OCNumberQualifiers qualifiers = typeDescription
                .getNumberQualifiers();
            columnSize = qualifiers.getDigits();
            decimalDigits = qualifiers.getFractionDigits();
            break;
          }
          default: {
            columnSize = null;
            decimalDigits = null;
          }
        }
      }
      // determinate char_octet_length
      Integer charOctetLength = null;
      if (columnSize != null && innerType == OCType.OCT_STRING) {
        charOctetLength = columnSize;
      }

      OCType[] dataType = typeDescription.getNotNullTypes();

      lrs.createRowAndSetValues(new Object[] {
          null, // TABLE_CAT
          schema, // TABLE_SCHEM
          tableName, // TABLE_NAME
          amo.getName(), // COLUMN_NAME
          Integer.valueOf(OCType.typesToSQLType(dataType)), // DATA_TYPE
          OCType.typesToSQLTypeName(dataType), // typeDescription.isMultiType()?"MultiType":typeDescription.getType().getSynonym(),
                              // // TYPE_NAME
          columnSize, // COLUMN_SIZE
          null, // BUFFER_LENGTH
          decimalDigits, // DECIMAL_DIGITS
          Integer.valueOf(10), // NUM_PREC_RADIX
          Integer.valueOf(columnNullableUnknown), // NULLABLE
          amo.getComment(), // REMARKS
          null, // COLUMN_DEF
          null, // SQL_DATA_TYPE - unused
          null, // SQL_DATETIME_SUB - unused
          charOctetLength, // CHAR_OCTET_LENGTH
          Integer.valueOf(z + 1), // ORDINAL_POSITION
          "", // IS_NULLABLE empty string --- if it cannot be
            // determined, else YES\NO

          // JDBC 3.0

          null, // SCOPE_CATLOG
          innerType > 100 ? typeDescription.getType().getLinkType()
              : null, // SCOPE_SCHEMA
          null, // SCOPE_TABLE
          null, // SOURCE_DATA_TYPE
          "" // IS_AUTOINCREMENT empty string --- if it cannot be
            // determined, else YES\NO
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.