Code example for PreparedStatement

Methods: executeBatch

0
	protected void addWorkContentRelationsRecord(Content content, Connection conn) throws ApsSystemException{
		PreparedStatement stat = null;
		try { 
			stat = conn.prepareStatement(ADD_WORK_CONTENT_REL_RECORD);
			this.addCategoryRelationsRecord(content, false, stat);
			stat.executeBatch();
		} catch (BatchUpdateException e) {
			processDaoException(e.getNextException(), "Errore in aggiunta record tabella workcontentrelations - " + content.getId(), 
					"addContentRelationsRecord"); 
		} catch (Throwable t) {
			processDaoException(t, "Errore in aggiunta record tabella workcontentrelations - " + content.getId(), 
					"addContentRelationsRecord"); 
		} finally { 
			closeDaoResources(null, stat);
		} 
	} 
	 
	@Override 
	public List<String> getContentUtilizers(String contentId) {
		List<String> contentIds = null;
		try {