Searched refs:DataSource (Results 1 - 25 of 66) sorted by relevance

123

/glassfish-3.1.2/tests/community/jdbc/jdbcusertx/src/java/test/
H A DSimpleTest.java50 import javax.sql.DataSource;
57 Map<String,Boolean> runTest(DataSource ds, PrintWriter out);
H A DLeakTest.java52 import javax.sql.DataSource;
64 public Map<String, Boolean> runTest(DataSource ds1, PrintWriter out) {
78 private boolean checkForNoLeak(DataSource ds1, PrintWriter out) {
/glassfish-3.1.2/tests/quicklook/jdbc/jdbcusertx/src/java/test/
H A DSimpleTest.java50 import javax.sql.DataSource;
57 Map<String,Boolean> runTest(DataSource ds, PrintWriter out);
H A DLeakTest.java52 import javax.sql.DataSource;
64 public Map<String, Boolean> runTest(DataSource ds1, PrintWriter out) {
78 private boolean checkForNoLeak(DataSource ds1, PrintWriter out) {
/glassfish-3.1.2/common/glassfish-api/src/main/java/com/sun/appserv/jdbc/
H A DDataSource.java47 * The <code>javax.sql.DataSource</code> implementation of SunONE application
55 com.sun.appserv.DataSource ds = (com.sun.appserv.DataSOurce) ic.lookup("jdbc/PointBase");
66 public interface DataSource extends javax.sql.DataSource { interface in inherits:javax.sql.DataSource
113 com.sun.appserv.jdbc.DataSource ds=
114 (com.sun.appserv.jdbc.DataSource)context.lookup("dataSource");
/glassfish-3.1.2/tests/community/web/jsfinjection/src/java/
H A DTestBean.java43 import javax.sql.DataSource;
51 private DataSource ds;
H A DFilterTest.java46 import javax.sql.DataSource;
52 private @Resource(name="jdbc/__default") DataSource ds;
53 // private DataSource ds;
/glassfish-3.1.2/persistence/jpa-connector/src/main/java/org/glassfish/persistence/jpa/
H A DProviderContainerContractInfoBase.java48 import javax.sql.DataSource;
70 public DataSource lookupDataSource(String dataSourceName) throws NamingException {
71 return DataSource.class.cast(PersistenceHelper.lookupPMResource(connectorRuntime, context, dataSourceName) );
75 public DataSource lookupNonTxDataSource(String dataSourceName) throws NamingException {
76 return DataSource.class.cast(PersistenceHelper.lookupNonTxResource(connectorRuntime, context, dataSourceName) );
H A DProviderContainerContractInfo.java45 import javax.sql.DataSource;
88 * Looks up DataSource with JNDI name given by <code>dataSourceName</code>
90 * @return DataSource with JNDI name given by <code>dataSourceName</code>
93 DataSource lookupDataSource(String dataSourceName) throws NamingException;
96 * Looks up Non transactional DataSource with JNDI name given by <code>dataSourceName</code>
98 * @return Non transactional DataSource with JNDI name given by <code>dataSourceName</code>
101 DataSource lookupNonTxDataSource(String dataSourceName) throws NamingException;
130 * @return JTA DataSource override if any
/glassfish-3.1.2/tests/quicklook/web/jsfinjection/src/java/
H A DTestBean.java43 import javax.sql.DataSource;
51 private DataSource ds;
H A DFilterTest.java46 import javax.sql.DataSource;
52 private @Resource(name="jdbc/__default") DataSource ds;
53 // private DataSource ds;
/glassfish-3.1.2/persistence/common/src/main/java/org/glassfish/persistence/common/
H A DPersistenceHelper.java49 import javax.sql.DataSource;
58 public static DataSource lookupNonTxResource(ConnectorRuntime connectorRuntime, DeploymentContext ctx, String dataSourceName) throws NamingException {
59 return DataSource.class.cast(connectorRuntime.lookupNonTxResource(getResourceInfo(ctx, dataSourceName), true));
62 public static DataSource lookupPMResource(ConnectorRuntime connectorRuntime, DeploymentContext ctx, String dataSourceName) throws NamingException {
63 return DataSource.class.cast(connectorRuntime.lookupPMResource(getResourceInfo(ctx, dataSourceName), true));
/glassfish-3.1.2/jdbc/jdbc-ra/jdbc30/src/main/java/com/sun/gjc/spi/jdbc30/
H A DDataSource30.java55 public class DataSource30 extends com.sun.gjc.spi.base.DataSource {
59 * Constructs <code>DataSource</code> object. This is created by the
/glassfish-3.1.2/tests/osgi-javaee/osgi-web/hybridapp1/src/main/java/sahoo/hybridapp/example1/impl/
H A DActivator.java47 import javax.sql.DataSource;
63 private DataSource ds;
72 ds = (DataSource) ctx.lookup(dsName);
/glassfish-3.1.2/verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/persistence/
H A DAVKPersistenceUnitInfoImpl.java46 import javax.sql.DataSource;
94 public DataSource lookupDataSource(String dataSourceName) throws NamingException
99 public DataSource lookupNonTxDataSource(String dataSourceName) throws NamingException
/glassfish-3.1.2/jdbc/jdbc-ra/jdbc-core/src/main/java/com/sun/gjc/spi/
H A DDSManagedConnectionFactory.java65 connectionFactory = javax.sql.DataSource.class,
66 connectionFactoryImpl = com.sun.gjc.spi.base.DataSource.class,
72 private transient javax.sql.DataSource dataSourceObj;
87 * on the <code>DataSource</code> object
90 * <code>DataSource</code> object used for the
102 javax.sql.DataSource dataSource = getDataSource();
157 * @return DataSource of jdbc vendor
160 public javax.sql.DataSource getDataSource() throws ResourceException {
163 dataSourceObj = (javax.sql.DataSource) super.getDataSource();
/glassfish-3.1.2/tests/embedded/mysql/src/main/java/org/glassfish/tests/embedded/web/
H A DMySqlTestServlet.java53 import javax.sql.DataSource;
83 DataSource myDB;
86 DataSource myEmbeddedDB;
/glassfish-3.1.2/persistence/cmp/support-sqlstore/src/main/java/com/sun/jdo/spi/persistence/support/sqlstore/ejb/
H A DTransactionHelperImpl.java200 * This is a generic implementation for the case of javax.sql.DataSource as
213 if (resource instanceof javax.sql.DataSource) {
214 javax.sql.DataSource ds = (javax.sql.DataSource)resource;
H A DDeploymentHelper.java54 import javax.sql.DataSource;
156 DataSource ds = null;
159 ds = DataSource.class.cast(connectorRuntime.lookupNonTxResource(name, true));
H A DSunTransactionHelper.java58 import com.sun.appserv.jdbc.DataSource;
196 * SunTransactionHelper specific code uses com.sun.appserv.jdbc.DataSource
211 // resource is expected to be com.sun.appserv.jdbc.DataSource
212 if (resource instanceof DataSource) {
213 DataSource ds = (DataSource)resource;
/glassfish-3.1.2/tests/community/jdbc/jdbcusertx/src/java/util/
H A DTablesUtil.java47 import javax.sql.DataSource;
55 public static void createTables(DataSource ds1, PrintWriter out, String tableName, String columnName) {
85 public static void deleteTables(DataSource ds1, PrintWriter out, String tableName) {
114 public static boolean verifyTableContent(DataSource ds1, PrintWriter out, String tableName, String columnName, String content) {
/glassfish-3.1.2/tests/quicklook/jdbc/jdbcusertx/src/java/util/
H A DTablesUtil.java47 import javax.sql.DataSource;
55 public static void createTables(DataSource ds1, PrintWriter out, String tableName, String columnName) {
85 public static void deleteTables(DataSource ds1, PrintWriter out, String tableName) {
114 public static boolean verifyTableContent(DataSource ds1, PrintWriter out, String tableName, String columnName, String content) {
/glassfish-3.1.2/tests/jbi/transactions/jse_only_ejbcommit/endpoint/ejb/
H A DHelloEJB.java51 import javax.sql.DataSource;
58 @Resource(mappedName="jdbc/__default") private DataSource ds;
/glassfish-3.1.2/tests/jbi/transactions/jse_only_ejbcommit1/endpoint/ejb/
H A DHelloEJB.java51 import javax.sql.DataSource;
58 @Resource(mappedName="jdbc/__default") private DataSource ds;
/glassfish-3.1.2/tests/jbi/transactions/jse_only_ejbrollback/endpoint/ejb/
H A DHelloEJB.java51 import javax.sql.DataSource;
58 @Resource(mappedName="jdbc/__default") private DataSource ds;

Completed in 27 milliseconds

123