1
2 package olr.om;
3
4
5 import org.apache.torque.TorqueException;
6 import org.apache.torque.om.Persistent;
7
8 /***
9 * The skeleton for this class was autogenerated by Torque on:
10 *
11 * [Wed Jun 16 21:12:50 CEST 2004]
12 *
13 * You should add additional methods to this class to meet the
14 * application requirements. This class will only be generated as
15 * long as it does not already exist in the output directory.
16 */
17 public class RdfStatement
18 extends olr.om.BaseRdfStatement
19 implements Persistent
20 {
21 public static final String IS_PUBLIC_TRUE = "Y";
22 public static final String IS_OBJECT_RESOURCE_TRUE = "Y";
23 public static final String IS_OBJECT_RESOURCE_FALSE = "N";
24
25 public RdfStatement()
26 {
27 this.setIspublic(IS_PUBLIC_TRUE);
28 this.setGarbage(0);
29 }
30
31 public RdfStatement(int subject, int predicate)
32 throws Exception
33 {
34 this();
35 this.setSubject(subject);
36 this.setPredicate(predicate);
37 this.setRdfUser(OmContext.getUser());
38
39 }
40
41 public RdfStatement(RdfResource subject, RdfResource predicate, RdfResource object)
42 throws TorqueException
43 {
44 this();
45 this.setRes(IS_OBJECT_RESOURCE_TRUE);
46 this.setRdfResourceRelatedBySubject(subject);
47 this.setRdfResourceRelatedByPredicate(predicate);
48 this.setRdfResourceRelatedByObjResource(object);
49 this.setRdfUser(OmContext.getUser());
50 }
51
52 public RdfStatement(RdfResource subject, RdfResource predicate, RdfLiteral object)
53 throws TorqueException
54 {
55 this();
56 this.setRes(IS_OBJECT_RESOURCE_FALSE);
57 this.setRdfResourceRelatedBySubject(subject);
58 this.setRdfResourceRelatedByPredicate(predicate);
59 this.setRdfLiteral(object);
60 this.setRdfUser(OmContext.getUser());
61 }
62 }