| <?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>BusinessEntity.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 - OpenJPA</a> > <a href="index.source.html" class="el_package">org.apache.juddi.model</a> > <span class="el_source">BusinessEntity.java</span></div><h1>BusinessEntity.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.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_entity") |
| public class BusinessEntity extends UddiEntity implements java.io.Serializable { |
| |
| private static final long serialVersionUID = -7353389848796421619L; |
| <span class="pc" id="L39"> private List<Contact> contacts = new ArrayList<Contact>(0);</span> |
| <span class="pc" id="L40"> private List<BusinessIdentifier> businessIdentifiers = new ArrayList<BusinessIdentifier>(0);</span> |
| <span class="pc" id="L41"> private List<PublisherAssertion> publisherAssertionsForFromKey = new ArrayList<PublisherAssertion>(0);</span> |
| <span class="pc" id="L42"> private List<DiscoveryUrl> discoveryUrls = new ArrayList<DiscoveryUrl>(0);</span> |
| <span class="pc" id="L43"> private List<BusinessName> businessNames = new ArrayList<BusinessName>(0);</span> |
| <span class="pc" id="L44"> private List<PublisherAssertion> publisherAssertionsForToKey = new ArrayList<PublisherAssertion>(0);</span> |
| private BusinessCategoryBag categoryBag; |
| <span class="pc" id="L46"> private List<BusinessService> businessServices = new ArrayList<BusinessService>(0);</span> |
| <span class="pc" id="L47"> private List<BusinessDescr> businessDescrs = new ArrayList<BusinessDescr>(0);</span> |
| <span class="pc" id="L48"> private List<ServiceProjection> serviceProjections = new ArrayList<ServiceProjection>(0);</span> |
| <span class="pc" id="L49"> private List<Signature> signatures = new ArrayList<Signature>(0);</span> |
| |
| <span class="fc" id="L51"> public BusinessEntity() {</span> |
| <span class="fc" id="L52"> }</span> |
| |
| <span class="nc" id="L54"> public BusinessEntity(String entityKey, Date modified) {</span> |
| <span class="nc" id="L55"> this.entityKey = entityKey;</span> |
| <span class="nc" id="L56"> this.modified = modified;</span> |
| <span class="nc" id="L57"> }</span> |
| public BusinessEntity(String entityKey, String authorizedName, |
| String operator, |
| Date modified, List<Contact> contacts, |
| List<BusinessIdentifier> businessIdentifiers, |
| List<PublisherAssertion> publisherAssertionsForFromKey, |
| List<DiscoveryUrl> discoveryUrls, List<BusinessName> businessNames, |
| List<PublisherAssertion> publisherAssertionsForToKey, |
| BusinessCategoryBag categoryBag, |
| List<BusinessService> businessServices, |
| <span class="nc" id="L67"> List<BusinessDescr> businessDescrs) {</span> |
| <span class="nc" id="L68"> this.entityKey = entityKey;</span> |
| <span class="nc" id="L69"> this.authorizedName = authorizedName;</span> |
| <span class="nc" id="L70"> this.modified = modified;</span> |
| <span class="nc" id="L71"> this.contacts = contacts;</span> |
| <span class="nc" id="L72"> this.businessIdentifiers = businessIdentifiers;</span> |
| <span class="nc" id="L73"> this.publisherAssertionsForFromKey = publisherAssertionsForFromKey;</span> |
| <span class="nc" id="L74"> this.discoveryUrls = discoveryUrls;</span> |
| <span class="nc" id="L75"> this.businessNames = businessNames;</span> |
| <span class="nc" id="L76"> this.publisherAssertionsForToKey = publisherAssertionsForToKey;</span> |
| <span class="nc" id="L77"> this.categoryBag = categoryBag;</span> |
| <span class="nc" id="L78"> this.businessServices = businessServices;</span> |
| <span class="nc" id="L79"> this.businessDescrs = businessDescrs;</span> |
| <span class="nc" id="L80"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntity") |
| @OrderBy |
| public List<Contact> getContacts() { |
| <span class="fc bfc" id="L85" title="All 2 branches covered."> if (this.contacts==null)</span> |
| <span class="fc" id="L86"> this.contacts = new ArrayList<Contact>();</span> |
| <span class="fc" id="L87"> return this.contacts;</span> |
| } |
| public void setContacts(List<Contact> contacts) { |
| <span class="fc" id="L90"> this.contacts = contacts;</span> |
| <span class="fc" id="L91"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntity") |
| @OrderBy |
| public List<BusinessIdentifier> getBusinessIdentifiers() { |
| <span class="fc" id="L96"> return this.businessIdentifiers;</span> |
| } |
| public void setBusinessIdentifiers( |
| List<BusinessIdentifier> businessIdentifiers) { |
| <span class="fc" id="L100"> this.businessIdentifiers = businessIdentifiers;</span> |
| <span class="fc" id="L101"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntityByFromKey") |
| @OrderBy |
| public List<PublisherAssertion> getPublisherAssertionsForFromKey() { |
| <span class="fc" id="L106"> return this.publisherAssertionsForFromKey;</span> |
| } |
| public void setPublisherAssertionsForFromKey( |
| List<PublisherAssertion> publisherAssertionsForFromKey) { |
| <span class="fc" id="L110"> this.publisherAssertionsForFromKey = publisherAssertionsForFromKey;</span> |
| <span class="fc" id="L111"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntity") |
| @OrderBy |
| public List<DiscoveryUrl> getDiscoveryUrls() { |
| <span class="fc" id="L116"> return this.discoveryUrls;</span> |
| } |
| public void setDiscoveryUrls(List<DiscoveryUrl> discoveryUrls) { |
| <span class="fc" id="L119"> this.discoveryUrls = discoveryUrls;</span> |
| <span class="fc" id="L120"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntity") |
| @OrderBy |
| public List<BusinessName> getBusinessNames() { |
| <span class="fc" id="L125"> return this.businessNames;</span> |
| } |
| public void setBusinessNames(List<BusinessName> businessNames) { |
| <span class="fc" id="L128"> this.businessNames = businessNames;</span> |
| <span class="fc" id="L129"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntityByToKey") |
| @OrderBy |
| public List<PublisherAssertion> getPublisherAssertionsForToKey() { |
| <span class="fc" id="L134"> return this.publisherAssertionsForToKey;</span> |
| } |
| public void setPublisherAssertionsForToKey( |
| List<PublisherAssertion> publisherAssertionsForToKey) { |
| <span class="fc" id="L138"> this.publisherAssertionsForToKey = publisherAssertionsForToKey;</span> |
| <span class="fc" id="L139"> }</span> |
| |
| @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntity") |
| public BusinessCategoryBag getCategoryBag() { |
| <span class="fc" id="L143"> return this.categoryBag;</span> |
| } |
| public void setCategoryBag(BusinessCategoryBag categoryBag) { |
| <span class="fc" id="L146"> this.categoryBag = categoryBag;</span> |
| <span class="fc" id="L147"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntity") |
| @OrderBy |
| public List<BusinessService> getBusinessServices() { |
| <span class="fc" id="L152"> return this.businessServices;</span> |
| } |
| public void setBusinessServices(List<BusinessService> businessServices) { |
| <span class="fc" id="L155"> this.businessServices = businessServices;</span> |
| <span class="fc" id="L156"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntity") |
| @OrderBy |
| public List<BusinessDescr> getBusinessDescrs() { |
| <span class="fc" id="L161"> return this.businessDescrs;</span> |
| } |
| public void setBusinessDescrs(List<BusinessDescr> businessDescrs) { |
| <span class="fc" id="L164"> this.businessDescrs = businessDescrs;</span> |
| <span class="fc" id="L165"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntity") |
| public List<ServiceProjection> getServiceProjections() { |
| <span class="fc" id="L169"> return serviceProjections;</span> |
| } |
| public void setServiceProjections(List<ServiceProjection> serviceProjections) { |
| <span class="fc" id="L172"> this.serviceProjections = serviceProjections;</span> |
| <span class="fc" id="L173"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "businessEntity") |
| @OrderBy |
| public List<Signature> getSignatures() { |
| <span class="fc" id="L178"> return signatures;</span> |
| } |
| |
| public void setSignatures(List<Signature> signatures) { |
| <span class="fc" id="L182"> this.signatures = signatures;</span> |
| <span class="fc" id="L183"> }</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> |