| <?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> > <a href="index.source.html" class="el_package">org.apache.juddi.model</a> > <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 "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. |
| */ |
| |
| 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 <a href="mailto:kurt@apache.org">Kurt T Stam</a> |
| * @author <a href="mailto:jfaath@apache.org">Jeff Faath</a> |
| */ |
| @Entity |
| @Table(name = "j3_business_service") |
| 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<ServiceName> serviceNames = new ArrayList<ServiceName>(0);</span> |
| <span class="pc" id="L43"> private List<ServiceDescr> serviceDescrs = new ArrayList<ServiceDescr>(0);</span> |
| <span class="pc" id="L44"> private List<BindingTemplate> bindingTemplates = new ArrayList<BindingTemplate>(0);</span> |
| private ServiceCategoryBag categoryBag; |
| <span class="pc" id="L46"> private List<ServiceProjection> projectingBusinesses = new ArrayList<ServiceProjection>(0);</span> |
| <span class="pc" id="L47"> private List<Signature> signatures = new ArrayList<Signature>(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<ServiceName> serviceNames, List<ServiceDescr> serviceDescrs, |
| List<BindingTemplate> 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 = "business_key", 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 = "businessService") |
| @OrderBy |
| public List<ServiceName> getServiceNames() { |
| <span class="fc" id="L82"> return this.serviceNames;</span> |
| } |
| public void setServiceNames(List<ServiceName> serviceNames) { |
| <span class="fc" id="L85"> this.serviceNames = serviceNames;</span> |
| <span class="fc" id="L86"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessService") |
| @OrderBy |
| public List<ServiceDescr> getServiceDescrs() { |
| <span class="fc" id="L91"> return this.serviceDescrs;</span> |
| } |
| public void setServiceDescrs(List<ServiceDescr> serviceDescrs) { |
| <span class="fc" id="L94"> this.serviceDescrs = serviceDescrs;</span> |
| <span class="fc" id="L95"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessService") |
| @OrderBy |
| public List<BindingTemplate> getBindingTemplates() { |
| <span class="fc" id="L100"> return this.bindingTemplates;</span> |
| } |
| public void setBindingTemplates(List<BindingTemplate> bindingTemplates) { |
| <span class="fc" id="L103"> this.bindingTemplates = bindingTemplates;</span> |
| <span class="fc" id="L104"> }</span> |
| |
| @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessService") |
| 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 = "businessService") |
| public List<ServiceProjection> getProjectingBusinesses() { |
| <span class="fc" id="L116"> return projectingBusinesses;</span> |
| } |
| public void setProjectingBusinesses(List<ServiceProjection> projectingBusinesses) { |
| <span class="fc" id="L119"> this.projectingBusinesses = projectingBusinesses;</span> |
| <span class="fc" id="L120"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessService") |
| @OrderBy |
| public List<Signature> getSignatures() { |
| <span class="fc" id="L125"> return signatures;</span> |
| } |
| |
| public void setSignatures(List<Signature> 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> |