View Javadoc

1   /*
2   Copyright 2010 James Pether Sörling 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. 
3   	$Id
4   */
5   package org.directdemocracyportal.democracy.model.world;
6   
7   import javax.persistence.Entity;
8   import javax.persistence.Transient;
9   
10  import org.hibernate.annotations.Cache;
11  import org.hibernate.annotations.CacheConcurrencyStrategy;
12  
13  /***
14   * The Class PoliticalParty.
15   */
16  @Entity
17  @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
18  public class PoliticalParty extends Organisation
19  {
20  
21      /*** The Constant serialVersionUID. */
22      private static final long serialVersionUID = 442920132355049212L;
23  
24      /*** The short code. */
25      private String shortCode;
26  
27      /***
28       * Gets the short code.
29       *
30       * @return the short code
31       */
32      public String getShortCode() {
33          return shortCode;
34      }
35  
36      /***
37       * Sets the short code.
38       *
39       * @param shortCode the new short code
40       */
41      public void setShortCode(String shortCode) {
42          this.shortCode = shortCode;
43      }
44  
45      /***
46       * Instantiates a new political party.
47       */
48      public PoliticalParty() {
49      }
50  
51      /***
52       * Checks if is offline.
53       *
54       * @return true, if is offline
55       */
56      @Transient
57      public boolean isOffline() {
58          return true;
59      }
60  }