Code example for Connection

Methods: createStatementisClosed

0
	 */ 
	public Statement createStatement() throws SQLException {
		if (connection == null) {
			throw new SQLException("Database not connected yet!");
		} 
		if (connection.isClosed()) {
			throw new SQLException("Connection closed!");
		} 
		return connection.createStatement();
	} 
 
	/** 
	 * Create a prepared statement 
	 *  
	 * @param string 
	 *            The statement 
	 * @return The prepared statement 
	 * @throws SQLException 
	 *             ? 
	 */