1 26 27 29 package de.nava.informa.impl.hibernate; 30 31 import java.net.URL ; 32 33 import de.nava.informa.core.ImageIF; 34 35 43 public class Image implements ImageIF, java.io.Serializable { 44 45 private int id; 46 private String title; 47 private String description; 48 private URL location; 49 private URL link; 50 private int width; 51 private int height; 52 53 public Image() { 54 this("Unnamed image", null, null); 55 } 56 57 public Image(String title, URL location, URL link) { 58 this.title = title; 59 this.location = location; 60 this.link = link; 61 } 62 63 69 public int getIntId() { 70 return id; 71 } 72 73 public void setIntId(int id) { 74 this.id = id; 75 } 76 77 public long getId() { 78 return id; 79 } 80 81 public void setId(long longid) { 82 this.id = (int) longid; 83 } 84 85 89 94 public String getTitle() { 95 return title; 96 } 97 98 public void setTitle(String title) { 99 this.title = title; 100 } 101 102 106 public String getDescription() { 107 return description; 108 } 109 110 public void setDescription(String description) { 111 this.description = description; 112 } 113 114 118 public URL getLocation() { 119 return location; 120 } 121 122 public void setLocation(URL location) { 123 this.location = location; 124 } 125 126 130 public URL getLink() { 131 return link; 132 } 133 134 public void setLink(URL link) { 135 this.link = link; 136 } 137 138 142 public int getWidth() { 143 return width; 144 } 145 146 public void setWidth(int width) { 147 this.width = width; 148 } 149 150 154 public int getHeight() { 155 return height; 156 } 157 158 public void setHeight(int height) { 159 this.height = height; 160 } 161 162 } 163 | Popular Tags |