Examples of TypeDescriptorImpl


Examples of org.apache.derby.catalog.types.TypeDescriptorImpl

     * @param catalogType
     * @return TypeId that represents the base type, null if not applicable.
     */
    public static TypeId getTypeId(TypeDescriptor catalogType)
    {
        TypeDescriptorImpl tdi = (TypeDescriptorImpl) catalogType;
        final int jdbcType = catalogType.getJDBCTypeId();
        TypeId typeId = TypeId.getBuiltInTypeId(jdbcType);
        if (typeId != null)
            return typeId;
       
        if (jdbcType == Types.JAVA_OBJECT) {
            return new TypeId( StoredFormatIds.USERDEFINED_TYPE_ID_V3, tdi.getTypeId() );
        }

        if ( tdi.isRowMultiSet() )
        {
            return new TypeId( StoredFormatIds.ROW_MULTISET_TYPE_ID_IMPL, tdi.getTypeId() );
        }
       
        return null;
    }
View Full Code Here

Examples of org.apache.derby.catalog.types.TypeDescriptorImpl

   */
  public DataTypeDescriptor(TypeId typeId, int precision, int scale,
    boolean isNullable, int maximumWidth)
  {
    this.typeId = typeId;
    typeDescriptor = new TypeDescriptorImpl(typeId.getBaseTypeId(),
                        precision,
                        scale,
                        isNullable,
                        maximumWidth);
  }
View Full Code Here

Examples of org.apache.derby.catalog.types.TypeDescriptorImpl

  public DataTypeDescriptor(TypeId typeId, int precision, int scale,
    boolean isNullable, int maximumWidth, int collationType,
    int collationDerivation)
  {
    this.typeId = typeId;
    typeDescriptor = new TypeDescriptorImpl(typeId.getBaseTypeId(),
                        precision,
                        scale,
                        isNullable,
                        maximumWidth,
                        collationType,
View Full Code Here

Examples of org.apache.derby.catalog.types.TypeDescriptorImpl

   */
  public DataTypeDescriptor(TypeId typeId, boolean isNullable,
    int maximumWidth)
  {
    this.typeId = typeId;
    typeDescriptor = new TypeDescriptorImpl(typeId.getBaseTypeId(),
                        isNullable,
                        maximumWidth);
  }
View Full Code Here

Examples of org.apache.derby.catalog.types.TypeDescriptorImpl


  public DataTypeDescriptor(TypeId typeId, boolean isNullable) {

    this.typeId = typeId;
    typeDescriptor = new TypeDescriptorImpl(typeId.getBaseTypeId(),
                        typeId.getMaximumPrecision(),
                        typeId.getMaximumScale(),
                        isNullable,
                        typeId.getMaximumMaximumWidth());
  }
View Full Code Here

Examples of org.apache.derby.catalog.types.TypeDescriptorImpl

    //ColumnDescriptor(CD), the RC's TypeDescriptorImpl(TDI) should get
    //all the attributes of CD's TDI. So, if the CD is for a user table's
    //character type column, then this call by RC.init should have CD's
    //collation attributes copied into RC along with other attributes.
    this.typeId = source.typeId;
    typeDescriptor = new TypeDescriptorImpl(source.typeDescriptor,
                        source.getPrecision(),
                        source.getScale(),
                        isNullable,
                        source.getMaximumWidth(),
                        source.getCollationType(),
View Full Code Here

Examples of org.apache.derby.catalog.types.TypeDescriptorImpl

                int scale,
                boolean isNullable,
                int maximumWidth)
  {
    this.typeId = source.typeId;
    typeDescriptor = new TypeDescriptorImpl(source.typeDescriptor,
                        precision,
                        scale,
                        isNullable,
                        maximumWidth,
                        source.getCollationType(),
View Full Code Here

Examples of org.apache.derby.catalog.types.TypeDescriptorImpl

   */
  public DataTypeDescriptor(DataTypeDescriptor source, boolean isNullable,
    int maximumWidth)
  {
    this.typeId = source.typeId;
    typeDescriptor = new TypeDescriptorImpl(source.typeDescriptor,
        source.getPrecision(),
        source.getScale(),
        isNullable,
        maximumWidth,
        source.getCollationType(),
View Full Code Here

Examples of org.apache.derby.catalog.types.TypeDescriptorImpl

   */
  public DataTypeDescriptor(TypeId typeId, int precision, int scale,
    boolean isNullable, int maximumWidth)
  {
    this.typeId = typeId;
    typeDescriptor = new TypeDescriptorImpl(typeId.getBaseTypeId(),
                        precision,
                        scale,
                        isNullable,
                        maximumWidth);
  }
View Full Code Here

Examples of org.apache.derby.catalog.types.TypeDescriptorImpl

  public DataTypeDescriptor(TypeId typeId, int precision, int scale,
    boolean isNullable, int maximumWidth, int collationType,
    int collationDerivation)
  {
    this.typeId = typeId;
    typeDescriptor = new TypeDescriptorImpl(typeId.getBaseTypeId(),
                        precision,
                        scale,
                        isNullable,
                        maximumWidth,
                        collationType);
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.