Package org.apache.derby.iapi.types

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


    {
      /* 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

    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

    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

        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

        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

          /* 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

    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

    if (desiredTypes == null)
    {
      desiredTypes = new DataTypeDescriptor[numCols];
      for (whichCol = 1; whichCol <= numCols; whichCol++)
      {
        DataTypeDescriptor dtd = resultDescription.getColumnDescriptor(whichCol).getType();

        desiredTypes[whichCol - 1] = dtd;
      }

    }
View Full Code Here

   */

  public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent)
          throws StandardException
  {
    DataTypeDescriptor    dtd;
    ExecRow            row;
    DataValueDescriptor    col;
    String          name = null;
    UUID            oid = null;
    String          uuid = null
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.types.DataTypeDescriptor

Copyright © 2018 www.massapicom. 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.