/** * PUBLIC: * Set the javax.resource.cci.ConnectionFactory. */ public void setConnectionFactoryObject(Object connectionFactory) { setConnectionFactory((ConnectionFactory)connectionFactory); }
/** * PUBLIC: * Set the javax.resource.cci.ConnectionFactory. */ public void setConnectionFactoryObject(Object connectionFactory) { setConnectionFactory((ConnectionFactory)connectionFactory); }
/** * PUBLIC: * Configure the login to connect through a non-managed connection factory and the default getConnection(). */ public void configureConnectionSpec(ConnectionFactory connectionFactory) { EISConnectionSpec spec = new EISConnectionSpec(); spec.setConnectionFactory(connectionFactory); setConnectionSpec(spec); }
/** * PUBLIC: * Configure the login to connect through a non-managed connection factory and the default getConnection(). */ public void configureConnectionSpec(ConnectionFactory connectionFactory) { EISConnectionSpec spec = new EISConnectionSpec(); spec.setConnectionFactory(connectionFactory); setConnectionSpec(spec); }
/** * PUBLIC: * Configure the login to connect through a non-managed connection factory and the default getConnection(). */ public void configureConnectionSpec(ConnectionFactory connectionFactory) { EISConnectionSpec spec = new EISConnectionSpec(); spec.setConnectionFactory(connectionFactory); setConnectionSpec(spec); }
/** * PUBLIC: * Configure the login to connect through a non-managed connection factory and adapter connection spec. */ public void configureConnectionSpec(ConnectionFactory connectionFactory, ConnectionSpec connectionSpec) { EISConnectionSpec spec = new EISConnectionSpec(); spec.setConnectionFactory(connectionFactory); spec.setConnectionSpec(connectionSpec); setConnectionSpec(spec); } }
/** * PUBLIC: * Configure the login to connect through a non-managed connection factory and adapter connection spec. */ public void configureConnectionSpec(ConnectionFactory connectionFactory, ConnectionSpec connectionSpec) { EISConnectionSpec spec = new EISConnectionSpec(); spec.setConnectionFactory(connectionFactory); spec.setConnectionSpec(connectionSpec); setConnectionSpec(spec); } }
/** * PUBLIC: * Configure the login to connect through a non-managed connection factory and adapter connection spec. */ public void configureConnectionSpec(ConnectionFactory connectionFactory, ConnectionSpec connectionSpec) { EISConnectionSpec spec = new EISConnectionSpec(); spec.setConnectionFactory(connectionFactory); spec.setConnectionSpec(connectionSpec); setConnectionSpec(spec); } }
/** * Connect with the specified properties and return the Connection. */ public Connection connectToDataSource(EISAccessor accessor, Properties properties) throws DatabaseException, ValidationException { ConnectionFactory connectionFactory = getConnectionFactory(); if (connectionFactory == null) { try { connectionFactory = (ConnectionFactory)getContext().lookup(getName()); setConnectionFactory(connectionFactory); } catch (Exception exception) { throw ValidationException.cannotAcquireDataSource(getName(), exception); } } try { accessor.setRecordFactory(connectionFactory.getRecordFactory()); if (getConnectionSpec() == null) { return connectionFactory.getConnection(); } else { return connectionFactory.getConnection(getConnectionSpec()); } } catch (ResourceException exception) { throw EISException.resourceException(exception, accessor, null); } }
/** * Connect with the specified properties and return the Connection. */ public Connection connectToDataSource(EISAccessor accessor, Properties properties) throws DatabaseException, ValidationException { ConnectionFactory connectionFactory = getConnectionFactory(); if (connectionFactory == null) { try { connectionFactory = (ConnectionFactory)getContext().lookup(getName()); setConnectionFactory(connectionFactory); } catch (Exception exception) { throw ValidationException.cannotAcquireDataSource(getName(), exception); } } try { accessor.setRecordFactory(connectionFactory.getRecordFactory()); if (getConnectionSpec() == null) { return connectionFactory.getConnection(); } else { return connectionFactory.getConnection(getConnectionSpec()); } } catch (ResourceException exception) { throw EISException.resourceException(exception, accessor, null); } }
/** * Connect with the specified properties and return the Connection. */ public Connection connectToDataSource(EISAccessor accessor, Properties properties) throws DatabaseException, ValidationException { ConnectionFactory connectionFactory = getConnectionFactory(); if (connectionFactory == null) { try { connectionFactory = (ConnectionFactory)getContext().lookup(getName()); setConnectionFactory(connectionFactory); } catch (Exception exception) { throw ValidationException.cannotAcquireDataSource(getName(), exception); } } try { accessor.setRecordFactory(connectionFactory.getRecordFactory()); if (getConnectionSpec() == null) { return connectionFactory.getConnection(); } else { return connectionFactory.getConnection(getConnectionSpec()); } } catch (ResourceException exception) { throw EISException.resourceException(exception, accessor, null); } }