Searched refs:con (Results 1 - 25 of 62) sorted by relevance

123

/glassfish-3.1.2/tests/jbi/transactions/jse_only_ejbrollback1/webclient/client/
H A DClient.java76 Connection con = null;
78 con = ds.getConnection();
79 createTable(con, tableName);
88 updateTable(con, tableName, names[1], emails[1]);
93 if(isDataPresent(con, tableName)) {
110 dropTable(con, tableName);
115 if(con != null) con.close();
121 private void createTable(Connection con, String tableName) throws Exception { argument
123 boolean autoCommit = con
132 dropTable(Connection con, String tableName) argument
141 isDataPresent(Connection con, String tableName) argument
154 updateTable(Connection con, String tableName, String name, String email) argument
[all...]
/glassfish-3.1.2/tests/community/jdbc/jdbcusertx/src/java/util/
H A DTablesUtil.java56 Connection con = null;
60 con = ds1.getConnection();
61 stmt = con.createStatement();
76 if (con != null) {
77 con.close();
86 Connection con = null;
90 con = ds1.getConnection();
91 stmt = con.createStatement();
105 if (con != null) {
106 con
[all...]
/glassfish-3.1.2/tests/jbi/transactions/jse_only_ejbrollback/webclient/client/
H A DClient.java74 Connection con = null;
76 con = ds.getConnection();
77 con.setAutoCommit(true);
78 createTable(con, tableName);
93 if(isDataPresent(con, tableName)) {
109 dropTable(con, tableName);
114 if(con != null) con.close();
120 private void createTable(Connection con, String tableName) throws Exception { argument
121 System.out.println("**** auto commit = " + con
127 dropTable(Connection con, String tableName) argument
133 isDataPresent(Connection con, String tableName) argument
[all...]
/glassfish-3.1.2/tests/quicklook/jdbc/jdbcusertx/src/java/util/
H A DTablesUtil.java56 Connection con = null;
60 con = ds1.getConnection();
61 stmt = con.createStatement();
76 if (con != null) {
77 con.close();
86 Connection con = null;
90 con = ds1.getConnection();
91 stmt = con.createStatement();
105 if (con != null) {
106 con
[all...]
/glassfish-3.1.2/tests/jbi/transactions/jse_only_ejbcommit/endpoint/ejb/
H A DHelloEJB.java63 Connection con=null;
66 con = ds.getConnection();
67 System.out.println("**** auto commit = " + con.getAutoCommit());
69 updateTable(con, tableName, "Vikas", "vikas@sun.com");
70 readData(con, tableName);
75 if(con != null) con.close();
82 private void updateTable(Connection con, String tableName, String name, String email) throws Exception { argument
84 con.prepareStatement("INSERT INTO "+ tableName +" (NAME, EMAIL) VALUES(?,?)");
90 private void readData(Connection con, Strin argument
[all...]
/glassfish-3.1.2/tests/jbi/transactions/jse_only_ejbcommit1/endpoint/ejb/
H A DHelloEJB.java63 Connection con=null;
69 con = ds.getConnection();
70 System.out.println("**** auto commit = " + con.getAutoCommit());
72 updateTable(con, tableName, nameEntry, emailEntry);
73 readData(con, tableName);
78 if(con != null) con.close();
85 private void updateTable(Connection con, String tableName, String name, String email) throws Exception { argument
87 con.prepareStatement("INSERT INTO "+ tableName +" (NAME, EMAIL) VALUES(?,?)");
93 private void readData(Connection con, Strin argument
[all...]
/glassfish-3.1.2/tests/jbi/transactions/jse_only_ejbrollback/endpoint/ejb/
H A DHelloEJB.java63 Connection con=null;
66 con = ds.getConnection();
67 System.out.println("**** auto commit = " + con.getAutoCommit());
69 updateTable(con, tableName, "Vikas", "vikas@sun.com");
70 readData(con, tableName);
75 if(con != null) con.close();
82 private void updateTable(Connection con, String tableName, String name, String email) throws Exception { argument
84 con.prepareStatement("INSERT INTO "+ tableName +" (NAME, EMAIL) VALUES(?,?)");
90 private void readData(Connection con, Strin argument
[all...]
/glassfish-3.1.2/tests/jbi/transactions/jse_only_ejbrollback1/endpoint/ejb/
H A DHelloEJB.java63 Connection con=null;
69 con = ds.getConnection();
70 System.out.println("**** auto commit = " + con.getAutoCommit());
72 updateTable(con, tableName, nameEntry, emailEntry);
73 readData(con, tableName);
78 if(con != null) con.close();
85 private void updateTable(Connection con, String tableName, String name, String email) throws Exception { argument
87 con.prepareStatement("INSERT INTO "+ tableName +" (NAME, EMAIL) VALUES(?,?)");
93 private void readData(Connection con, Strin argument
[all...]
/glassfish-3.1.2/jdbc/jdbc-ra/jdbc-core/src/main/java/com/sun/gjc/spi/base/
H A DConnectionHolder.java64 protected Connection con; field in class:ConnectionHolder
117 * @param con <code>java.sql.Connection</code> object.
119 public ConnectionHolder(Connection con, ManagedConnection mc, argument
121 this.con = con;
138 return con;
173 * @param con <code>Connection</code> object.
176 public void associateConnection(Connection con, ManagedConnection mc) { argument
178 this.con = con;
[all...]
H A DDataSource.java113 ConnectionHolder con = (ConnectionHolder)
115 setConnectionType(con);
117 return con;
145 ConnectionHolder con = (ConnectionHolder)
147 setConnectionType(con);
148 return con;
160 * @param con Connection obtained from <code>Datasource.getConnection()</code>
165 public Connection getConnection(Connection con) throws SQLException { argument
167 Connection driverCon = con;
168 if (con instanceo
326 setConnectionType(ConnectionHolder con) argument
330 setConnectionType(ConnectionHolder con, boolean isNonTx) argument
[all...]
/glassfish-3.1.2/connectors/connectors-internal-api/src/main/java/org/glassfish/api/jdbc/validation/
H A DJDBC40ConnectionValidation.java62 * @param con <code>java.sql.Connection</code>to be validated
65 public boolean isConnectionValid(Connection con) { argument
68 isValid = con.isValid(0);
H A DDerbyConnectionValidation.java63 * @param con <code>java.sql.Connection</code>to be validated
66 public boolean isConnectionValid(Connection con) { argument
70 stmt = con.createStatement();
H A DOracleConnectionValidation.java64 * @param con <code>java.sql.Connection</code>to be validated
67 public boolean isConnectionValid(Connection con) { argument
71 stmt = con.createStatement();
H A DPostgresConnectionValidation.java64 * @param con <code>java.sql.Connection</code>to be validated
67 public boolean isConnectionValid(Connection con) { argument
71 stmt = con.createStatement();
/glassfish-3.1.2/jdbc/jdbc-ra/jdbc30/src/main/java/com/sun/gjc/spi/jdbc30/
H A DDatabaseMetaDataWrapper30.java56 * @param con Connection that is wrapped
59 public DatabaseMetaDataWrapper30(Connection con, DatabaseMetaData metaData) { argument
60 super(con, metaData);
H A DConnectionHolder30.java58 * @param con Connection that is wrapped
62 public ConnectionHolder30(Connection con, ManagedConnection mc, argument
64 super(con, mc, cxRequestInfo);
/glassfish-3.1.2/tests/jbi/transactions/jse_only_ejbcommit1/webclient/client/
H A DClient.java77 Connection con = ds.getConnection();
78 createTable(con, tableName);
88 updateTable(con, tableName, names[1], emails[1]);
94 if(!isDataUpdated(con, tableName, names, emails)) {
111 dropTable(con, tableName);
118 private void createTable(Connection con, String tableName) throws Exception { argument
120 boolean autoCommit = con.getAutoCommit();
121 con.setAutoCommit(true);
122 System.out.println("**** auto commit = " + con.getAutoCommit());
124 con
129 dropTable(Connection con, String tableName) argument
138 isDataUpdated(Connection con, String tableName, String[] names, String[] emails) argument
154 updateTable(Connection con, String tableName, String name, String email) argument
[all...]
/glassfish-3.1.2/tests/jbi/transactions/jse_only_ejbcommit/webclient/client/
H A DClient.java77 Connection con = ds.getConnection();
79 con.setAutoCommit(true);
80 createTable(con, tableName);
95 if(!isDataUpdated(con, tableName, nameEntry, emailEntry)) {
113 dropTable(con, tableName);
120 private void createTable(Connection con, String tableName) throws Exception { argument
121 System.out.println("**** auto commit = " + con.getAutoCommit());
123 con.prepareStatement("CREATE TABLE "+tableName+" (NAME VARCHAR(30) NOT NULL PRIMARY KEY, EMAIL VARCHAR(30))");
127 private void dropTable(Connection con, String tableName) throws Exception { argument
128 PreparedStatement pStmt = con
133 isDataUpdated(Connection con, String tableName, String name, String email) argument
[all...]
/glassfish-3.1.2/common/glassfish-api/src/main/java/org/glassfish/api/jdbc/
H A DConnectionValidation.java56 * @param con <code>java.sql.Connection</code>to be validated
59 boolean isConnectionValid(Connection con) throws SQLException; argument
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/
H A DConnectionDefDescriptor.java153 public void setConnectionIntf(String con) argument
155 connectionIntf = con;
169 public void setConnectionImpl(String con) argument
171 connectionImpl = con;
/glassfish-3.1.2/jdbc/jdbc-ra/jdbc40/src/main/java/com/sun/gjc/spi/jdbc40/
H A DConnectionHolder40.java77 * @param con Connection that is wrapped
81 public ConnectionHolder40(Connection con, ManagedConnection mc, argument
84 super(con, mc, cxRequestInfo);
125 return con.createClob();
146 return con.createBlob();
167 return con.createNClob();
188 return con.createSQLXML();
216 return con.isValid(timeout);
282 con.setClientInfo(name, value);
324 con
[all...]
/glassfish-3.1.2/common/glassfish-api/src/main/java/com/sun/appserv/jdbc/
H A DDataSource.java56 Connection con = ds.getConnection();
57 Connection drivercon = ds.getConnection(con);
61 con.close();
73 * @param con Connection obtained from <code>Datasource.getConnection()</code>
77 public Connection getConnection(Connection con) throws SQLException; argument
115 Connection con = ds.getConnection();
118 stmt = con.createStatement();
121 dataSource.markConnectionAsBad(con) //marking it as bad for removal
124 con.close(); //Connection will be destroyed while close or Tx completion
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/node/connector/
H A DConnectionDefNode.java165 ConnectionDefDescriptor con = (ConnectionDefDescriptor) connectionDefs.next();
167 appendTextChild(conNode, ConnectorTagNames.MANAGED_CONNECTION_FACTORY, con.getManagedConnectionFactoryImpl());
170 conNode = config.writeDescriptor(conNode, con);
172 appendTextChild(conNode, ConnectorTagNames.CONNECTION_FACTORY_INTF, con.getConnectionFactoryIntf());
173 appendTextChild(conNode, ConnectorTagNames.CONNECTION_FACTORY_IMPL, con.getConnectionFactoryImpl());
174 appendTextChild(conNode, ConnectorTagNames.CONNECTION_INTF, con.getConnectionIntf());
175 appendTextChild(conNode, ConnectorTagNames.CONNECTION_IMPL, con.getConnectionImpl());
/glassfish-3.1.2/jbi/serviceengine/sun-javaee-engine/src/main/java/com/sun/enterprise/jbi/serviceengine/bridge/transport/
H A DJBIAdapter.java69 private NMRServerConnection con; field in class:JBIAdapter
87 con = new NMRServerConnection(me, endpt);
108 con.handleException(ex);
135 Packet packet = con.receiveRequest();
137 packet = head.process(packet,con,this);
149 con.sendResponse(packet);
H A DJBITransportPipe.java99 NMRClientConnection con =
102 con.initialize();
103 con.sendRequest(request);
107 reply = con.receiveResponse(request);
109 final NMRClientConnection fcon = con;
120 con.sendStatus();

Completed in 180 milliseconds

123