PageRenderTime 45ms CodeModel.GetById 27ms app.highlight 16ms RepoModel.GetById 0ms app.codeStats 0ms

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

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