1 26 28 package de.nava.informa.impl.hibernate; 29 30 import de.nava.informa.core.ItemGuidIF; 31 import de.nava.informa.core.ItemIF; 32 33 41 public class ItemGuid implements ItemGuidIF, java.io.Serializable { 42 43 private int id; 44 private ItemIF item; 45 private String location; 46 private boolean permaLink; 47 48 public ItemGuid() { 49 this(null); 50 } 51 52 55 public ItemGuid(ItemIF item) { 56 this(item, null, true); 57 } 58 59 public ItemGuid(ItemIF item, String location, boolean permaLink) { 60 this.item = item; 61 this.location = location; 62 this.permaLink = permaLink; 63 } 64 65 71 public int getIntId() { 72 return id; 73 } 74 75 public void setIntId(int id) { 76 this.id = id; 77 } 78 79 public long getId() { 80 return id; 81 } 82 83 public void setId(long longid) { 84 this.id = (int) longid; 85 } 86 87 88 92 98 public ItemIF getItem() { 99 return item; 100 } 101 102 public void setItem(ItemIF item) { 103 this.item = item; 104 } 105 106 110 public String getLocation() { 111 return location; 112 } 113 114 public void setLocation(String location) { 115 this.location = location; 116 } 117 118 122 public boolean isPermaLink() { 123 return permaLink; 124 } 125 126 public void setPermaLink(boolean permaLink) { 127 this.permaLink = permaLink; 128 } 129 130 } 131 | Popular Tags |