Code example for Connection

Methods: prepareStatement

0
		PreparedStatement ps = null;
 
		try { 
			con = DataAccess.getConnection();
 
			ps = con.prepareStatement(
				"update Layout set typeSettings = ? where plid = " + plid);
 
			ps.setString(1, typeSettings);
 
			ps.executeUpdate();
		} 
		finally { 
			DataAccess.cleanUp(con, ps);
		} 
	} 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE