View Javadoc
1   /*
2    * Copyright 2010 FatWire Corporation. All Rights Reserved.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *    http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package com.fatwire.gst.foundation.url.db;
17  
18  import java.util.Date;
19  
20  /**
21   * Bean holding the VanityUrl data.
22   * 
23   * @author Dolf Dijkstra
24   * @since November 1, 2011
25   * 
26   */
27  class VanityUrl {
28      private long id;
29      private String path;
30      private String assettype;
31      private long assetid;
32      private Date startdate;
33      private Date enddate;
34      private String opt_vwebroot;
35      private String opt_url_path;
36      private int opt_depth;
37      private String opt_site;
38  
39      public long getId() {
40          return id;
41      }
42  
43      public void setId(final long id) {
44          this.id = id;
45      }
46  
47      public String getPath() {
48          return path;
49      }
50  
51      public void setPath(final String path) {
52          this.path = path;
53      }
54  
55      public String getAssettype() {
56          return assettype;
57      }
58  
59      public void setAssettype(final String assettype) {
60          this.assettype = assettype;
61      }
62  
63      public long getAssetid() {
64          return assetid;
65      }
66  
67      public void setAssetid(final long assetid) {
68          this.assetid = assetid;
69      }
70  
71      public Date getStartdate() {
72          return startdate;
73      }
74  
75      public void setStartdate(final Date startdate) {
76          this.startdate = startdate;
77      }
78  
79      public Date getEnddate() {
80          return enddate;
81      }
82  
83      public void setEnddate(final Date enddate) {
84          this.enddate = enddate;
85      }
86  
87      public String getOpt_vwebroot() {
88          return opt_vwebroot;
89      }
90  
91      public void setOpt_vwebroot(final String opt_vwebroot) {
92          this.opt_vwebroot = opt_vwebroot;
93      }
94  
95      public String getOpt_url_path() {
96          return opt_url_path;
97      }
98  
99      public void setOpt_url_path(final String opt_url_path) {
100         this.opt_url_path = opt_url_path;
101     }
102 
103     public int getOpt_depth() {
104         return opt_depth;
105     }
106 
107     public void setOpt_depth(final int opt_depth) {
108         this.opt_depth = opt_depth;
109     }
110 
111     public String getOpt_site() {
112         return opt_site;
113     }
114 
115     public void setOpt_site(final String opt_site) {
116         this.opt_site = opt_site;
117     }
118 
119     @Override
120     public String toString() {
121         return "VanityUrl [path=" + path + ", assettype=" + assettype + ", assetid=" + assetid + "]";
122     }
123 
124 }