Examples of DataTypeDescriptor


Examples of org.apache.derby.iapi.types.DataTypeDescriptor

  public ExecRow makeSYSSTATEMENTSrow(
    boolean        compileMe,
    SPSDescriptor    spsDescriptor
  ) throws StandardException
  {
    DataTypeDescriptor    dtd;
    ExecRow            row;
    DataValueDescriptor    col;
    String          name = null;
    UUID          uuid = null;
    String          uuidStr = null
View Full Code Here

Examples of org.apache.derby.iapi.types.DataTypeDescriptor

   */
  public void initialize(DataTypeDescriptor[] types) throws StandardException
  {
    for (int i = 0; i < parms.length; i++)
    {
      DataTypeDescriptor dtd = types[i];
     
      parms[i].initialize(dtd.getNull(),
          dtd.getJDBCTypeId(), dtd.getTypeId().getCorrespondingJavaTypeName());
    }
  }
View Full Code Here

Examples of org.apache.derby.iapi.types.DataTypeDescriptor

        }
        else
        {
            // column position is 1-based, index is 0-based.
            ColumnDescriptor colDesc = targetTD.getColumnDescriptor(columnNumber);
            DataTypeDescriptor colType = colDesc.getType();

            // Check for defaults
            DefaultInfoImpl defaultInfo = (DefaultInfoImpl) colDesc.getDefaultInfo();
     
      //Column has constant default value ,
View Full Code Here

Examples of org.apache.derby.iapi.types.DataTypeDescriptor

    {
      /* null parameters are represented by a java type name of "" */
      if (methodParms[i].getJavaTypeName().equals(""))
      {   
        /* Set the type information in the null constant node */
        DataTypeDescriptor dts = DataTypeDescriptor.getSQLDataTypeDescriptor(parmTypeNames[i]);
        ((SQLToJavaValueNode)methodParms[i]).value.setType(dts);

        /* Set the correct java type name */
        methodParms[i].setJavaTypeName(parmTypeNames[i]);
        signature[i] = methodParms[i].getJSQLType();
View Full Code Here

Examples of org.apache.derby.iapi.types.DataTypeDescriptor

    execute the callable statement. But with jdbc3.0, this information should be
    made available for return parameter through ParameterMetaData class.
    Parser sets a flag in compilercontext if ? = call. If the flag is set,
    we generate the metadata info for the return parameter and reset the flag
    in the compilercontext for future call statements*/
    DataTypeDescriptor dts = DataTypeDescriptor.getSQLDataTypeDescriptor(typeName);
    if (getCompilerContext().getReturnParameterFlag()) {
      getCompilerContext().getParameterTypes()[0] = dts;
    }
  }
View Full Code Here

Examples of org.apache.derby.iapi.types.DataTypeDescriptor

    ColumnDescriptor columnDescriptor =
      td.getColumnDescriptor(colName),
      newColumnDescriptor = null;
       
        // Get the type and change the nullability
    DataTypeDescriptor dataType =
            columnDescriptor.getType().getNullabilityType(nullability);

        //check if there are any unique constraints to update
        ConstraintDescriptorList cdl = dd.getConstraintDescriptors(td);
        int columnPostion = columnDescriptor.getPosition();
View Full Code Here

Examples of org.apache.derby.iapi.types.DataTypeDescriptor

        try {
            ReaderToUTF8Stream utfIn;
            ParameterValueSet pvs = getParms();
            // Need column width to figure out if truncation is needed
            DataTypeDescriptor dtd[] = preparedStatement
                    .getParameterTypes();
            int colWidth = dtd[parameterIndex - 1].getMaximumWidth();
            // Default to max column width. This will be used to limit the
            // amount of data read when operating on "lengthless" streams.
            int usableLength = colWidth;
View Full Code Here

Examples of org.apache.derby.iapi.types.DataTypeDescriptor

        try {
            RawToBinaryFormatStream rawStream;
            if (lengthLess) {
                // Force length to -1 for good measure.
                length = -1;
                DataTypeDescriptor dtd[] =
                    preparedStatement.getParameterTypes();
                rawStream = new RawToBinaryFormatStream(x,
                        dtd[parameterIndex -1].getMaximumWidth(),
                        dtd[parameterIndex -1].getTypeName());
            } else {
View Full Code Here

Examples of org.apache.derby.iapi.types.DataTypeDescriptor

          /* Check each parameter */
          match = true;
          for (int i = 0; i < parameterTypes.length; i++)
          {
            DataTypeDescriptor  oldType = parameterTypes[i];
            DataTypeDescriptor  newType  = newParamTypes[i];

            if (!oldType.isExactTypeAndLengthMatch(newType)) {
              match = false;
              break;
            }
            /*
            ** We could probably get away without checking nullability,
            ** since parameters are always nullable.
            */
            if (oldType.isNullable() != newType.isNullable()) {
              match = false;
              break;
            }
          }
        }
View Full Code Here

Examples of org.apache.derby.iapi.types.DataTypeDescriptor

    ColumnDescriptor columnDescriptor =
      td.getColumnDescriptor(colName),
      newColumnDescriptor = null;
       
        // Get the type and change the nullability
    DataTypeDescriptor dataType =
            columnDescriptor.getType().getNullabilityType(nullability);


    newColumnDescriptor =
       new ColumnDescriptor(colName,
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.