Code example for Set

Methods: add

0
	private static final Set<String> transactionRequiringMethods = new HashSet<String>(6);
 
	private static final Set<String> queryTerminationMethods = new HashSet<String>(3);
 
	static { 
		transactionRequiringMethods.add("joinTransaction");
		transactionRequiringMethods.add("flush");
		transactionRequiringMethods.add("persist");
		transactionRequiringMethods.add("merge");
		transactionRequiringMethods.add("remove");
		transactionRequiringMethods.add("refresh");
 
		queryTerminationMethods.add("getResultList");
		queryTerminationMethods.add("getSingleResult");
		queryTerminationMethods.add("executeUpdate");
	} 
 
 
	/** 
	 * Create a transactional EntityManager proxy for the given EntityManagerFactory. 
Connect your IDE to all the code out there  Get Codota for Java