Package org.apache.derby.iapi.sql

Examples of org.apache.derby.iapi.sql.ResultColumnDescriptor


     * @param column the first column is 1, the second is 2, ...
     * @return column name
   * @exception SQLException thrown on failure
     */
  public String getColumnName(int column) throws SQLException  {
    ResultColumnDescriptor cd = columnInfo[column - 1];
    String s = cd.getName();
    // database returns null when no column name to differentiate from empty name
      return (s==null? "" : s);

  }
View Full Code Here


     * @param column the first column is 1, the second is 2, ...
     * @return schema name or "" if not applicable
   * @exception SQLException thrown on failure
     */
  public String getSchemaName(int column) throws SQLException  {
    ResultColumnDescriptor cd = columnInfo[column - 1];

    String s = cd.getSchemaName();
    // database returns null when no schema name to differentiate from empty name
    return (s==null? "" : s);
  }
View Full Code Here

     *
     * @return table name or "" if not applicable
   * @exception SQLException thrown on failure
     */
  public String getTableName(int column) throws SQLException {
    ResultColumnDescriptor cd = columnInfo[column - 1];
    String s = cd.getSourceTableName();

    // database returns null when no table name to differentiate from empty name
    return (s==null? "" : s);
  }
View Full Code Here

  public DataTypeDescriptor getColumnTypeDescriptor(int column) throws SQLException
  {
    validColumnNumber(column);

    ResultColumnDescriptor cd = columnInfo[column - 1];

    return cd.getType();
  }
View Full Code Here

    return makeResultDescriptors(ec);
  }

  ResultColumnDescriptor[] makeResultDescriptors(ExecutionContext ec)
  {
      ResultColumnDescriptor colDescs[] = new ResultColumnDescriptor[size()];
    int size = size();

    for (int index = 0; index < size; index++)
    {
        // the ResultColumn nodes are descriptors, so take 'em...
View Full Code Here

        new NumberDataValue[rla.length];
      for (int i = 0; i < resultDescription.getColumnCount(); i++)
      {
        if (rla[i] == null)
          continue;
        ResultColumnDescriptor rcd =
          resultDescription.getColumnDescriptor(i + 1);
        aiCache[i] = (NumberDataValue)rcd.getType().getNull();
      }
    }

    if (insertMode != null)
    {
View Full Code Here

        new NumberDataValue[rla.length];
      for (int i = 0; i < resultDescription.getColumnCount(); i++)
      {
        if (rla[i] == null)
          continue;
        ResultColumnDescriptor rcd =
          resultDescription.getColumnDescriptor(i + 1);
        aiCache[i] = (NumberDataValue)rcd.getType().getNull();
      }
    }

    if (insertMode != null)
    {
View Full Code Here

        new NumberDataValue[rla.length];
      for (int i = 0; i < resultDescription.getColumnCount(); i++)
      {
        if (rla[i] == null)
          continue;
        ResultColumnDescriptor rcd =
          resultDescription.getColumnDescriptor(i + 1);
        aiCache[i] = (NumberDataValue)rcd.getType().getNull();
      }
    }

    if (insertMode != null)
    {
View Full Code Here

    return makeResultDescriptors(ec);
  }

  ResultColumnDescriptor[] makeResultDescriptors(ExecutionContext ec)
  {
      ResultColumnDescriptor colDescs[] = new ResultColumnDescriptor[size()];
    int size = size();

    for (int index = 0; index < size; index++)
    {
        // the ResultColumn nodes are descriptors, so take 'em...
View Full Code Here

   *
   * @return  A ResultDescription for this ResultSetNode.
   */
  public ResultColumnDescriptor[] makeResultDescriptors()
  {
      ResultColumnDescriptor colDescs[] = new ResultColumnDescriptor[size()];
    int size = size();

    for (int index = 0; index < size; index++)
    {
        // the ResultColumn nodes are descriptors, so take 'em...
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.sql.ResultColumnDescriptor

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.