This project has retired. For details please refer to its Attic page.
SignedInfo xref
View Javadoc
1   /*
2    * Copyright 2012 The Apache Software Foundation.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.apache.juddi.model;
17  
18  import java.util.ArrayList;
19  import java.util.List;
20  import javax.persistence.CascadeType;
21  import javax.persistence.Column;
22  import javax.persistence.Entity;
23  import javax.persistence.FetchType;
24  import javax.persistence.GeneratedValue;
25  import javax.persistence.GenerationType;
26  import javax.persistence.Id;
27  import javax.persistence.JoinColumn;
28  import javax.persistence.ManyToOne;
29  import javax.persistence.OneToMany;
30  import javax.persistence.OrderBy;
31  import javax.persistence.Table;
32  
33  /**
34   *
35   */
36  @Entity
37  @Table(name="j3_signed_info")
38  public class SignedInfo implements java.io.Serializable {
39      private static final long serialVersionUID = -2233157941119408719L;
40      
41      private Long id;
42      private CanonicalizationMethod canonicalizationMethod;
43      private SignatureMethod signatureMethod;
44      private List<Reference> reference = new ArrayList<Reference>(0);
45      private String xmlID;
46  
47      @Id
48      @GeneratedValue(strategy=GenerationType.AUTO)
49      public Long getId() {
50          return id;
51      }
52  
53      public void setId(Long id) {
54          this.id = id;
55      }
56      
57      @ManyToOne(fetch = FetchType.LAZY, cascade=CascadeType.ALL)
58      @JoinColumn(name = "canonicalization_method", nullable = false)
59      public CanonicalizationMethod getCanonicalizationMethod() {
60          return canonicalizationMethod;
61      }
62  
63      public void setCanonicalizationMethod(CanonicalizationMethod canonicalizationMethod) {
64          this.canonicalizationMethod = canonicalizationMethod;
65      }
66  
67      @ManyToOne(fetch = FetchType.LAZY, cascade=CascadeType.ALL)
68      @JoinColumn(name = "signature_method", nullable = false)
69      public SignatureMethod getSignatureMethod() {
70          return signatureMethod;
71      }
72  
73      public void setSignatureMethod(SignatureMethod signatureMethod) {
74          this.signatureMethod = signatureMethod;
75      }
76  
77      @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "signedInfo")
78      @OrderBy
79      public List<Reference> getReference() {
80          return reference;
81      }
82  
83      public void setReference(List<Reference> reference) {
84          this.reference = reference;
85      }
86  
87      @Column(name="xml_id")
88      public String getXmlID() {
89          return xmlID;
90      }
91  
92      public void setXmlID(String xmlID) {
93          this.xmlID = xmlID;
94      }
95  }