1 26 27 29 package de.nava.informa.impl.hibernate; 30 31 import java.net.URL ; 32 33 import de.nava.informa.core.ItemIF; 34 import de.nava.informa.core.ItemEnclosureIF; 35 36 44 public class ItemEnclosure implements ItemEnclosureIF, java.io.Serializable { 45 46 private int id; 47 private ItemIF item; 48 private URL location; 49 private int length; 50 private String type; 51 52 public ItemEnclosure() { 53 this(null); 54 } 55 56 public ItemEnclosure(ItemIF item) { 57 this(item, null, null, -1); 58 } 59 60 public ItemEnclosure(ItemIF item, URL location, String type, int length) { 61 this.item = item; 62 this.location = location; 63 this.type = type; 64 this.length = length; 65 } 66 67 73 public int getIntId() { 74 return id; 75 } 76 77 public void setIntId(int id) { 78 this.id = id; 79 } 80 81 public long getId() { 82 return id; 83 } 84 85 public void setId(long longid) { 86 this.id = (int) longid; 87 } 88 89 93 99 public ItemIF getItem() { 100 return item; 101 } 102 103 public void setItem(ItemIF item) { 104 this.item = item; 105 } 106 107 111 public URL getLocation() { 112 return location; 113 } 114 115 public void setLocation(URL location) { 116 this.location = location; 117 } 118 119 123 public String getType() { 124 return type; 125 } 126 127 public void setType(String type) { 128 this.type = type; 129 } 130 131 135 public int getLength() { 136 return length; 137 } 138 139 public void setLength(int length) { 140 this.length = length; 141 } 142 143 } 144 | Popular Tags |