| <?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>BindingTemplate.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">BindingTemplate.java</span></div><h1>BindingTemplate.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.Column; |
| import javax.persistence.Entity; |
| import javax.persistence.FetchType; |
| import javax.persistence.JoinColumn; |
| import javax.persistence.Lob; |
| 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_binding_template") |
| public class BindingTemplate extends UddiEntity implements java.io.Serializable { |
| |
| private static final long serialVersionUID = -813683306021520411L; |
| private BusinessService businessService; |
| <span class="pc" id="L43"> private List<BindingDescr> bindingDescrs = new ArrayList<BindingDescr>(0);</span> |
| |
| private String accessPointType; |
| private String accessPointUrl; |
| private String hostingRedirector; |
| private BindingCategoryBag categoryBag; |
| <span class="pc" id="L49"> private List<TmodelInstanceInfo> tmodelInstanceInfos = new ArrayList<TmodelInstanceInfo>(0);</span> |
| <span class="pc" id="L50"> private List<Signature> signatures = new ArrayList<Signature>(0);</span> |
| |
| <span class="fc" id="L52"> public BindingTemplate() {</span> |
| <span class="fc" id="L53"> }</span> |
| |
| <span class="nc" id="L55"> public BindingTemplate(String entityKey, BusinessService businessService, Date modified) {</span> |
| <span class="nc" id="L56"> this.entityKey = entityKey;</span> |
| <span class="nc" id="L57"> this.businessService = businessService;</span> |
| <span class="nc" id="L58"> this.modified = modified;</span> |
| <span class="nc" id="L59"> }</span> |
| public BindingTemplate(String entityKey, BusinessService businessService, String accessPointType, |
| String accessPointUrl, String hostingRedirector, Date modified, |
| BindingCategoryBag categoryBag, |
| List<TmodelInstanceInfo> tmodelInstanceInfos, |
| <span class="nc" id="L64"> List<BindingDescr> bindingDescrs) {</span> |
| <span class="nc" id="L65"> this.entityKey = entityKey;</span> |
| <span class="nc" id="L66"> this.businessService = businessService;</span> |
| <span class="nc" id="L67"> this.accessPointType = accessPointType;</span> |
| <span class="nc" id="L68"> this.accessPointUrl = accessPointUrl;</span> |
| <span class="nc" id="L69"> this.hostingRedirector = hostingRedirector;</span> |
| <span class="nc" id="L70"> this.modified = modified;</span> |
| <span class="nc" id="L71"> this.categoryBag = categoryBag;</span> |
| <span class="nc" id="L72"> this.tmodelInstanceInfos = tmodelInstanceInfos;</span> |
| <span class="nc" id="L73"> this.bindingDescrs = bindingDescrs;</span> |
| <span class="nc" id="L74"> }</span> |
| |
| @ManyToOne(fetch = FetchType.LAZY) |
| @JoinColumn(name = "service_key", nullable = false) |
| public BusinessService getBusinessService() { |
| <span class="fc" id="L79"> return this.businessService;</span> |
| } |
| public void setBusinessService(BusinessService businessService) { |
| <span class="fc" id="L82"> this.businessService = businessService;</span> |
| <span class="fc" id="L83"> }</span> |
| |
| @Column(name = "access_point_type", length = 255) |
| public String getAccessPointType() { |
| <span class="fc" id="L87"> return this.accessPointType;</span> |
| } |
| public void setAccessPointType(String accessPointType) { |
| <span class="fc" id="L90"> this.accessPointType = accessPointType;</span> |
| <span class="fc" id="L91"> }</span> |
| |
| @Lob |
| @Column(name = "access_point_url", length = 4096) |
| public String getAccessPointUrl() { |
| <span class="fc" id="L96"> return this.accessPointUrl;</span> |
| } |
| public void setAccessPointUrl(String accessPointUrl) { |
| <span class="fc" id="L99"> this.accessPointUrl = accessPointUrl;</span> |
| <span class="fc" id="L100"> }</span> |
| |
| @Column(name = "hosting_redirector") |
| public String getHostingRedirector() { |
| <span class="fc" id="L104"> return this.hostingRedirector;</span> |
| } |
| public void setHostingRedirector(String hostingRedirector) { |
| <span class="fc" id="L107"> this.hostingRedirector = hostingRedirector;</span> |
| <span class="fc" id="L108"> }</span> |
| |
| @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "bindingTemplate") |
| public BindingCategoryBag getCategoryBag() { |
| <span class="fc" id="L112"> return this.categoryBag;</span> |
| } |
| public void setCategoryBag(BindingCategoryBag categoryBag) { |
| <span class="fc" id="L115"> this.categoryBag = categoryBag;</span> |
| <span class="fc" id="L116"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "bindingTemplate") |
| @OrderBy |
| public List<TmodelInstanceInfo> getTmodelInstanceInfos() { |
| <span class="fc" id="L121"> return this.tmodelInstanceInfos;</span> |
| } |
| public void setTmodelInstanceInfos( |
| List<TmodelInstanceInfo> tmodelInstanceInfos) { |
| <span class="fc" id="L125"> this.tmodelInstanceInfos = tmodelInstanceInfos;</span> |
| <span class="fc" id="L126"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "bindingTemplate") |
| @OrderBy |
| public List<BindingDescr> getBindingDescrs() { |
| <span class="fc" id="L131"> return this.bindingDescrs;</span> |
| } |
| public void setBindingDescrs(List<BindingDescr> bindingDescrs) { |
| <span class="fc" id="L134"> this.bindingDescrs = bindingDescrs;</span> |
| <span class="fc" id="L135"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "bindingTemplate") |
| @OrderBy |
| public List<Signature> getSignatures() { |
| <span class="fc" id="L140"> return signatures;</span> |
| } |
| |
| public void setSignatures(List<Signature> signatures) { |
| <span class="fc" id="L144"> this.signatures = signatures;</span> |
| <span class="fc" id="L145"> }</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> |