Code example for Connection

Methods: close, isClosed

0
 
	@Override 
	public void shutdown() throws PersistenceException { 
		analysisEntityManager.shutdown();
		try { 
			if(!this.connection.isClosed())
			{ 
				this.connection.close();
			} 
		} catch (SQLException e) {
			throw new PersistenceException(e);
		} 
	} 
 
}