Examples of ResourceException


Examples of javax.resource.ResourceException

  public DescribeSObjectResult getObjectMetaData(String objectName) throws ResourceException {
    try {
      return sfSoap.describeSObject(objectName, sh);
    } catch (com.sforce.soap.partner.InvalidSObjectFault e) {
      throw new ResourceException(e);
    } catch (com.sforce.soap.partner.UnexpectedErrorFault e) {
      throw new ResourceException(e);
    }
  }
View Full Code Here

Examples of javax.resource.ResourceException

  }

  @Override
  public void associateConnection(Object handle) throws ResourceException {
    if (!(handle instanceof WrappedConnection)) {
      throw new ResourceException("Wrong connection supplied to assosiate"); //$NON-NLS-1$
    }
    ((WrappedConnection)handle).setManagedConnection(this);
    synchronized (this.handles) {
      this.handles.add((WrappedConnection)handle);
    }
View Full Code Here

Examples of javax.resource.ResourceException

    }
  }
 
   Connection getConnection() throws ResourceException {
      if (this.physicalConnection == null)
         throw new ResourceException("Connection has been destroyed!!!"); //$NON-NLS-1$
      return this.physicalConnection;
  
View Full Code Here

Examples of javax.resource.ResourceException

 
    public static <T> T getInstance(Class<T> expectedType, String className, Collection ctorObjs, Class defaultClass) throws ResourceException {
      try {
        if (className == null) {
          if (defaultClass == null) {
            throw new ResourceException("Neither class name or default class specified to create an instance"); //$NON-NLS-1$
          }
          return expectedType.cast(defaultClass.newInstance());
        }
        return expectedType.cast(ReflectionHelper.create(className, ctorObjs, Thread.currentThread().getContextClassLoader()));
    } catch (TeiidException e) {
      throw new ResourceException(e);
    } catch (IllegalAccessException e) {
      throw new ResourceException(e);
    } catch(InstantiationException e) {
      throw new ResourceException(e);
    }     
    }
View Full Code Here

Examples of javax.resource.ResourceException

  @Override
  public abstract BasicConnection getConnection() throws ResourceException;
 
  @Override
  public BasicConnection getConnection(ConnectionSpec arg0) throws ResourceException {
    throw new ResourceException("This operation not supported"); //$NON-NLS-1$;
  }
View Full Code Here

Examples of javax.resource.ResourceException

    throw new ResourceException("This operation not supported"); //$NON-NLS-1$;
  }

  @Override
  public ResourceAdapterMetaData getMetaData() throws ResourceException {
    throw new ResourceException("This operation not supported"); //$NON-NLS-1$;
  }
View Full Code Here

Examples of javax.resource.ResourceException

    throw new ResourceException("This operation not supported"); //$NON-NLS-1$;
  }

  @Override
  public RecordFactory getRecordFactory() throws ResourceException {
    throw new ResourceException("This operation not supported"); //$NON-NLS-1$
  }
View Full Code Here

Examples of javax.resource.ResourceException

public abstract class BasicConnection implements Connection {

  @Override
  public Interaction createInteraction() throws ResourceException {
    throw new ResourceException("This operation not supported"); //$NON-NLS-1$
  }
View Full Code Here

Examples of javax.resource.ResourceException

    return null;
  }

  @Override
  public ConnectionMetaData getMetaData() throws ResourceException {
    throw new ResourceException("This operation not supported"); //$NON-NLS-1$
  }
View Full Code Here

Examples of javax.resource.ResourceException

    throw new ResourceException("This operation not supported"); //$NON-NLS-1$
  }

  @Override
  public ResultSetInfo getResultSetInfo() throws ResourceException {
    throw new ResourceException("This operation not supported"); //$NON-NLS-1$
  }
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.