1 package olr.om; 2 3 import org.apache.torque.util.Criteria; 4 5 /*** 6 * The skeleton for this class was autogenerated by Torque on: 7 * 8 * [Wed Jun 16 21:12:50 CEST 2004] 9 * 10 * You should add additional methods to this class to meet the 11 * application requirements. This class will only be generated as 12 * long as it does not already exist in the output directory. 13 */ 14 public class RdfLiteralPeer 15 extends olr.om.BaseRdfLiteralPeer 16 { 17 public static void delete(int id) throws Exception 18 { 19 final int[] ids = {id}; 20 delete(ids); 21 } 22 23 public static void delete(int[] ids) 24 throws Exception 25 { 26 if(ids.length == 0) return; 27 28 final Criteria criteria = new Criteria(); 29 criteria.addIn(RdfLiteralPeer.ID, ids); 30 RdfResourcePeer.doDelete(criteria, OmContext.getConnection()); 31 } 32 33 public static RdfLiteral insert(String value) 34 throws Exception 35 { 36 final RdfLiteral literal = new RdfLiteral(value); 37 literal.setRdfUser(OmContext.getUser()); 38 literal.save(OmContext.getConnection()); 39 return literal; 40 } 41 }