blob: 17a2edb83c277a261c05a9f27a2fb4aa5c3fda34 [file] [log] [blame]
<?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>BusinessService.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> &gt; <a href="index.source.html" class="el_package">org.apache.juddi.model</a> &gt; <span class="el_source">BusinessService.java</span></div><h1>BusinessService.java</h1><pre class="source lang-java linenums">package org.apache.juddi.model;
/*
* Copyright 2001-2008 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
* 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 &quot;AS IS&quot; 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.
*/
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.OrderBy;
import javax.persistence.Table;
/**
* @author &lt;a href=&quot;mailto:kurt@apache.org&quot;&gt;Kurt T Stam&lt;/a&gt;
* @author &lt;a href=&quot;mailto:jfaath@apache.org&quot;&gt;Jeff Faath&lt;/a&gt;
*/
@Entity
@Table(name = &quot;j3_business_service&quot;)
public class BusinessService extends UddiEntity implements java.io.Serializable {
private static final long serialVersionUID = 7793243417208829793L;
private BusinessEntity businessEntity;
<span class="pc" id="L42"> private List&lt;ServiceName&gt; serviceNames = new ArrayList&lt;ServiceName&gt;(0);</span>
<span class="pc" id="L43"> private List&lt;ServiceDescr&gt; serviceDescrs = new ArrayList&lt;ServiceDescr&gt;(0);</span>
<span class="pc" id="L44"> private List&lt;BindingTemplate&gt; bindingTemplates = new ArrayList&lt;BindingTemplate&gt;(0);</span>
private ServiceCategoryBag categoryBag;
<span class="pc" id="L46"> private List&lt;ServiceProjection&gt; projectingBusinesses = new ArrayList&lt;ServiceProjection&gt;(0);</span>
<span class="pc" id="L47"> private List&lt;Signature&gt; signatures = new ArrayList&lt;Signature&gt;(0);</span>
<span class="fc" id="L49"> public BusinessService() {</span>
<span class="fc" id="L50"> }</span>
<span class="nc" id="L52"> public BusinessService(String entityKey, BusinessEntity businessEntity, Date modified) {</span>
<span class="nc" id="L53"> this.entityKey = entityKey;</span>
<span class="nc" id="L54"> this.businessEntity = businessEntity;</span>
<span class="nc" id="L55"> this.modified = modified;</span>
<span class="nc" id="L56"> }</span>
public BusinessService(String entityKey, BusinessEntity businessEntity, Date modified,
List&lt;ServiceName&gt; serviceNames, List&lt;ServiceDescr&gt; serviceDescrs,
List&lt;BindingTemplate&gt; bindingTemplates,
<span class="nc" id="L60"> ServiceCategoryBag categoryBag) {</span>
<span class="nc" id="L61"> this.entityKey = entityKey;</span>
<span class="nc" id="L62"> this.businessEntity = businessEntity;</span>
<span class="nc" id="L63"> this.modified = modified;</span>
<span class="nc" id="L64"> this.serviceNames = serviceNames;</span>
<span class="nc" id="L65"> this.serviceDescrs = serviceDescrs;</span>
<span class="nc" id="L66"> this.bindingTemplates = bindingTemplates;</span>
<span class="nc" id="L67"> this.categoryBag = categoryBag;</span>
<span class="nc" id="L68"> }</span>
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = &quot;business_key&quot;, nullable = false)
public BusinessEntity getBusinessEntity() {
<span class="fc" id="L73"> return this.businessEntity;</span>
}
public void setBusinessEntity(BusinessEntity businessEntity) {
<span class="fc" id="L76"> this.businessEntity = businessEntity;</span>
<span class="fc" id="L77"> }</span>
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = &quot;businessService&quot;)
@OrderBy
public List&lt;ServiceName&gt; getServiceNames() {
<span class="fc" id="L82"> return this.serviceNames;</span>
}
public void setServiceNames(List&lt;ServiceName&gt; serviceNames) {
<span class="fc" id="L85"> this.serviceNames = serviceNames;</span>
<span class="fc" id="L86"> }</span>
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = &quot;businessService&quot;)
@OrderBy
public List&lt;ServiceDescr&gt; getServiceDescrs() {
<span class="fc" id="L91"> return this.serviceDescrs;</span>
}
public void setServiceDescrs(List&lt;ServiceDescr&gt; serviceDescrs) {
<span class="fc" id="L94"> this.serviceDescrs = serviceDescrs;</span>
<span class="fc" id="L95"> }</span>
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = &quot;businessService&quot;)
@OrderBy
public List&lt;BindingTemplate&gt; getBindingTemplates() {
<span class="fc" id="L100"> return this.bindingTemplates;</span>
}
public void setBindingTemplates(List&lt;BindingTemplate&gt; bindingTemplates) {
<span class="fc" id="L103"> this.bindingTemplates = bindingTemplates;</span>
<span class="fc" id="L104"> }</span>
@OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = &quot;businessService&quot;)
public ServiceCategoryBag getCategoryBag() {
<span class="fc" id="L108"> return this.categoryBag;</span>
}
public void setCategoryBag(ServiceCategoryBag categoryBag) {
<span class="fc" id="L111"> this.categoryBag = categoryBag;</span>
<span class="fc" id="L112"> }</span>
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = &quot;businessService&quot;)
public List&lt;ServiceProjection&gt; getProjectingBusinesses() {
<span class="fc" id="L116"> return projectingBusinesses;</span>
}
public void setProjectingBusinesses(List&lt;ServiceProjection&gt; projectingBusinesses) {
<span class="fc" id="L119"> this.projectingBusinesses = projectingBusinesses;</span>
<span class="fc" id="L120"> }</span>
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = &quot;businessService&quot;)
@OrderBy
public List&lt;Signature&gt; getSignatures() {
<span class="fc" id="L125"> return signatures;</span>
}
public void setSignatures(List&lt;Signature&gt; signatures) {
<span class="fc" id="L129"> this.signatures = signatures;</span>
<span class="fc" id="L130"> }</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>