1 /****************************************************************************** 2 * Director.java - domain object 3 * $Id: Director.java,v 1.3 2015/05/05 17:10:14 dick Exp $ 4 * 5 * BuckoVidLib - The BuckoSoft Video Library 6 * Copyright(c) 2015 - Dick Balaska 7 * 8 * $Log: Director.java,v $ 9 * Revision 1.3 2015/05/05 17:10:14 dick 10 * When processing a video, check if Director/Writer/Actor/Genre exists in the database before writing a new one. 11 * 12 * Revision 1.2 2015/04/01 02:40:40 dick 13 * Director has an id and a name. 14 * 15 * Revision 1.1 2015/03/25 06:21:41 dick 16 * Define a Director 17 * 18 */ 19 package com.buckosoft.BuckoVidLib.domain; 20 21 /** Define a Director 22 * @author dick 23 * @since 2015-03-25 24 */ 25 public class Director { 26 private int id; 27 private String name; 28 29 /** bean constructor */ 30 public Director() {} 31 32 /** Convience constructor to set the fields 33 * @param name The name of this Director 34 */ 35 public Director(String name) { 36 this.name = name; 37 } 38 39 public void clone(Director other) { 40 this.id = other.id; 41 this.name = other.name; 42 } 43 44 /** 45 * @return the id 46 */ 47 public int getId() { 48 return id; 49 } 50 51 /** 52 * @param id the id to set 53 */ 54 public void setId(int id) { 55 this.id = id; 56 } 57 58 /** Get the name of this Director 59 * @return the name 60 */ 61 public String getName() { 62 return name; 63 } 64 65 /** Set the name of this Director 66 * @param tag the tag to set 67 */ 68 public void setName(String name) { 69 this.name = name; 70 } 71 72 }