| <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>Signature.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">jUDDI Core Services</a> > <a href="index.source.html" class="el_package">org.apache.juddi.model</a> > <span class="el_source">Signature.java</span></div><h1>Signature.java</h1><pre class="source lang-java linenums">/* |
| * Copyright 2012 The Apache Software Foundation. |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| package org.apache.juddi.model; |
| |
| import java.util.List; |
| import javax.persistence.CascadeType; |
| import javax.persistence.Column; |
| import javax.persistence.Entity; |
| import javax.persistence.FetchType; |
| import javax.persistence.GeneratedValue; |
| import javax.persistence.GenerationType; |
| import javax.persistence.Id; |
| import javax.persistence.JoinColumn; |
| import javax.persistence.ManyToOne; |
| import javax.persistence.OneToMany; |
| import javax.persistence.OrderBy; |
| import javax.persistence.Table; |
| |
| /** |
| * |
| */ |
| @Entity |
| @Table(name = "j3_sig") |
| <span class="fc" id="L37">public class Signature implements java.io.Serializable {</span> |
| private static final long serialVersionUID = -3233157941119408718L; |
| |
| private Long id; |
| private SignedInfo signedInfo; |
| private SignatureValue signatureValue; |
| private KeyInfo keyInfo; |
| private List<ObjectType> object; |
| private BusinessEntity businessEntity; |
| private BusinessService businessService; |
| private Publisher publisher; |
| private BindingTemplate bindingTemplate; |
| private ReplicationConfiguration replConfig; |
| private Tmodel tmodel; |
| private String xmlID; |
| private String assertionFromKey; |
| private String assertionToKey; |
| |
| @Id |
| @GeneratedValue(strategy=GenerationType.AUTO) |
| public Long getId() { |
| <span class="fc" id="L58"> return id;</span> |
| } |
| |
| public void setId(Long id) { |
| <span class="fc" id="L62"> this.id = id;</span> |
| <span class="fc" id="L63"> }</span> |
| |
| @ManyToOne |
| @JoinColumn(name = "binding_template_key", nullable = true) |
| public BindingTemplate getBindingTemplate() { |
| <span class="fc" id="L68"> return bindingTemplate;</span> |
| } |
| |
| public void setBindingTemplate(BindingTemplate bindingTemplate) { |
| <span class="fc" id="L72"> this.bindingTemplate = bindingTemplate;</span> |
| <span class="fc" id="L73"> }</span> |
| |
| |
| |
| @Column(nullable = true, length = 255, name = "passertionfrom") |
| public String getPublisherAssertionFromKey() { |
| <span class="fc" id="L79"> return assertionFromKey;</span> |
| } |
| |
| public void setPublisherAssertionFromKey(String item) { |
| <span class="fc" id="L83"> this.assertionFromKey = item;</span> |
| <span class="fc" id="L84"> }</span> |
| @Column(nullable = true, length = 255, name = "passertionto") |
| public String getPublisherAssertionToKey() { |
| <span class="fc" id="L87"> return assertionFromKey;</span> |
| } |
| public void setPublisherAssertionToKey(String item) { |
| <span class="fc" id="L90"> this.assertionToKey = item;</span> |
| <span class="fc" id="L91"> }</span> |
| |
| |
| @ManyToOne |
| @JoinColumn(name = "repl_config_key", nullable = true) |
| public ReplicationConfiguration getReplicationConfiguration() { |
| <span class="fc" id="L97"> return replConfig;</span> |
| } |
| |
| public void setReplicationConfiguration(ReplicationConfiguration bindingTemplate) { |
| <span class="fc" id="L101"> this.replConfig = bindingTemplate;</span> |
| <span class="fc" id="L102"> }</span> |
| |
| |
| @ManyToOne |
| @JoinColumn(name = "tmodel_key", nullable = true) |
| public Tmodel getTmodel() { |
| <span class="fc" id="L108"> return tmodel;</span> |
| } |
| |
| public void setTmodel(Tmodel tmodel) { |
| <span class="fc" id="L112"> this.tmodel = tmodel;</span> |
| <span class="fc" id="L113"> }</span> |
| |
| @ManyToOne |
| @JoinColumn(name = "publisher_key", nullable = true) |
| public Publisher getPublisher() { |
| <span class="fc" id="L118"> return publisher;</span> |
| } |
| |
| public void setPublisher(Publisher publisher) { |
| <span class="fc" id="L122"> this.publisher = publisher;</span> |
| <span class="fc" id="L123"> }</span> |
| |
| @ManyToOne |
| @JoinColumn(name = "business_service_key", nullable = true) |
| public BusinessService getBusinessService() { |
| <span class="fc" id="L128"> return businessService;</span> |
| } |
| |
| public void setBusinessService(BusinessService businessService) { |
| <span class="fc" id="L132"> this.businessService = businessService;</span> |
| <span class="fc" id="L133"> }</span> |
| |
| @ManyToOne |
| @JoinColumn(name = "business_key", nullable = true) |
| public BusinessEntity getBusinessEntity() { |
| <span class="fc" id="L138"> return businessEntity;</span> |
| } |
| |
| public void setBusinessEntity(BusinessEntity businessEntity) { |
| <span class="fc" id="L142"> this.businessEntity = businessEntity;</span> |
| <span class="fc" id="L143"> }</span> |
| |
| @ManyToOne(fetch = FetchType.LAZY, cascade=CascadeType.ALL) |
| @JoinColumn(name = "signed_info", nullable = false) |
| public SignedInfo getSignedInfo() { |
| <span class="fc" id="L148"> return signedInfo;</span> |
| } |
| |
| public void setSignedInfo(SignedInfo signedInfo) { |
| <span class="fc" id="L152"> this.signedInfo = signedInfo;</span> |
| <span class="fc" id="L153"> }</span> |
| |
| @ManyToOne(fetch = FetchType.LAZY, cascade=CascadeType.ALL) |
| @JoinColumn(name = "signature_value", nullable = false) |
| public SignatureValue getSignatureValue() { |
| <span class="fc" id="L158"> return signatureValue;</span> |
| } |
| |
| public void setSignatureValue(SignatureValue signatureValue) { |
| <span class="fc" id="L162"> this.signatureValue = signatureValue;</span> |
| <span class="fc" id="L163"> }</span> |
| |
| @ManyToOne(fetch = FetchType.LAZY, cascade=CascadeType.ALL) |
| @JoinColumn(name = "key_info", nullable = false) |
| public KeyInfo getKeyInfo() { |
| <span class="fc" id="L168"> return keyInfo;</span> |
| } |
| |
| public void setKeyInfo(KeyInfo keyInfo) { |
| <span class="fc" id="L172"> this.keyInfo = keyInfo;</span> |
| <span class="fc" id="L173"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "signature") |
| @OrderBy |
| public List<ObjectType> getObject() { |
| <span class="fc" id="L178"> return object;</span> |
| } |
| |
| public void setObject(List<ObjectType> object) { |
| <span class="fc" id="L182"> this.object = object;</span> |
| <span class="fc" id="L183"> }</span> |
| |
| @Column(name="xml_id") |
| public String getXmlID() { |
| <span class="fc" id="L187"> return xmlID;</span> |
| } |
| |
| public void setXmlID(String xmlID) { |
| <span class="fc" id="L191"> this.xmlID = xmlID;</span> |
| <span class="fc" id="L192"> }</span> |
| } |
| </pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.7.9.201702052155</span></div></body></html> |