Examples of ClassFactory


Examples of org.apache.derby.iapi.services.loader.ClassFactory

      break;

    default:
    {

      ClassFactory cf = lcc.getLanguageConnectionFactory().getClassFactory();

      Class realClass = null;
      try
      {
        // Does the class exist?
        realClass = cf.loadApplicationClass(checkClassName);
      }
      catch (ClassNotFoundException t)
      {
        throw StandardException.newException(SQLState.LANG_TYPE_DOESNT_EXIST2, t, checkClassName);
      }
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassFactory

      /*
      ** Check type compatability.  We want to make sure that
      ** the types are assignable in either direction
      ** and they are comparable.
      */
      ClassFactory cf = getClassFactory();
      if (
        !thisExpr.getTypeCompiler().storable(otherTypeId, cf) &&
        !otherExpr.getTypeCompiler().storable(thisTypeId, cf))
      {
        throw StandardException.newException(SQLState.LANG_NOT_UNION_COMPATIBLE,
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassFactory

    String        inputTypeName = null;
    Class        inputInterfaceClass = null;
    String        inputInterfaceName = null;
    DataTypeDescriptor   dts = null;
    TypeDescriptor     resultType = null;
    ClassFactory    cf;

    cf = getClassFactory();
    classInspector = cf.getClassInspector();

    instantiateAggDef();

    /* Add ourselves to the aggregateVector before we do anything else */
    aggregateVector.addElement(this);
 
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassFactory

      }

      TypeId typeId = columnDescriptor.getType().getTypeId();

      // Don't allow a column to be created on a non-orderable type
      ClassFactory cf = lcc.getLanguageConnectionFactory().getClassFactory();
      boolean isIndexable = typeId.orderable(cf);

      if (isIndexable && typeId.userType()) {
        String userClass = typeId.getCorrespondingJavaTypeName();

        // Don't allow indexes to be created on classes that
        // are loaded from the database. This is because recovery
        // won't be able to see the class and it will need it to
        // run the compare method.
        try {
          if (cf.isApplicationClass(cf.loadApplicationClass(userClass)))
            isIndexable = false;
        } catch (ClassNotFoundException cnfe) {
          // shouldn't happen as we just check the class is orderable
          isIndexable = false;
        }
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassFactory

    SchemaDescriptor sd = dd.getSchemaDescriptor(schemaName, null, true);
    return dd.getFileInfoDescriptor(sd,sqlName);
  }

  private void notifyLoader(boolean reload) throws StandardException {
    ClassFactory cf = lcc.getLanguageConnectionFactory().getClassFactory();
    cf.notifyModifyJar(reload);
  }
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassFactory

          SubqueryList    subqueryList,
          Vector        aggregateVector)
      throws StandardException
  {
    DataTypeDescriptor   dts = null;
    ClassFactory    cf;

    cf = getClassFactory();
    classInspector = cf.getClassInspector();

    instantiateAggDef();

    /* Add ourselves to the aggregateVector before we do anything else */
    aggregateVector.addElement(this);
 
View Full Code Here

Examples of org.apache.derby.iapi.services.loader.ClassFactory

      /*
      ** Check type compatability.  We want to make sure that
      ** the types are assignable in either direction
      ** and they are comparable.
      */
      ClassFactory cf = getClassFactory();
      if (
        !thisExpr.getTypeCompiler().storable(otherTypeId, cf) &&
        !otherExpr.getTypeCompiler().storable(thisTypeId, cf))
      {
        throw StandardException.newException(SQLState.LANG_NOT_UNION_COMPATIBLE,
View Full Code Here

Examples of org.apache.hivemind.service.ClassFactory

        verifyControls();
    }

    public void testPassThruToPlaceholder()
    {
        ClassFactory cf = new ClassFactoryImpl();
        DefaultImplementationBuilderImpl dib = new DefaultImplementationBuilderImpl();

        dib.setClassFactory(cf);

        MockControl moduleControl = newControl(Module.class);
View Full Code Here

Examples of org.apache.hivemind.service.ClassFactory

        verifyControls();
    }

    public void testFilterChain()
    {
        ClassFactory cf = new ClassFactoryImpl();
        DefaultImplementationBuilderImpl dib = new DefaultImplementationBuilderImpl();

        dib.setClassFactory(cf);

        MockControl moduleControl = newControl(Module.class);
View Full Code Here

Examples of org.apache.hivemind.service.ClassFactory

        verifyControls();
    }

    public void testPipelineFactoryWithTerminator()
    {
        ClassFactory cf = new ClassFactoryImpl();
        DefaultImplementationBuilderImpl dib = new DefaultImplementationBuilderImpl();

        dib.setClassFactory(cf);

        MockControl moduleControl = newControl(Module.class);
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.