/src/com/jeecms/cms/entity/assist/base/BaseCmsSiteAccess.java

https://gitlab.com/MetadataDev/mcms · Java · 405 lines · 186 code · 79 blank · 140 comment · 14 complexity · 9ea39b7d1a4692f00ce9a121efe4d55f MD5 · raw file

  1. package com.jeecms.cms.entity.assist.base;
  2. import java.io.Serializable;
  3. /**
  4. * This is an object that contains data related to the jc_site_access table.
  5. * Do not modify this class because it will be overwritten if the configuration file
  6. * related to this class is modified.
  7. *
  8. * @hibernate.class
  9. * table="jc_site_access"
  10. */
  11. public abstract class BaseCmsSiteAccess implements Serializable {
  12. public static String REF = "CmsSiteAccess";
  13. public static String PROP_SESSION_ID = "sessionId";
  14. public static String PROP_ENTRY_PAGE = "entryPage";
  15. public static String PROP_IP = "ip";
  16. public static String PROP_SITE = "site";
  17. public static String PROP_KEYWORD = "keyword";
  18. public static String PROP_AREA = "area";
  19. public static String PROP_VISIT_PAGE_COUNT = "visitPageCount";
  20. public static String PROP_ENGINE = "engine";
  21. public static String PROP_BROWSER = "browser";
  22. public static String PROP_EXTERNAL_LINK = "externalLink";
  23. public static String PROP_VISIT_SECOND = "visitSecond";
  24. public static String PROP_ID = "id";
  25. public static String PROP_ACCESS_TIME = "accessTime";
  26. public static String PROP_ACCESS_DATE = "accessDate";
  27. public static String PROP_OPERATING_SYSTEM = "operatingSystem";
  28. public static String PROP_LAST_STOP_PAGE = "lastStopPage";
  29. public static String PROP_ACCESS_SOURCE = "accessSource";
  30. // constructors
  31. public BaseCmsSiteAccess () {
  32. initialize();
  33. }
  34. /**
  35. * Constructor for primary key
  36. */
  37. public BaseCmsSiteAccess (java.lang.Integer id) {
  38. this.setId(id);
  39. initialize();
  40. }
  41. /**
  42. * Constructor for required fields
  43. */
  44. public BaseCmsSiteAccess (
  45. java.lang.Integer id,
  46. com.jeecms.core.entity.CmsSite site,
  47. java.lang.String sessionId,
  48. java.util.Date accessTime,
  49. java.util.Date accessDate) {
  50. this.setId(id);
  51. this.setSite(site);
  52. this.setSessionId(sessionId);
  53. this.setAccessTime(accessTime);
  54. this.setAccessDate(accessDate);
  55. initialize();
  56. }
  57. protected void initialize () {}
  58. private int hashCode = Integer.MIN_VALUE;
  59. // primary key
  60. private java.lang.Integer id;
  61. // fields
  62. private java.lang.String sessionId;
  63. private java.util.Date accessTime;
  64. private java.util.Date accessDate;
  65. private java.lang.String ip;
  66. private java.lang.String area;
  67. private java.lang.String accessSource;
  68. private java.lang.String externalLink;
  69. private java.lang.String engine;
  70. private java.lang.String entryPage;
  71. private java.lang.String lastStopPage;
  72. private java.lang.Integer visitSecond;
  73. private java.lang.Integer visitPageCount;
  74. private java.lang.String operatingSystem;
  75. private java.lang.String browser;
  76. private java.lang.String keyword;
  77. // many to one
  78. private com.jeecms.core.entity.CmsSite site;
  79. /**
  80. * Return the unique identifier of this class
  81. * @hibernate.id
  82. * generator-class="identity"
  83. * column="access_id"
  84. */
  85. public java.lang.Integer getId () {
  86. return id;
  87. }
  88. /**
  89. * Set the unique identifier of this class
  90. * @param id the new ID
  91. */
  92. public void setId (java.lang.Integer id) {
  93. this.id = id;
  94. this.hashCode = Integer.MIN_VALUE;
  95. }
  96. /**
  97. * Return the value associated with the column: session_id
  98. */
  99. public java.lang.String getSessionId () {
  100. return sessionId;
  101. }
  102. /**
  103. * Set the value related to the column: session_id
  104. * @param sessionId the session_id value
  105. */
  106. public void setSessionId (java.lang.String sessionId) {
  107. this.sessionId = sessionId;
  108. }
  109. /**
  110. * Return the value associated with the column: access_time
  111. */
  112. public java.util.Date getAccessTime () {
  113. return accessTime;
  114. }
  115. /**
  116. * Set the value related to the column: access_time
  117. * @param accessTime the access_time value
  118. */
  119. public void setAccessTime (java.util.Date accessTime) {
  120. this.accessTime = accessTime;
  121. }
  122. /**
  123. * Return the value associated with the column: access_date
  124. */
  125. public java.util.Date getAccessDate () {
  126. return accessDate;
  127. }
  128. /**
  129. * Set the value related to the column: access_date
  130. * @param accessDate the access_date value
  131. */
  132. public void setAccessDate (java.util.Date accessDate) {
  133. this.accessDate = accessDate;
  134. }
  135. /**
  136. * Return the value associated with the column: ip
  137. */
  138. public java.lang.String getIp () {
  139. return ip;
  140. }
  141. /**
  142. * Set the value related to the column: ip
  143. * @param ip the ip value
  144. */
  145. public void setIp (java.lang.String ip) {
  146. this.ip = ip;
  147. }
  148. /**
  149. * Return the value associated with the column: area
  150. */
  151. public java.lang.String getArea () {
  152. return area;
  153. }
  154. /**
  155. * Set the value related to the column: area
  156. * @param area the area value
  157. */
  158. public void setArea (java.lang.String area) {
  159. this.area = area;
  160. }
  161. /**
  162. * Return the value associated with the column: access_source
  163. */
  164. public java.lang.String getAccessSource () {
  165. return accessSource;
  166. }
  167. /**
  168. * Set the value related to the column: access_source
  169. * @param accessSource the access_source value
  170. */
  171. public void setAccessSource (java.lang.String accessSource) {
  172. this.accessSource = accessSource;
  173. }
  174. /**
  175. * Return the value associated with the column: external_link
  176. */
  177. public java.lang.String getExternalLink () {
  178. return externalLink;
  179. }
  180. /**
  181. * Set the value related to the column: external_link
  182. * @param externalLink the external_link value
  183. */
  184. public void setExternalLink (java.lang.String externalLink) {
  185. this.externalLink = externalLink;
  186. }
  187. /**
  188. * Return the value associated with the column: engine
  189. */
  190. public java.lang.String getEngine () {
  191. return engine;
  192. }
  193. /**
  194. * Set the value related to the column: engine
  195. * @param engine the engine value
  196. */
  197. public void setEngine (java.lang.String engine) {
  198. this.engine = engine;
  199. }
  200. /**
  201. * Return the value associated with the column: entry_page
  202. */
  203. public java.lang.String getEntryPage () {
  204. return entryPage;
  205. }
  206. /**
  207. * Set the value related to the column: entry_page
  208. * @param entryPage the entry_page value
  209. */
  210. public void setEntryPage (java.lang.String entryPage) {
  211. this.entryPage = entryPage;
  212. }
  213. /**
  214. * Return the value associated with the column: last_stop_page
  215. */
  216. public java.lang.String getLastStopPage () {
  217. return lastStopPage;
  218. }
  219. /**
  220. * Set the value related to the column: last_stop_page
  221. * @param lastStopPage the last_stop_page value
  222. */
  223. public void setLastStopPage (java.lang.String lastStopPage) {
  224. this.lastStopPage = lastStopPage;
  225. }
  226. /**
  227. * Return the value associated with the column: visit_second
  228. */
  229. public java.lang.Integer getVisitSecond () {
  230. return visitSecond;
  231. }
  232. /**
  233. * Set the value related to the column: visit_second
  234. * @param visitSecond the visit_second value
  235. */
  236. public void setVisitSecond (java.lang.Integer visitSecond) {
  237. this.visitSecond = visitSecond;
  238. }
  239. /**
  240. * Return the value associated with the column: visit_page_count
  241. */
  242. public java.lang.Integer getVisitPageCount () {
  243. return visitPageCount;
  244. }
  245. /**
  246. * Set the value related to the column: visit_page_count
  247. * @param visitPageCount the visit_page_count value
  248. */
  249. public void setVisitPageCount (java.lang.Integer visitPageCount) {
  250. this.visitPageCount = visitPageCount;
  251. }
  252. /**
  253. * Return the value associated with the column: operating_system
  254. */
  255. public java.lang.String getOperatingSystem () {
  256. return operatingSystem;
  257. }
  258. /**
  259. * Set the value related to the column: operating_system
  260. * @param operatingSystem the operating_system value
  261. */
  262. public void setOperatingSystem (java.lang.String operatingSystem) {
  263. this.operatingSystem = operatingSystem;
  264. }
  265. /**
  266. * Return the value associated with the column: browser
  267. */
  268. public java.lang.String getBrowser () {
  269. return browser;
  270. }
  271. /**
  272. * Set the value related to the column: browser
  273. * @param browser the browser value
  274. */
  275. public void setBrowser (java.lang.String browser) {
  276. this.browser = browser;
  277. }
  278. /**
  279. * Return the value associated with the column: keyword
  280. */
  281. public java.lang.String getKeyword () {
  282. return keyword;
  283. }
  284. /**
  285. * Set the value related to the column: keyword
  286. * @param keyword the keyword value
  287. */
  288. public void setKeyword (java.lang.String keyword) {
  289. this.keyword = keyword;
  290. }
  291. /**
  292. * Return the value associated with the column: site_id
  293. */
  294. public com.jeecms.core.entity.CmsSite getSite () {
  295. return site;
  296. }
  297. /**
  298. * Set the value related to the column: site_id
  299. * @param site the site_id value
  300. */
  301. public void setSite (com.jeecms.core.entity.CmsSite site) {
  302. this.site = site;
  303. }
  304. public boolean equals (Object obj) {
  305. if (null == obj) return false;
  306. if (!(obj instanceof com.jeecms.cms.entity.assist.CmsSiteAccess)) return false;
  307. else {
  308. com.jeecms.cms.entity.assist.CmsSiteAccess cmsSiteAccess = (com.jeecms.cms.entity.assist.CmsSiteAccess) obj;
  309. if (null == this.getId() || null == cmsSiteAccess.getId()) return false;
  310. else return (this.getId().equals(cmsSiteAccess.getId()));
  311. }
  312. }
  313. public int hashCode () {
  314. if (Integer.MIN_VALUE == this.hashCode) {
  315. if (null == this.getId()) return super.hashCode();
  316. else {
  317. String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
  318. this.hashCode = hashStr.hashCode();
  319. }
  320. }
  321. return this.hashCode;
  322. }
  323. public String toString () {
  324. return super.toString();
  325. }
  326. }