| <?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>TmodelInstanceInfo.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">TmodelInstanceInfo.java</span></div><h1>TmodelInstanceInfo.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.List; |
| |
| import javax.persistence.CascadeType; |
| import javax.persistence.Column; |
| import javax.persistence.Entity; |
| import javax.persistence.FetchType; |
| import javax.persistence.GeneratedValue; |
| import javax.persistence.GenerationType; |
| import javax.persistence.Id; |
| import javax.persistence.JoinColumn; |
| import javax.persistence.Lob; |
| import javax.persistence.ManyToOne; |
| import javax.persistence.OneToMany; |
| 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_tmodel_instance_info") |
| public class TmodelInstanceInfo implements java.io.Serializable { |
| |
| private static final long serialVersionUID = -6375499794977257231L; |
| private Long id; |
| private BindingTemplate bindingTemplate; |
| private String tmodelKey; |
| <span class="pc" id="L47"> private List<TmodelInstanceInfoDescr> tmodelInstanceInfoDescrs = new ArrayList<TmodelInstanceInfoDescr>(0);</span> |
| |
| private String instanceParms; |
| <span class="pc" id="L50"> private List<OverviewDoc> overviewDocs = new ArrayList<OverviewDoc>(0);</span> |
| <span class="pc" id="L51"> private List<InstanceDetailsDescr> instanceDetailsDescrs = new ArrayList<InstanceDetailsDescr>(0);</span> |
| |
| <span class="fc" id="L53"> public TmodelInstanceInfo() {</span> |
| <span class="fc" id="L54"> }</span> |
| |
| <span class="fc" id="L56"> public TmodelInstanceInfo(BindingTemplate bindingTemplate, String tmodelKey) {</span> |
| <span class="fc" id="L57"> this.bindingTemplate = bindingTemplate;</span> |
| <span class="fc" id="L58"> this.tmodelKey = tmodelKey;</span> |
| <span class="fc" id="L59"> }</span> |
| public TmodelInstanceInfo(BindingTemplate bindingTemplate, String tmodelKey, |
| String instanceParms, |
| List<OverviewDoc> overviewDocs, |
| List<InstanceDetailsDescr> instanceDetailsDescrs, |
| <span class="nc" id="L64"> List<TmodelInstanceInfoDescr> tmodelInstanceInfoDescrs) {</span> |
| <span class="nc" id="L65"> this.bindingTemplate = bindingTemplate;</span> |
| <span class="nc" id="L66"> this.tmodelKey = tmodelKey;</span> |
| <span class="nc" id="L67"> this.instanceParms = instanceParms;</span> |
| <span class="nc" id="L68"> this.overviewDocs = overviewDocs;</span> |
| <span class="nc" id="L69"> this.instanceDetailsDescrs = instanceDetailsDescrs;</span> |
| <span class="nc" id="L70"> this.tmodelInstanceInfoDescrs = tmodelInstanceInfoDescrs;</span> |
| <span class="nc" id="L71"> }</span> |
| |
| @Id |
| @GeneratedValue(strategy=GenerationType.AUTO) |
| public Long getId() { |
| <span class="fc" id="L76"> return this.id;</span> |
| } |
| public void setId(Long id) { |
| <span class="fc" id="L79"> this.id = id;</span> |
| <span class="fc" id="L80"> }</span> |
| |
| @ManyToOne(fetch = FetchType.LAZY) |
| @JoinColumn(name = "entity_key", nullable = false) |
| public BindingTemplate getBindingTemplate() { |
| <span class="fc" id="L85"> return this.bindingTemplate;</span> |
| } |
| public void setBindingTemplate(BindingTemplate bindingTemplate) { |
| <span class="fc" id="L88"> this.bindingTemplate = bindingTemplate;</span> |
| <span class="fc" id="L89"> }</span> |
| |
| @Column(name = "tmodel_key", nullable = false, length = 255) |
| public String getTmodelKey() { |
| <span class="fc" id="L93"> return this.tmodelKey;</span> |
| } |
| public void setTmodelKey(String tmodelKey) { |
| <span class="fc" id="L96"> this.tmodelKey = tmodelKey;</span> |
| <span class="fc" id="L97"> }</span> |
| |
| @Lob |
| @Column(name = "instance_parms", length = 8192) |
| public String getInstanceParms() { |
| <span class="fc" id="L102"> return this.instanceParms;</span> |
| } |
| public void setInstanceParms(String instanceParms) { |
| <span class="fc" id="L105"> this.instanceParms = instanceParms;</span> |
| <span class="fc" id="L106"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tmodelInstanceInfo") |
| @OrderBy |
| public List<OverviewDoc> getOverviewDocs() { |
| <span class="fc" id="L111"> return this.overviewDocs;</span> |
| } |
| public void setOverviewDocs( |
| List<OverviewDoc> overviewDocs) { |
| <span class="fc" id="L115"> this.overviewDocs = overviewDocs;</span> |
| <span class="fc" id="L116"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tmodelInstanceInfo") |
| @OrderBy |
| public List<InstanceDetailsDescr> getInstanceDetailsDescrs() { |
| <span class="fc" id="L121"> return this.instanceDetailsDescrs;</span> |
| } |
| public void setInstanceDetailsDescrs( |
| List<InstanceDetailsDescr> instanceDetailsDescrs) { |
| <span class="fc" id="L125"> this.instanceDetailsDescrs = instanceDetailsDescrs;</span> |
| <span class="fc" id="L126"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tmodelInstanceInfo") |
| @OrderBy |
| public List<TmodelInstanceInfoDescr> getTmodelInstanceInfoDescrs() { |
| <span class="fc" id="L131"> return this.tmodelInstanceInfoDescrs;</span> |
| } |
| public void setTmodelInstanceInfoDescrs( |
| List<TmodelInstanceInfoDescr> tmodelInstanceInfoDescrs) { |
| <span class="fc" id="L135"> this.tmodelInstanceInfoDescrs = tmodelInstanceInfoDescrs;</span> |
| <span class="fc" id="L136"> }</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> |