| <?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>Tmodel.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">Tmodel.java</span></div><h1>Tmodel.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.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> |
| * @author <a href="mailto:tcunning@apache.org">Tom Cunningham</a> |
| */ |
| @Entity |
| @Table(name = "j3_tmodel") |
| public class Tmodel extends UddiEntity implements java.io.Serializable { |
| |
| private static final long serialVersionUID = -4577524699559324289L; |
| private String name; |
| private String langCode; |
| private boolean deleted; |
| <span class="pc" id="L44"> private List<OverviewDoc> overviewDocs = new ArrayList<OverviewDoc>(0);</span> |
| <span class="pc" id="L45"> private List<TmodelDescr> tmodelDescrs = new ArrayList<TmodelDescr>(0);</span> |
| <span class="pc" id="L46"> private List<TmodelIdentifier> tmodelIdentifiers = new ArrayList<TmodelIdentifier>(0);</span> |
| private TmodelCategoryBag categoryBag; |
| <span class="pc" id="L48"> private List<Signature> signatures = new ArrayList<Signature>(0);</span> |
| |
| <span class="fc" id="L50"> public Tmodel() {</span> |
| <span class="fc" id="L51"> }</span> |
| |
| <span class="nc" id="L53"> public Tmodel(String entityKey, String name, Date modified) {</span> |
| <span class="nc" id="L54"> this.entityKey = entityKey;</span> |
| <span class="nc" id="L55"> this.name = name;</span> |
| <span class="nc" id="L56"> this.modified = modified;</span> |
| <span class="nc" id="L57"> }</span> |
| public Tmodel(String entityKey, String authorizedName, String operator, |
| String name, String langCode, boolean deleted, Date modified, |
| List<OverviewDoc> overviewDocs, |
| List<TmodelDescr> tmodelDescrs, |
| List<TmodelIdentifier> tmodelIdentifiers, |
| <span class="nc" id="L63"> TmodelCategoryBag categoryBag) {</span> |
| <span class="nc" id="L64"> this.entityKey = entityKey;</span> |
| <span class="nc" id="L65"> this.authorizedName = authorizedName;</span> |
| <span class="nc" id="L66"> this.name = name;</span> |
| <span class="nc" id="L67"> this.langCode = langCode;</span> |
| <span class="nc" id="L68"> this.deleted = deleted;</span> |
| <span class="nc" id="L69"> this.modified = modified;</span> |
| <span class="nc" id="L70"> this.overviewDocs = overviewDocs;</span> |
| <span class="nc" id="L71"> this.tmodelDescrs = tmodelDescrs;</span> |
| <span class="nc" id="L72"> this.tmodelIdentifiers = tmodelIdentifiers;</span> |
| <span class="nc" id="L73"> this.categoryBag = categoryBag;</span> |
| <span class="nc" id="L74"> }</span> |
| |
| @Column(name = "name", nullable = false, length = 255) |
| public String getName() { |
| <span class="fc" id="L78"> return this.name;</span> |
| } |
| public void setName(String name) { |
| <span class="fc" id="L81"> this.name = name;</span> |
| <span class="fc" id="L82"> }</span> |
| |
| @Column(name = "lang_code", length = 26) |
| public String getLangCode() { |
| <span class="fc" id="L86"> return this.langCode;</span> |
| } |
| public void setLangCode(String langCode) { |
| <span class="fc" id="L89"> this.langCode = langCode;</span> |
| <span class="fc" id="L90"> }</span> |
| |
| @Column(name = "deleted") |
| public boolean getDeleted() { |
| <span class="fc" id="L94"> return deleted;</span> |
| } |
| public void setDeleted(boolean deleted) { |
| <span class="fc" id="L97"> this.deleted = deleted;</span> |
| <span class="fc" id="L98"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tmodel") |
| @OrderBy |
| public List<OverviewDoc> getOverviewDocs() { |
| <span class="fc" id="L103"> return this.overviewDocs;</span> |
| } |
| |
| public void setOverviewDocs(List<OverviewDoc> overviewDocs) { |
| <span class="fc" id="L107"> this.overviewDocs = overviewDocs;</span> |
| <span class="fc" id="L108"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tmodel") |
| @OrderBy |
| public List<TmodelDescr> getTmodelDescrs() { |
| <span class="fc" id="L113"> return this.tmodelDescrs;</span> |
| } |
| public void setTmodelDescrs(List<TmodelDescr> tmodelDescrs) { |
| <span class="fc" id="L116"> this.tmodelDescrs = tmodelDescrs;</span> |
| <span class="fc" id="L117"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tmodel") |
| @OrderBy |
| public List<TmodelIdentifier> getTmodelIdentifiers() { |
| <span class="fc" id="L122"> return this.tmodelIdentifiers;</span> |
| } |
| public void setTmodelIdentifiers(List<TmodelIdentifier> tmodelIdentifiers) { |
| <span class="fc" id="L125"> this.tmodelIdentifiers = tmodelIdentifiers;</span> |
| <span class="fc" id="L126"> }</span> |
| |
| @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tmodel") |
| public TmodelCategoryBag getCategoryBag() { |
| <span class="fc" id="L130"> return this.categoryBag;</span> |
| } |
| public void setCategoryBag(TmodelCategoryBag categoryBag) { |
| <span class="fc" id="L133"> this.categoryBag = categoryBag;</span> |
| <span class="fc" id="L134"> }</span> |
| |
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tmodel") |
| @OrderBy |
| public List<Signature> getSignatures() { |
| <span class="fc" id="L139"> return signatures;</span> |
| } |
| |
| public void setSignatures(List<Signature> signatures) { |
| <span class="fc" id="L143"> this.signatures = signatures;</span> |
| <span class="fc" id="L144"> }</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> |