Examples of MethodFactory


Examples of net.sf.rej.java.MethodFactory

        AccessFlags flags = new AccessFlags(field.modifiers());
        Field fieldToAdd = fieldFactory.createField(cf, flags, cp.optionalAddUtf8(field.name()), cp.optionalAddUtf8(field.signature()));
        cf.add(fieldToAdd);
      }
     
      MethodFactory methodFactory = new MethodFactory();
      for (IMethod method : rt.visibleMethods()) {
        AccessFlags flags = new AccessFlags(method.modifiers());
        net.sf.rej.java.Method methodToAdd = methodFactory.createMethod(cf, flags, cp.optionalAddUtf8(method.name()), cp.optionalAddUtf8(method.signature()), cp.optionalAddUtf8("Code"), 0, 0, cp.optionalAddUtf8("Exceptions"), new ArrayList<ExceptionDescriptor>());
        cf.add(methodToAdd);
      }

      SystemFacade.getInstance().setStatus("Class definition pulled from VM: " + sf.location().declaringType().name());
      Event event = new Event(EventType.CLASS_OPEN);
View Full Code Here

Examples of org.apache.derby.iapi.store.access.conglomerate.MethodFactory

    Properties              properties,
    int                     temporaryFlag)
    throws StandardException
  {
    // Find the appropriate factory for the desired implementation.
    MethodFactory mfactory;
    mfactory = accessmanager.findMethodFactoryByImpl(implementation);
    if (mfactory == null || !(mfactory instanceof ConglomerateFactory))
        {
      throw StandardException.newException(
                    SQLState.AM_NO_SUCH_CONGLOMERATE_TYPE, implementation);
View Full Code Here

Examples of org.apache.derby.iapi.store.access.conglomerate.MethodFactory

    if (implementation == null)
      implementation = AccessFactoryGlobals.SORT_EXTERNAL;

    // Find the appropriate factory for the desired implementation.
    MethodFactory mfactory;
    mfactory = accessmanager.findMethodFactoryByImpl(implementation);
    if (mfactory == null || !(mfactory instanceof SortFactory))
        {
      throw(
              StandardException.newException(
View Full Code Here

Examples of org.apache.derby.iapi.store.access.conglomerate.MethodFactory

    if (implementation == null)
      implementation = AccessFactoryGlobals.SORT_EXTERNAL;

    // Find the appropriate factory for the desired implementation.
    MethodFactory mfactory;
    mfactory = accessmanager.findMethodFactoryByImpl(implementation);
    if (mfactory == null || !(mfactory instanceof SortFactory))
        {
      throw(
              StandardException.newException(
View Full Code Here

Examples of org.apache.derby.iapi.store.access.conglomerate.MethodFactory

        // System.out.println("before new code.");

        conglom_map = new ConglomerateFactory[2];

    // Find the appropriate factory for the desired implementation.
    MethodFactory mfactory = findMethodFactoryByImpl("heap");

    if (mfactory == null || !(mfactory instanceof ConglomerateFactory))
        {
      throw StandardException.newException(
                    SQLState.AM_NO_SUCH_CONGLOMERATE_TYPE, "heap");
View Full Code Here

Examples of org.apache.derby.iapi.store.access.conglomerate.MethodFactory

    Find an access method that implements a format type.
    @see AccessFactory#findMethodFactoryByFormat
    **/
    public MethodFactory findMethodFactoryByFormat(UUID format)
    {
        MethodFactory factory;
       
        // See if there's an access method that supports the desired
        // format type as its primary format type.
        factory = (MethodFactory) formathash.get(format);
        if (factory != null)
            return factory;

        // No primary format.  See if one of the access methods
        // supports it as a secondary format.
        Enumeration e = formathash.elements();
        while (e.hasMoreElements())
        {
            factory = (MethodFactory) e.nextElement();
            if (factory.supportsFormat(format))
                return factory;
        }

        // No such implementation.
        return null;
View Full Code Here

Examples of org.apache.derby.iapi.store.access.conglomerate.MethodFactory

    public MethodFactory findMethodFactoryByImpl(String impltype)
        throws StandardException
    {
        // See if there's an access method that supports the desired
        // implementation type as its primary implementation type.
        MethodFactory factory = (MethodFactory) implhash.get(impltype);
        if (factory != null)
        return factory;

        // No primary implementation.  See if one of the access methods
        // supports the implementation type as a secondary.
        Enumeration e = implhash.elements();
        while (e.hasMoreElements())
        {
            factory = (MethodFactory) e.nextElement();
            if (factory.supportsImplementation(impltype))
                return factory;
        }
    factory = null;

    // try and load an implementation.  a new properties object needs
View Full Code Here

Examples of org.apache.derby.iapi.store.access.conglomerate.MethodFactory

    public MethodFactory findMethodFactoryByImpl(String impltype)
        throws StandardException
    {
        // See if there's an access method that supports the desired
        // implementation type as its primary implementation type.
        MethodFactory factory = (MethodFactory) implhash.get(impltype);
        if (factory != null)
        return factory;

        // No primary implementation.  See if one of the access methods
        // supports the implementation type as a secondary.
        Enumeration e = implhash.elements();
        while (e.hasMoreElements())
        {
            factory = (MethodFactory) e.nextElement();
            if (factory.supportsImplementation(impltype))
                return factory;
        }
    factory = null;

    // try and load an implementation.  a new properties object needs
View Full Code Here

Examples of org.apache.derby.iapi.store.access.conglomerate.MethodFactory

    Properties              properties,
    int                     temporaryFlag)
    throws StandardException
  {
    // Find the appropriate factory for the desired implementation.
    MethodFactory mfactory;
    mfactory = accessmanager.findMethodFactoryByImpl(implementation);
    if (mfactory == null || !(mfactory instanceof ConglomerateFactory))
        {
      throw StandardException.newException(
                    SQLState.AM_NO_SUCH_CONGLOMERATE_TYPE, implementation);
View Full Code Here

Examples of org.apache.derby.iapi.store.access.conglomerate.MethodFactory

    if (implementation == null)
      implementation = AccessFactoryGlobals.SORT_EXTERNAL;

    // Find the appropriate factory for the desired implementation.
    MethodFactory mfactory;
    mfactory = accessmanager.findMethodFactoryByImpl(implementation);
    if (mfactory == null || !(mfactory instanceof SortFactory))
        {
      throw(
              StandardException.newException(
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.