1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.model.impl;
24  
25  import com.liferay.portal.kernel.bean.ReadOnlyBeanHandler;
26  import com.liferay.portal.kernel.util.GetterUtil;
27  import com.liferay.portal.kernel.util.HtmlUtil;
28  import com.liferay.portal.model.PasswordPolicy;
29  import com.liferay.portal.model.PasswordPolicySoap;
30  
31  import java.io.Serializable;
32  
33  import java.lang.reflect.Proxy;
34  
35  import java.sql.Types;
36  
37  import java.util.ArrayList;
38  import java.util.Date;
39  import java.util.List;
40  
41  /**
42   * <a href="PasswordPolicyModelImpl.java.html"><b><i>View Source</i></b></a>
43   *
44   * <p>
45   * ServiceBuilder generated this class. Modifications in this class will be
46   * overwritten the next time is generated.
47   * </p>
48   *
49   * <p>
50   * This class is a model that represents the <code>PasswordPolicy</code> table
51   * in the database.
52   * </p>
53   *
54   * @author Brian Wing Shun Chan
55   *
56   * @see com.liferay.portal.model.PasswordPolicy
57   * @see com.liferay.portal.model.PasswordPolicyModel
58   * @see com.liferay.portal.model.impl.PasswordPolicyImpl
59   *
60   */
61  public class PasswordPolicyModelImpl extends BaseModelImpl<PasswordPolicy> {
62      public static final String TABLE_NAME = "PasswordPolicy";
63      public static final Object[][] TABLE_COLUMNS = {
64              { "passwordPolicyId", new Integer(Types.BIGINT) },
65              
66  
67              { "companyId", new Integer(Types.BIGINT) },
68              
69  
70              { "userId", new Integer(Types.BIGINT) },
71              
72  
73              { "userName", new Integer(Types.VARCHAR) },
74              
75  
76              { "createDate", new Integer(Types.TIMESTAMP) },
77              
78  
79              { "modifiedDate", new Integer(Types.TIMESTAMP) },
80              
81  
82              { "defaultPolicy", new Integer(Types.BOOLEAN) },
83              
84  
85              { "name", new Integer(Types.VARCHAR) },
86              
87  
88              { "description", new Integer(Types.VARCHAR) },
89              
90  
91              { "changeable", new Integer(Types.BOOLEAN) },
92              
93  
94              { "changeRequired", new Integer(Types.BOOLEAN) },
95              
96  
97              { "minAge", new Integer(Types.BIGINT) },
98              
99  
100             { "checkSyntax", new Integer(Types.BOOLEAN) },
101             
102 
103             { "allowDictionaryWords", new Integer(Types.BOOLEAN) },
104             
105 
106             { "minLength", new Integer(Types.INTEGER) },
107             
108 
109             { "history", new Integer(Types.BOOLEAN) },
110             
111 
112             { "historyCount", new Integer(Types.INTEGER) },
113             
114 
115             { "expireable", new Integer(Types.BOOLEAN) },
116             
117 
118             { "maxAge", new Integer(Types.BIGINT) },
119             
120 
121             { "warningTime", new Integer(Types.BIGINT) },
122             
123 
124             { "graceLimit", new Integer(Types.INTEGER) },
125             
126 
127             { "lockout", new Integer(Types.BOOLEAN) },
128             
129 
130             { "maxFailure", new Integer(Types.INTEGER) },
131             
132 
133             { "lockoutDuration", new Integer(Types.BIGINT) },
134             
135 
136             { "requireUnlock", new Integer(Types.BOOLEAN) },
137             
138 
139             { "resetFailureCount", new Integer(Types.BIGINT) }
140         };
141     public static final String TABLE_SQL_CREATE = "create table PasswordPolicy (passwordPolicyId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,defaultPolicy BOOLEAN,name VARCHAR(75) null,description STRING null,changeable BOOLEAN,changeRequired BOOLEAN,minAge LONG,checkSyntax BOOLEAN,allowDictionaryWords BOOLEAN,minLength INTEGER,history BOOLEAN,historyCount INTEGER,expireable BOOLEAN,maxAge LONG,warningTime LONG,graceLimit INTEGER,lockout BOOLEAN,maxFailure INTEGER,lockoutDuration LONG,requireUnlock BOOLEAN,resetFailureCount LONG)";
142     public static final String TABLE_SQL_DROP = "drop table PasswordPolicy";
143     public static final String DATA_SOURCE = "liferayDataSource";
144     public static final String SESSION_FACTORY = "liferaySessionFactory";
145     public static final String TX_MANAGER = "liferayTransactionManager";
146     public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
147                 "value.object.entity.cache.enabled.com.liferay.portal.model.PasswordPolicy"),
148             true);
149     public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
150                 "value.object.finder.cache.enabled.com.liferay.portal.model.PasswordPolicy"),
151             true);
152 
153     public static PasswordPolicy toModel(PasswordPolicySoap soapModel) {
154         PasswordPolicy model = new PasswordPolicyImpl();
155 
156         model.setPasswordPolicyId(soapModel.getPasswordPolicyId());
157         model.setCompanyId(soapModel.getCompanyId());
158         model.setUserId(soapModel.getUserId());
159         model.setUserName(soapModel.getUserName());
160         model.setCreateDate(soapModel.getCreateDate());
161         model.setModifiedDate(soapModel.getModifiedDate());
162         model.setDefaultPolicy(soapModel.getDefaultPolicy());
163         model.setName(soapModel.getName());
164         model.setDescription(soapModel.getDescription());
165         model.setChangeable(soapModel.getChangeable());
166         model.setChangeRequired(soapModel.getChangeRequired());
167         model.setMinAge(soapModel.getMinAge());
168         model.setCheckSyntax(soapModel.getCheckSyntax());
169         model.setAllowDictionaryWords(soapModel.getAllowDictionaryWords());
170         model.setMinLength(soapModel.getMinLength());
171         model.setHistory(soapModel.getHistory());
172         model.setHistoryCount(soapModel.getHistoryCount());
173         model.setExpireable(soapModel.getExpireable());
174         model.setMaxAge(soapModel.getMaxAge());
175         model.setWarningTime(soapModel.getWarningTime());
176         model.setGraceLimit(soapModel.getGraceLimit());
177         model.setLockout(soapModel.getLockout());
178         model.setMaxFailure(soapModel.getMaxFailure());
179         model.setLockoutDuration(soapModel.getLockoutDuration());
180         model.setRequireUnlock(soapModel.getRequireUnlock());
181         model.setResetFailureCount(soapModel.getResetFailureCount());
182 
183         return model;
184     }
185 
186     public static List<PasswordPolicy> toModels(PasswordPolicySoap[] soapModels) {
187         List<PasswordPolicy> models = new ArrayList<PasswordPolicy>(soapModels.length);
188 
189         for (PasswordPolicySoap soapModel : soapModels) {
190             models.add(toModel(soapModel));
191         }
192 
193         return models;
194     }
195 
196     public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
197                 "lock.expiration.time.com.liferay.portal.model.PasswordPolicy"));
198 
199     public PasswordPolicyModelImpl() {
200     }
201 
202     public long getPrimaryKey() {
203         return _passwordPolicyId;
204     }
205 
206     public void setPrimaryKey(long pk) {
207         setPasswordPolicyId(pk);
208     }
209 
210     public Serializable getPrimaryKeyObj() {
211         return new Long(_passwordPolicyId);
212     }
213 
214     public long getPasswordPolicyId() {
215         return _passwordPolicyId;
216     }
217 
218     public void setPasswordPolicyId(long passwordPolicyId) {
219         _passwordPolicyId = passwordPolicyId;
220     }
221 
222     public long getCompanyId() {
223         return _companyId;
224     }
225 
226     public void setCompanyId(long companyId) {
227         _companyId = companyId;
228 
229         if (!_setOriginalCompanyId) {
230             _setOriginalCompanyId = true;
231 
232             _originalCompanyId = companyId;
233         }
234     }
235 
236     public long getOriginalCompanyId() {
237         return _originalCompanyId;
238     }
239 
240     public long getUserId() {
241         return _userId;
242     }
243 
244     public void setUserId(long userId) {
245         _userId = userId;
246     }
247 
248     public String getUserName() {
249         return GetterUtil.getString(_userName);
250     }
251 
252     public void setUserName(String userName) {
253         _userName = userName;
254     }
255 
256     public Date getCreateDate() {
257         return _createDate;
258     }
259 
260     public void setCreateDate(Date createDate) {
261         _createDate = createDate;
262     }
263 
264     public Date getModifiedDate() {
265         return _modifiedDate;
266     }
267 
268     public void setModifiedDate(Date modifiedDate) {
269         _modifiedDate = modifiedDate;
270     }
271 
272     public boolean getDefaultPolicy() {
273         return _defaultPolicy;
274     }
275 
276     public boolean isDefaultPolicy() {
277         return _defaultPolicy;
278     }
279 
280     public void setDefaultPolicy(boolean defaultPolicy) {
281         _defaultPolicy = defaultPolicy;
282 
283         if (!_setOriginalDefaultPolicy) {
284             _setOriginalDefaultPolicy = true;
285 
286             _originalDefaultPolicy = defaultPolicy;
287         }
288     }
289 
290     public boolean getOriginalDefaultPolicy() {
291         return _originalDefaultPolicy;
292     }
293 
294     public String getName() {
295         return GetterUtil.getString(_name);
296     }
297 
298     public void setName(String name) {
299         _name = name;
300 
301         if (_originalName == null) {
302             _originalName = name;
303         }
304     }
305 
306     public String getOriginalName() {
307         return GetterUtil.getString(_originalName);
308     }
309 
310     public String getDescription() {
311         return GetterUtil.getString(_description);
312     }
313 
314     public void setDescription(String description) {
315         _description = description;
316     }
317 
318     public boolean getChangeable() {
319         return _changeable;
320     }
321 
322     public boolean isChangeable() {
323         return _changeable;
324     }
325 
326     public void setChangeable(boolean changeable) {
327         _changeable = changeable;
328     }
329 
330     public boolean getChangeRequired() {
331         return _changeRequired;
332     }
333 
334     public boolean isChangeRequired() {
335         return _changeRequired;
336     }
337 
338     public void setChangeRequired(boolean changeRequired) {
339         _changeRequired = changeRequired;
340     }
341 
342     public long getMinAge() {
343         return _minAge;
344     }
345 
346     public void setMinAge(long minAge) {
347         _minAge = minAge;
348     }
349 
350     public boolean getCheckSyntax() {
351         return _checkSyntax;
352     }
353 
354     public boolean isCheckSyntax() {
355         return _checkSyntax;
356     }
357 
358     public void setCheckSyntax(boolean checkSyntax) {
359         _checkSyntax = checkSyntax;
360     }
361 
362     public boolean getAllowDictionaryWords() {
363         return _allowDictionaryWords;
364     }
365 
366     public boolean isAllowDictionaryWords() {
367         return _allowDictionaryWords;
368     }
369 
370     public void setAllowDictionaryWords(boolean allowDictionaryWords) {
371         _allowDictionaryWords = allowDictionaryWords;
372     }
373 
374     public int getMinLength() {
375         return _minLength;
376     }
377 
378     public void setMinLength(int minLength) {
379         _minLength = minLength;
380     }
381 
382     public boolean getHistory() {
383         return _history;
384     }
385 
386     public boolean isHistory() {
387         return _history;
388     }
389 
390     public void setHistory(boolean history) {
391         _history = history;
392     }
393 
394     public int getHistoryCount() {
395         return _historyCount;
396     }
397 
398     public void setHistoryCount(int historyCount) {
399         _historyCount = historyCount;
400     }
401 
402     public boolean getExpireable() {
403         return _expireable;
404     }
405 
406     public boolean isExpireable() {
407         return _expireable;
408     }
409 
410     public void setExpireable(boolean expireable) {
411         _expireable = expireable;
412     }
413 
414     public long getMaxAge() {
415         return _maxAge;
416     }
417 
418     public void setMaxAge(long maxAge) {
419         _maxAge = maxAge;
420     }
421 
422     public long getWarningTime() {
423         return _warningTime;
424     }
425 
426     public void setWarningTime(long warningTime) {
427         _warningTime = warningTime;
428     }
429 
430     public int getGraceLimit() {
431         return _graceLimit;
432     }
433 
434     public void setGraceLimit(int graceLimit) {
435         _graceLimit = graceLimit;
436     }
437 
438     public boolean getLockout() {
439         return _lockout;
440     }
441 
442     public boolean isLockout() {
443         return _lockout;
444     }
445 
446     public void setLockout(boolean lockout) {
447         _lockout = lockout;
448     }
449 
450     public int getMaxFailure() {
451         return _maxFailure;
452     }
453 
454     public void setMaxFailure(int maxFailure) {
455         _maxFailure = maxFailure;
456     }
457 
458     public long getLockoutDuration() {
459         return _lockoutDuration;
460     }
461 
462     public void setLockoutDuration(long lockoutDuration) {
463         _lockoutDuration = lockoutDuration;
464     }
465 
466     public boolean getRequireUnlock() {
467         return _requireUnlock;
468     }
469 
470     public boolean isRequireUnlock() {
471         return _requireUnlock;
472     }
473 
474     public void setRequireUnlock(boolean requireUnlock) {
475         _requireUnlock = requireUnlock;
476     }
477 
478     public long getResetFailureCount() {
479         return _resetFailureCount;
480     }
481 
482     public void setResetFailureCount(long resetFailureCount) {
483         _resetFailureCount = resetFailureCount;
484     }
485 
486     public PasswordPolicy toEscapedModel() {
487         if (isEscapedModel()) {
488             return (PasswordPolicy)this;
489         }
490         else {
491             PasswordPolicy model = new PasswordPolicyImpl();
492 
493             model.setNew(isNew());
494             model.setEscapedModel(true);
495 
496             model.setPasswordPolicyId(getPasswordPolicyId());
497             model.setCompanyId(getCompanyId());
498             model.setUserId(getUserId());
499             model.setUserName(HtmlUtil.escape(getUserName()));
500             model.setCreateDate(getCreateDate());
501             model.setModifiedDate(getModifiedDate());
502             model.setDefaultPolicy(getDefaultPolicy());
503             model.setName(HtmlUtil.escape(getName()));
504             model.setDescription(HtmlUtil.escape(getDescription()));
505             model.setChangeable(getChangeable());
506             model.setChangeRequired(getChangeRequired());
507             model.setMinAge(getMinAge());
508             model.setCheckSyntax(getCheckSyntax());
509             model.setAllowDictionaryWords(getAllowDictionaryWords());
510             model.setMinLength(getMinLength());
511             model.setHistory(getHistory());
512             model.setHistoryCount(getHistoryCount());
513             model.setExpireable(getExpireable());
514             model.setMaxAge(getMaxAge());
515             model.setWarningTime(getWarningTime());
516             model.setGraceLimit(getGraceLimit());
517             model.setLockout(getLockout());
518             model.setMaxFailure(getMaxFailure());
519             model.setLockoutDuration(getLockoutDuration());
520             model.setRequireUnlock(getRequireUnlock());
521             model.setResetFailureCount(getResetFailureCount());
522 
523             model = (PasswordPolicy)Proxy.newProxyInstance(PasswordPolicy.class.getClassLoader(),
524                     new Class[] { PasswordPolicy.class },
525                     new ReadOnlyBeanHandler(model));
526 
527             return model;
528         }
529     }
530 
531     public Object clone() {
532         PasswordPolicyImpl clone = new PasswordPolicyImpl();
533 
534         clone.setPasswordPolicyId(getPasswordPolicyId());
535         clone.setCompanyId(getCompanyId());
536         clone.setUserId(getUserId());
537         clone.setUserName(getUserName());
538         clone.setCreateDate(getCreateDate());
539         clone.setModifiedDate(getModifiedDate());
540         clone.setDefaultPolicy(getDefaultPolicy());
541         clone.setName(getName());
542         clone.setDescription(getDescription());
543         clone.setChangeable(getChangeable());
544         clone.setChangeRequired(getChangeRequired());
545         clone.setMinAge(getMinAge());
546         clone.setCheckSyntax(getCheckSyntax());
547         clone.setAllowDictionaryWords(getAllowDictionaryWords());
548         clone.setMinLength(getMinLength());
549         clone.setHistory(getHistory());
550         clone.setHistoryCount(getHistoryCount());
551         clone.setExpireable(getExpireable());
552         clone.setMaxAge(getMaxAge());
553         clone.setWarningTime(getWarningTime());
554         clone.setGraceLimit(getGraceLimit());
555         clone.setLockout(getLockout());
556         clone.setMaxFailure(getMaxFailure());
557         clone.setLockoutDuration(getLockoutDuration());
558         clone.setRequireUnlock(getRequireUnlock());
559         clone.setResetFailureCount(getResetFailureCount());
560 
561         return clone;
562     }
563 
564     public int compareTo(PasswordPolicy passwordPolicy) {
565         long pk = passwordPolicy.getPrimaryKey();
566 
567         if (getPrimaryKey() < pk) {
568             return -1;
569         }
570         else if (getPrimaryKey() > pk) {
571             return 1;
572         }
573         else {
574             return 0;
575         }
576     }
577 
578     public boolean equals(Object obj) {
579         if (obj == null) {
580             return false;
581         }
582 
583         PasswordPolicy passwordPolicy = null;
584 
585         try {
586             passwordPolicy = (PasswordPolicy)obj;
587         }
588         catch (ClassCastException cce) {
589             return false;
590         }
591 
592         long pk = passwordPolicy.getPrimaryKey();
593 
594         if (getPrimaryKey() == pk) {
595             return true;
596         }
597         else {
598             return false;
599         }
600     }
601 
602     public int hashCode() {
603         return (int)getPrimaryKey();
604     }
605 
606     public String toString() {
607         StringBuilder sb = new StringBuilder();
608 
609         sb.append("{passwordPolicyId=");
610         sb.append(getPasswordPolicyId());
611         sb.append(", companyId=");
612         sb.append(getCompanyId());
613         sb.append(", userId=");
614         sb.append(getUserId());
615         sb.append(", userName=");
616         sb.append(getUserName());
617         sb.append(", createDate=");
618         sb.append(getCreateDate());
619         sb.append(", modifiedDate=");
620         sb.append(getModifiedDate());
621         sb.append(", defaultPolicy=");
622         sb.append(getDefaultPolicy());
623         sb.append(", name=");
624         sb.append(getName());
625         sb.append(", description=");
626         sb.append(getDescription());
627         sb.append(", changeable=");
628         sb.append(getChangeable());
629         sb.append(", changeRequired=");
630         sb.append(getChangeRequired());
631         sb.append(", minAge=");
632         sb.append(getMinAge());
633         sb.append(", checkSyntax=");
634         sb.append(getCheckSyntax());
635         sb.append(", allowDictionaryWords=");
636         sb.append(getAllowDictionaryWords());
637         sb.append(", minLength=");
638         sb.append(getMinLength());
639         sb.append(", history=");
640         sb.append(getHistory());
641         sb.append(", historyCount=");
642         sb.append(getHistoryCount());
643         sb.append(", expireable=");
644         sb.append(getExpireable());
645         sb.append(", maxAge=");
646         sb.append(getMaxAge());
647         sb.append(", warningTime=");
648         sb.append(getWarningTime());
649         sb.append(", graceLimit=");
650         sb.append(getGraceLimit());
651         sb.append(", lockout=");
652         sb.append(getLockout());
653         sb.append(", maxFailure=");
654         sb.append(getMaxFailure());
655         sb.append(", lockoutDuration=");
656         sb.append(getLockoutDuration());
657         sb.append(", requireUnlock=");
658         sb.append(getRequireUnlock());
659         sb.append(", resetFailureCount=");
660         sb.append(getResetFailureCount());
661         sb.append("}");
662 
663         return sb.toString();
664     }
665 
666     public String toXmlString() {
667         StringBuilder sb = new StringBuilder();
668 
669         sb.append("<model><model-name>");
670         sb.append("com.liferay.portal.model.PasswordPolicy");
671         sb.append("</model-name>");
672 
673         sb.append(
674             "<column><column-name>passwordPolicyId</column-name><column-value><![CDATA[");
675         sb.append(getPasswordPolicyId());
676         sb.append("]]></column-value></column>");
677         sb.append(
678             "<column><column-name>companyId</column-name><column-value><![CDATA[");
679         sb.append(getCompanyId());
680         sb.append("]]></column-value></column>");
681         sb.append(
682             "<column><column-name>userId</column-name><column-value><![CDATA[");
683         sb.append(getUserId());
684         sb.append("]]></column-value></column>");
685         sb.append(
686             "<column><column-name>userName</column-name><column-value><![CDATA[");
687         sb.append(getUserName());
688         sb.append("]]></column-value></column>");
689         sb.append(
690             "<column><column-name>createDate</column-name><column-value><![CDATA[");
691         sb.append(getCreateDate());
692         sb.append("]]></column-value></column>");
693         sb.append(
694             "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
695         sb.append(getModifiedDate());
696         sb.append("]]></column-value></column>");
697         sb.append(
698             "<column><column-name>defaultPolicy</column-name><column-value><![CDATA[");
699         sb.append(getDefaultPolicy());
700         sb.append("]]></column-value></column>");
701         sb.append(
702             "<column><column-name>name</column-name><column-value><![CDATA[");
703         sb.append(getName());
704         sb.append("]]></column-value></column>");
705         sb.append(
706             "<column><column-name>description</column-name><column-value><![CDATA[");
707         sb.append(getDescription());
708         sb.append("]]></column-value></column>");
709         sb.append(
710             "<column><column-name>changeable</column-name><column-value><![CDATA[");
711         sb.append(getChangeable());
712         sb.append("]]></column-value></column>");
713         sb.append(
714             "<column><column-name>changeRequired</column-name><column-value><![CDATA[");
715         sb.append(getChangeRequired());
716         sb.append("]]></column-value></column>");
717         sb.append(
718             "<column><column-name>minAge</column-name><column-value><![CDATA[");
719         sb.append(getMinAge());
720         sb.append("]]></column-value></column>");
721         sb.append(
722             "<column><column-name>checkSyntax</column-name><column-value><![CDATA[");
723         sb.append(getCheckSyntax());
724         sb.append("]]></column-value></column>");
725         sb.append(
726             "<column><column-name>allowDictionaryWords</column-name><column-value><![CDATA[");
727         sb.append(getAllowDictionaryWords());
728         sb.append("]]></column-value></column>");
729         sb.append(
730             "<column><column-name>minLength</column-name><column-value><![CDATA[");
731         sb.append(getMinLength());
732         sb.append("]]></column-value></column>");
733         sb.append(
734             "<column><column-name>history</column-name><column-value><![CDATA[");
735         sb.append(getHistory());
736         sb.append("]]></column-value></column>");
737         sb.append(
738             "<column><column-name>historyCount</column-name><column-value><![CDATA[");
739         sb.append(getHistoryCount());
740         sb.append("]]></column-value></column>");
741         sb.append(
742             "<column><column-name>expireable</column-name><column-value><![CDATA[");
743         sb.append(getExpireable());
744         sb.append("]]></column-value></column>");
745         sb.append(
746             "<column><column-name>maxAge</column-name><column-value><![CDATA[");
747         sb.append(getMaxAge());
748         sb.append("]]></column-value></column>");
749         sb.append(
750             "<column><column-name>warningTime</column-name><column-value><![CDATA[");
751         sb.append(getWarningTime());
752         sb.append("]]></column-value></column>");
753         sb.append(
754             "<column><column-name>graceLimit</column-name><column-value><![CDATA[");
755         sb.append(getGraceLimit());
756         sb.append("]]></column-value></column>");
757         sb.append(
758             "<column><column-name>lockout</column-name><column-value><![CDATA[");
759         sb.append(getLockout());
760         sb.append("]]></column-value></column>");
761         sb.append(
762             "<column><column-name>maxFailure</column-name><column-value><![CDATA[");
763         sb.append(getMaxFailure());
764         sb.append("]]></column-value></column>");
765         sb.append(
766             "<column><column-name>lockoutDuration</column-name><column-value><![CDATA[");
767         sb.append(getLockoutDuration());
768         sb.append("]]></column-value></column>");
769         sb.append(
770             "<column><column-name>requireUnlock</column-name><column-value><![CDATA[");
771         sb.append(getRequireUnlock());
772         sb.append("]]></column-value></column>");
773         sb.append(
774             "<column><column-name>resetFailureCount</column-name><column-value><![CDATA[");
775         sb.append(getResetFailureCount());
776         sb.append("]]></column-value></column>");
777 
778         sb.append("</model>");
779 
780         return sb.toString();
781     }
782 
783     private long _passwordPolicyId;
784     private long _companyId;
785     private long _originalCompanyId;
786     private boolean _setOriginalCompanyId;
787     private long _userId;
788     private String _userName;
789     private Date _createDate;
790     private Date _modifiedDate;
791     private boolean _defaultPolicy;
792     private boolean _originalDefaultPolicy;
793     private boolean _setOriginalDefaultPolicy;
794     private String _name;
795     private String _originalName;
796     private String _description;
797     private boolean _changeable;
798     private boolean _changeRequired;
799     private long _minAge;
800     private boolean _checkSyntax;
801     private boolean _allowDictionaryWords;
802     private int _minLength;
803     private boolean _history;
804     private int _historyCount;
805     private boolean _expireable;
806     private long _maxAge;
807     private long _warningTime;
808     private int _graceLimit;
809     private boolean _lockout;
810     private int _maxFailure;
811     private long _lockoutDuration;
812     private boolean _requireUnlock;
813     private long _resetFailureCount;
814 }