1 26 27 29 package de.nava.informa.impl.hibernate; 30 31 import java.util.Date ; 32 import de.nava.informa.core.ItemIF; 33 import de.nava.informa.core.ItemSourceIF; 34 35 43 public class ItemSource implements ItemSourceIF, java.io.Serializable { 44 45 private int id; 46 private ItemIF item; 47 private String name; 48 private String location; 49 private Date timestamp; 50 51 public ItemSource() { 52 this(null); 53 } 54 55 58 public ItemSource(ItemIF item) { 59 this(item, null, null, null); 60 } 61 62 public ItemSource(ItemIF item, String name, String location, Date timestamp) { 63 this.item = item; 64 this.name = name; 65 this.location = location; 66 this.timestamp = timestamp; 67 } 68 69 75 public int getIntId() { 76 return id; 77 } 78 79 public void setIntId(int id) { 80 this.id = id; 81 } 82 83 public long getId() { 84 return id; 85 } 86 87 public void setId(long longid) { 88 this.id = (int) longid; 89 } 90 91 95 101 public ItemIF getItem() { 102 return item; 103 } 104 105 public void setItem(ItemIF item) { 106 this.item = item; 107 } 108 109 113 public String getName() { 114 return name; 115 } 116 117 public void setName(String name) { 118 this.name = name; 119 } 120 121 125 public String getLocation() { 126 return location; 127 } 128 129 public void setLocation(String location) { 130 this.location = location; 131 } 132 133 137 public Date getTimestamp() { 138 return timestamp; 139 } 140 141 public void setTimestamp(Date timestamp) { 142 this.timestamp = timestamp; 143 } 144 145 } 146 | Popular Tags |