PageRenderTime 121ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/kl/src/com/jeecms/core/entity/base/BaseCmsConfig.java

https://gitlab.com/lyc/kl
Java | 467 lines | 249 code | 90 blank | 128 comment | 14 complexity | 97bf5fae7194943d58b3163e19079a44 MD5 | raw file
  1. package com.jeecms.core.entity.base;
  2. import java.io.Serializable;
  3. import com.jeecms.core.entity.CmsConfigItem;
  4. /**
  5. * This is an object that contains data related to the jc_config table.
  6. * Do not modify this class because it will be overwritten if the configuration file
  7. * related to this class is modified.
  8. *
  9. * @hibernate.class
  10. * table="jc_config"
  11. */
  12. public abstract class BaseCmsConfig implements Serializable {
  13. public static String REF = "CmsConfig";
  14. public static String PROP_LOGIN_URL = "loginUrl";
  15. public static String PROP_COLOR = "color";
  16. public static String PROP_PROCESS_URL = "processUrl";
  17. public static String PROP_ALPHA = "alpha";
  18. public static String PROP_DEF_IMG = "defImg";
  19. public static String PROP_COUNT_CLEAR_TIME = "countClearTime";
  20. public static String PROP_COUNT_COPY_TIME = "countCopyTime";
  21. public static String PROP_PORT = "port";
  22. public static String PROP_DB_FILE_URI = "dbFileUri";
  23. public static String PROP_CONTEXT_PATH = "contextPath";
  24. public static String PROP_PASSWORD = "password";
  25. public static String PROP_OFFSET_X = "offsetX";
  26. public static String PROP_SERVLET_POINT = "servletPoint";
  27. public static String PROP_MIN_HEIGHT = "minHeight";
  28. public static String PROP_CONTENT = "content";
  29. public static String PROP_ON = "on";
  30. public static String PROP_DOWNLOAD_CODE = "downloadCode";
  31. public static String PROP_DOWNLOAD_TIME = "downloadTime";
  32. public static String PROP_HOST = "host";
  33. public static String PROP_POS = "pos";
  34. public static String PROP_MIN_WIDTH = "minWidth";
  35. public static String PROP_OFFSET_Y = "offsetY";
  36. public static String PROP_ENCODING = "encoding";
  37. public static String PROP_SIZE = "size";
  38. public static String PROP_IMAGE_PATH = "imagePath";
  39. public static String PROP_PERSONAL = "personal";
  40. public static String PROP_UPLOAD_TO_DB = "uploadToDb";
  41. public static String PROP_ID = "id";
  42. public static String PROP_USERNAME = "username";
  43. // constructors
  44. public BaseCmsConfig () {
  45. initialize();
  46. }
  47. /**
  48. * Constructor for primary key
  49. */
  50. public BaseCmsConfig (java.lang.Integer id) {
  51. this.setId(id);
  52. initialize();
  53. }
  54. /**
  55. * Constructor for required fields
  56. */
  57. public BaseCmsConfig (
  58. java.lang.Integer id,
  59. java.lang.String dbFileUri,
  60. java.lang.Boolean uploadToDb,
  61. java.lang.String defImg,
  62. java.lang.String loginUrl,
  63. java.util.Date countClearTime,
  64. java.util.Date countCopyTime,
  65. java.lang.String downloadCode,
  66. java.lang.Integer downloadTime) {
  67. this.setId(id);
  68. this.setDbFileUri(dbFileUri);
  69. this.setUploadToDb(uploadToDb);
  70. this.setDefImg(defImg);
  71. this.setLoginUrl(loginUrl);
  72. this.setCountClearTime(countClearTime);
  73. this.setCountCopyTime(countCopyTime);
  74. this.setDownloadCode(downloadCode);
  75. this.setDownloadTime(downloadTime);
  76. initialize();
  77. }
  78. protected void initialize () {}
  79. private int hashCode = Integer.MIN_VALUE;
  80. // primary key
  81. private java.lang.Integer id;
  82. // fields
  83. private java.lang.String contextPath;
  84. private java.lang.String servletPoint;
  85. private java.lang.Integer port;
  86. private java.lang.String dbFileUri;
  87. private java.lang.Boolean uploadToDb;
  88. private java.lang.String defImg;
  89. private java.lang.String loginUrl;
  90. private java.lang.String processUrl;
  91. private java.util.Date countClearTime;
  92. private java.util.Date countCopyTime;
  93. private java.lang.String downloadCode;
  94. private java.lang.Integer downloadTime;
  95. private java.lang.Boolean emailValidate;
  96. private java.lang.String officeHome;
  97. private java.lang.Integer officePort;
  98. private java.lang.String swftoolsHome;
  99. private java.lang.Boolean viewOnlyChecked;
  100. private java.lang.Boolean insideSite;
  101. // components
  102. com.jeecms.core.entity.MarkConfig m_markConfig;
  103. com.jeecms.core.entity.EmailConfig m_emailConfig;
  104. // collections
  105. private java.util.Map<java.lang.String, java.lang.String> attr;
  106. private java.util.Set<CmsConfigItem> registerItems;
  107. /**
  108. * Return the unique identifier of this class
  109. * @hibernate.id
  110. * generator-class="assigned"
  111. * column="config_id"
  112. */
  113. public java.lang.Integer getId () {
  114. return id;
  115. }
  116. /**
  117. * Set the unique identifier of this class
  118. * @param id the new ID
  119. */
  120. public void setId (java.lang.Integer id) {
  121. this.id = id;
  122. this.hashCode = Integer.MIN_VALUE;
  123. }
  124. /**
  125. * Return the value associated with the column: context_path
  126. */
  127. public java.lang.String getContextPath () {
  128. return contextPath;
  129. }
  130. /**
  131. * Set the value related to the column: context_path
  132. * @param contextPath the context_path value
  133. */
  134. public void setContextPath (java.lang.String contextPath) {
  135. this.contextPath = contextPath;
  136. }
  137. /**
  138. * Return the value associated with the column: servlet_point
  139. */
  140. public java.lang.String getServletPoint () {
  141. return servletPoint;
  142. }
  143. /**
  144. * Set the value related to the column: servlet_point
  145. * @param servletPoint the servlet_point value
  146. */
  147. public void setServletPoint (java.lang.String servletPoint) {
  148. this.servletPoint = servletPoint;
  149. }
  150. /**
  151. * Return the value associated with the column: port
  152. */
  153. public java.lang.Integer getPort () {
  154. return port;
  155. }
  156. /**
  157. * Set the value related to the column: port
  158. * @param port the port value
  159. */
  160. public void setPort (java.lang.Integer port) {
  161. this.port = port;
  162. }
  163. /**
  164. * Return the value associated with the column: db_file_uri
  165. */
  166. public java.lang.String getDbFileUri () {
  167. return dbFileUri;
  168. }
  169. /**
  170. * Set the value related to the column: db_file_uri
  171. * @param dbFileUri the db_file_uri value
  172. */
  173. public void setDbFileUri (java.lang.String dbFileUri) {
  174. this.dbFileUri = dbFileUri;
  175. }
  176. /**
  177. * Return the value associated with the column: is_upload_to_db
  178. */
  179. public java.lang.Boolean getUploadToDb () {
  180. return uploadToDb;
  181. }
  182. /**
  183. * Set the value related to the column: is_upload_to_db
  184. * @param uploadToDb the is_upload_to_db value
  185. */
  186. public void setUploadToDb (java.lang.Boolean uploadToDb) {
  187. this.uploadToDb = uploadToDb;
  188. }
  189. /**
  190. * Return the value associated with the column: def_img
  191. */
  192. public java.lang.String getDefImg () {
  193. return defImg;
  194. }
  195. /**
  196. * Set the value related to the column: def_img
  197. * @param defImg the def_img value
  198. */
  199. public void setDefImg (java.lang.String defImg) {
  200. this.defImg = defImg;
  201. }
  202. /**
  203. * Return the value associated with the column: login_url
  204. */
  205. public java.lang.String getLoginUrl () {
  206. return loginUrl;
  207. }
  208. /**
  209. * Set the value related to the column: login_url
  210. * @param loginUrl the login_url value
  211. */
  212. public void setLoginUrl (java.lang.String loginUrl) {
  213. this.loginUrl = loginUrl;
  214. }
  215. /**
  216. * Return the value associated with the column: process_url
  217. */
  218. public java.lang.String getProcessUrl () {
  219. return processUrl;
  220. }
  221. /**
  222. * Set the value related to the column: process_url
  223. * @param processUrl the process_url value
  224. */
  225. public void setProcessUrl (java.lang.String processUrl) {
  226. this.processUrl = processUrl;
  227. }
  228. /**
  229. * Return the value associated with the column: count_clear_time
  230. */
  231. public java.util.Date getCountClearTime () {
  232. return countClearTime;
  233. }
  234. /**
  235. * Set the value related to the column: count_clear_time
  236. * @param countClearTime the count_clear_time value
  237. */
  238. public void setCountClearTime (java.util.Date countClearTime) {
  239. this.countClearTime = countClearTime;
  240. }
  241. /**
  242. * Return the value associated with the column: count_copy_time
  243. */
  244. public java.util.Date getCountCopyTime () {
  245. return countCopyTime;
  246. }
  247. /**
  248. * Set the value related to the column: count_copy_time
  249. * @param countCopyTime the count_copy_time value
  250. */
  251. public void setCountCopyTime (java.util.Date countCopyTime) {
  252. this.countCopyTime = countCopyTime;
  253. }
  254. /**
  255. * Return the value associated with the column: download_code
  256. */
  257. public java.lang.String getDownloadCode () {
  258. return downloadCode;
  259. }
  260. /**
  261. * Set the value related to the column: download_code
  262. * @param downloadCode the download_code value
  263. */
  264. public void setDownloadCode (java.lang.String downloadCode) {
  265. this.downloadCode = downloadCode;
  266. }
  267. /**
  268. * Return the value associated with the column: download_time
  269. */
  270. public java.lang.Integer getDownloadTime () {
  271. return downloadTime;
  272. }
  273. /**
  274. * Set the value related to the column: download_time
  275. * @param downloadTime the download_time value
  276. */
  277. public void setDownloadTime (java.lang.Integer downloadTime) {
  278. this.downloadTime = downloadTime;
  279. }
  280. public java.lang.Boolean getEmailValidate() {
  281. return emailValidate;
  282. }
  283. public void setEmailValidate(java.lang.Boolean emailValidate) {
  284. this.emailValidate = emailValidate;
  285. }
  286. public java.lang.String getOfficeHome() {
  287. return officeHome;
  288. }
  289. public void setOfficeHome(java.lang.String officeHome) {
  290. this.officeHome = officeHome;
  291. }
  292. public java.lang.Integer getOfficePort() {
  293. return officePort;
  294. }
  295. public void setOfficePort(java.lang.Integer officePort) {
  296. this.officePort = officePort;
  297. }
  298. public java.lang.String getSwftoolsHome() {
  299. return swftoolsHome;
  300. }
  301. public void setSwftoolsHome(java.lang.String swftoolsHome) {
  302. this.swftoolsHome = swftoolsHome;
  303. }
  304. public java.lang.Boolean getViewOnlyChecked() {
  305. return viewOnlyChecked;
  306. }
  307. public void setViewOnlyChecked(java.lang.Boolean viewOnlyChecked) {
  308. this.viewOnlyChecked = viewOnlyChecked;
  309. }
  310. public java.lang.Boolean getInsideSite() {
  311. return insideSite;
  312. }
  313. public void setInsideSite(java.lang.Boolean insideSite) {
  314. this.insideSite = insideSite;
  315. }
  316. public com.jeecms.core.entity.MarkConfig getMarkConfig () {
  317. return m_markConfig;
  318. }
  319. /**
  320. * Set the value related to the column: ${prop.Column}
  321. * @param m_markConfig the ${prop.Column} value
  322. */
  323. public void setMarkConfig (com.jeecms.core.entity.MarkConfig m_markConfig) {
  324. this.m_markConfig = m_markConfig;
  325. }
  326. public com.jeecms.core.entity.EmailConfig getEmailConfig () {
  327. return m_emailConfig;
  328. }
  329. /**
  330. * Set the value related to the column: ${prop.Column}
  331. * @param m_emailConfig the ${prop.Column} value
  332. */
  333. public void setEmailConfig (com.jeecms.core.entity.EmailConfig m_emailConfig) {
  334. this.m_emailConfig = m_emailConfig;
  335. }
  336. /**
  337. * Return the value associated with the column: attr
  338. */
  339. public java.util.Map<java.lang.String, java.lang.String> getAttr () {
  340. return attr;
  341. }
  342. /**
  343. * Set the value related to the column: attr
  344. * @param attr the attr value
  345. */
  346. public void setAttr (java.util.Map<java.lang.String, java.lang.String> attr) {
  347. this.attr = attr;
  348. }
  349. public java.util.Set<CmsConfigItem> getRegisterItems() {
  350. return registerItems;
  351. }
  352. public void setRegisterItems(java.util.Set<CmsConfigItem> registerItems) {
  353. this.registerItems = registerItems;
  354. }
  355. public boolean equals (Object obj) {
  356. if (null == obj) return false;
  357. if (!(obj instanceof com.jeecms.core.entity.CmsConfig)) return false;
  358. else {
  359. com.jeecms.core.entity.CmsConfig cmsConfig = (com.jeecms.core.entity.CmsConfig) obj;
  360. if (null == this.getId() || null == cmsConfig.getId()) return false;
  361. else return (this.getId().equals(cmsConfig.getId()));
  362. }
  363. }
  364. public int hashCode () {
  365. if (Integer.MIN_VALUE == this.hashCode) {
  366. if (null == this.getId()) return super.hashCode();
  367. else {
  368. String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
  369. this.hashCode = hashStr.hashCode();
  370. }
  371. }
  372. return this.hashCode;
  373. }
  374. public String toString () {
  375. return super.toString();
  376. }
  377. }