blob: 6192af8101d025f3b13db849ee4e28680938035b [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>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> &gt; <a href="index.source.html" class="el_package">org.apache.juddi.model</a> &gt; <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 &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.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 &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_binding_template&quot;)
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&lt;BindingDescr&gt; bindingDescrs = new ArrayList&lt;BindingDescr&gt;(0);</span>
private String accessPointType;
private String accessPointUrl;
private String hostingRedirector;
private BindingCategoryBag categoryBag;
<span class="pc" id="L49"> private List&lt;TmodelInstanceInfo&gt; tmodelInstanceInfos = new ArrayList&lt;TmodelInstanceInfo&gt;(0);</span>
<span class="pc" id="L50"> private List&lt;Signature&gt; signatures = new ArrayList&lt;Signature&gt;(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&lt;TmodelInstanceInfo&gt; tmodelInstanceInfos,
<span class="nc" id="L64"> List&lt;BindingDescr&gt; 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 = &quot;service_key&quot;, 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 = &quot;access_point_type&quot;, 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 = &quot;access_point_url&quot;, 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 = &quot;hosting_redirector&quot;)
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 = &quot;bindingTemplate&quot;)
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 = &quot;bindingTemplate&quot;)
@OrderBy
public List&lt;TmodelInstanceInfo&gt; getTmodelInstanceInfos() {
<span class="fc" id="L121"> return this.tmodelInstanceInfos;</span>
}
public void setTmodelInstanceInfos(
List&lt;TmodelInstanceInfo&gt; tmodelInstanceInfos) {
<span class="fc" id="L125"> this.tmodelInstanceInfos = tmodelInstanceInfos;</span>
<span class="fc" id="L126"> }</span>
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = &quot;bindingTemplate&quot;)
@OrderBy
public List&lt;BindingDescr&gt; getBindingDescrs() {
<span class="fc" id="L131"> return this.bindingDescrs;</span>
}
public void setBindingDescrs(List&lt;BindingDescr&gt; bindingDescrs) {
<span class="fc" id="L134"> this.bindingDescrs = bindingDescrs;</span>
<span class="fc" id="L135"> }</span>
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = &quot;bindingTemplate&quot;)
@OrderBy
public List&lt;Signature&gt; getSignatures() {
<span class="fc" id="L140"> return signatures;</span>
}
public void setSignatures(List&lt;Signature&gt; 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>