source: trunk/gsdl3/src/packages/javagdbm/java/au/com/pharos/dbinterface/vf/VFItem.java@ 10737

Last change on this file since 10737 was 10737, checked in by kjdon, 19 years ago

Java Wrapper for GDBM, from Martin Pool. Original website gone, so added it all in here. I have modified the Makefiles to work in greenstone, and on macs, and added windows makefiles

  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1/*
2 * (C) Pharos IP Pty Ltd 1997
3 */
4package au.com.pharos.dbinterface.vf;
5
6import java.util.Date;
7
8public class VFItem {
9
10 /* The title of the item */
11 public String title;
12
13 /* The name fo the item's distributor */
14 public String distributor;
15
16 /* The category of the item */
17 // TODO: Create a more appropriate type for this?
18 public String category;
19
20 /* The rating of the item */
21 //TODO: Again, a more appropriate type?
22 public String rating;
23
24 /* The list price */
25 public float listPrice;
26
27 /* The supplier's price */
28 public float ourPrice;
29
30 /* The release date for the item */
31 public Date releaseDate;
32
33 /* The date upon which the video is accessible to PayTV */
34 public Date payTVWindow;
35
36 /* The date upon which the video is accessible to free-to-air TV */
37 public Date tvWindow;
38
39 /* The sell-through beginning date */
40 public Date sellThruWindow;
41
42 /* Whether or not the item has an internal magazine advertisement */
43 public boolean magAdvert;
44
45 /* The recommended number of items for Budget 1 stores */
46 public short budget1;
47
48 /* For budget 2 stores */
49 public short budget2;
50
51 /* Budget 3 stores */
52 public short budget3;
53
54 /* Budget 4 stores */
55 public short budget4;
56
57 /* Will the item be advertised by the VideoIndustry Professional Association */
58 boolean vipa;
59
60 /* Initialise all the attributes */
61 public VFItem(String newTitle,
62 String newDistrib,
63 String newCat,
64 String newRating,
65 float newList,
66 float newPrice,
67 Date newRelease,
68 Date newPaytv,
69 Date newTv,
70 boolean isMagAdvert,
71 short newBudget1,
72 short newBudget2,
73 short newBudget3,
74 short newBudget4
75 boolean newvipa)
76 {
77 title = newTitle;
78 distributor = newDistrib;
79 category = newCat;
80 rating = newRating;
81 listPrice = newList;
82 ourPrice = newPrice;
83 releaseDate = newRelease;
84 payTVWindow = newPaytv;
85 tvWindow = newTv;
86 magAdvert = isMagAdvert;
87 budget1 = newBudget1;
88 budget2 = newBudget2;
89 budget3 = newBudget3;
90 budget4 = newBudget4;
91 vipa = newvipa;
92 }
93
94 public boolean equals (Object o)
95 {
96 if (!(o instanceof VFItem)) {
97 return false;
98 }
99 VFItem other = (VFItem) o;
100 if (title.equals(other.title) && distributor.equals(other.distributor) && category.equals(other.category)) {
101 return true;
102 }
103 return false;
104 }
105
106}
Note: See TracBrowser for help on using the repository browser.