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