Examples of assignableTo()


Examples of org.apache.derby.iapi.services.loader.ClassInspector.assignableTo()

          if (routineInfo != null) {
            continue; // probably should be only for INOUT/OUT parameters.
          }

          if (SanityManager.DEBUG) {
            SanityManager.ASSERT(classInspector.assignableTo(argumentType, parameterType),
              "Argument type " + argumentType + " is not assignable to parameter " + parameterType);
          }

          /*
          ** Set the parameter type in case the argument type is narrower
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassInspector.assignableTo()

    {
      throw StandardException.newException(SQLState.LANG_TYPE_DOESNT_EXIST, reason, columnTypeName,
                                name);
    }

    if (! classInspector.assignableTo(columnTypeName,
                      "java.io.Serializable"&&
            // Before Java2, SQLData is not defined, assignableTo call returns false
            ! classInspector.assignableTo(columnTypeName,"java.sql.SQLData"))
        {
      getCompilerContext().addWarning(
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassInspector.assignableTo()

    }

    if (! classInspector.assignableTo(columnTypeName,
                      "java.io.Serializable"&&
            // Before Java2, SQLData is not defined, assignableTo call returns false
            ! classInspector.assignableTo(columnTypeName,"java.sql.SQLData"))
        {
      getCompilerContext().addWarning(
        StandardException.newWarning(SQLState.LANG_TYPE_NOT_SERIALIZABLE, columnTypeName,
                                 name));
    }
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassInspector.assignableTo()

   * @exception StandardException    Thrown on error
   */
  protected boolean assignableTo(String toClassName) throws StandardException
  {
    ClassInspector classInspector = getClassFactory().getClassInspector();
    return classInspector.assignableTo(javaClassName, toClassName);
  }


  /**
   * Is this class have a public method with the specified signiture
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassInspector.assignableTo()

          if (routineInfo != null) {
            continue; // probably should be only for INOUT/OUT parameters.
          }

          if (SanityManager.DEBUG) {
            SanityManager.ASSERT(classInspector.assignableTo(argumentType, parameterType),
              "Argument type " + argumentType + " is not assignable to parameter " + parameterType);
          }

          /*
          ** Set the parameter type in case the argument type is narrower
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassInspector.assignableTo()

    // RESOLVE DJDOI - this looks wrong, why should the then expression
    // be comparable to the then expression ??
    if (! thenExpression.getTypeCompiler().
       comparable(elseExpression.getTypeId(), false, getClassFactory()) &&
      ! cu.assignableTo(thenExpression.getTypeId().getCorrespondingJavaTypeName(),
                elseExpression.getTypeId().getCorrespondingJavaTypeName()) &&
      ! cu.assignableTo(elseExpression.getTypeId().getCorrespondingJavaTypeName(),
                thenExpression.getTypeId().getCorrespondingJavaTypeName()))
    {
      throw StandardException.newException(SQLState.LANG_NOT_TYPE_COMPATIBLE,
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassInspector.assignableTo()

    // be comparable to the then expression ??
    if (! thenExpression.getTypeCompiler().
       comparable(elseExpression.getTypeId(), false, getClassFactory()) &&
      ! cu.assignableTo(thenExpression.getTypeId().getCorrespondingJavaTypeName(),
                elseExpression.getTypeId().getCorrespondingJavaTypeName()) &&
      ! cu.assignableTo(elseExpression.getTypeId().getCorrespondingJavaTypeName(),
                thenExpression.getTypeId().getCorrespondingJavaTypeName()))
    {
      throw StandardException.newException(SQLState.LANG_NOT_TYPE_COMPATIBLE,
            thenExpression.getTypeId().getSQLTypeName(),
            elseExpression.getTypeId().getSQLTypeName()
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassInspector.assignableTo()

    {
      throw StandardException.newException(SQLState.LANG_TYPE_DOESNT_EXIST, reason, columnTypeName,
                                name);
    }

    if (! classInspector.assignableTo(columnTypeName,
                      "java.io.Serializable"&&
            // Before Java2, SQLData is not defined, assignableTo call returns false
            ! classInspector.assignableTo(columnTypeName,"java.sql.SQLData"))
        {
      getCompilerContext().addWarning(
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassInspector.assignableTo()

    }

    if (! classInspector.assignableTo(columnTypeName,
                      "java.io.Serializable"&&
            // Before Java2, SQLData is not defined, assignableTo call returns false
            ! classInspector.assignableTo(columnTypeName,"java.sql.SQLData"))
        {
      getCompilerContext().addWarning(
        StandardException.newWarning(SQLState.LANG_TYPE_NOT_SERIALIZABLE, columnTypeName,
                                 name));
    }
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassInspector.assignableTo()

      ClassInspector    cu = cf.getClassInspector();

      TypeId thisCompType = (TypeId) thisType;
      TypeId otherCompType = (TypeId) otherType;

      if (cu.assignableTo(thisCompType.getCorrespondingJavaTypeName(),
                  otherCompType.getCorrespondingJavaTypeName()))
      {
        higherType = otherDTS;
      }
      else
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.