/* photo.java */ package historyPlaces; public class photo { private int photoID; private String filename; private String URL; private String comment; private String date; private String photographer; private int placeID; public photo(int id, String filename, String URL, String comment, String date, String photographer, int placeID){ this.photoID = id; this.filename = filename; this.URL = URL; this.comment = comment; this.date = date; this.photographer = photographer; this.placeID = placeID; } public photo(){ this(-1, "", "", "", "", "", -1); } public int getPhotoID(){ return this.photoID; } public String getFilename(){ return this.filename; } public String getURL(){ return this.URL; } public String getComment(){ return this.comment; } public String getDate(){ return this.date; } public String getPhotographer(){ return this.photographer; } public int getPlaceID(){ return this.placeID; } public boolean isURL(){ return URL.length() != 0; } }