001
014
015 package com.liferay.portal.model.impl;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.json.JSON;
022 import com.liferay.portal.kernel.util.GetterUtil;
023 import com.liferay.portal.kernel.util.ProxyUtil;
024 import com.liferay.portal.kernel.util.StringBundler;
025 import com.liferay.portal.kernel.util.StringPool;
026 import com.liferay.portal.model.Account;
027 import com.liferay.portal.model.AccountModel;
028 import com.liferay.portal.model.AccountSoap;
029 import com.liferay.portal.model.CacheModel;
030 import com.liferay.portal.model.User;
031 import com.liferay.portal.service.ServiceContext;
032 import com.liferay.portal.service.UserLocalServiceUtil;
033
034 import com.liferay.portlet.expando.model.ExpandoBridge;
035 import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
036
037 import java.io.Serializable;
038
039 import java.sql.Types;
040
041 import java.util.ArrayList;
042 import java.util.Date;
043 import java.util.HashMap;
044 import java.util.List;
045 import java.util.Map;
046
047
060 @JSON(strict = true)
061 @ProviderType
062 public class AccountModelImpl extends BaseModelImpl<Account>
063 implements AccountModel {
064
069 public static final String TABLE_NAME = "Account_";
070 public static final Object[][] TABLE_COLUMNS = {
071 { "mvccVersion", Types.BIGINT },
072 { "accountId", Types.BIGINT },
073 { "companyId", Types.BIGINT },
074 { "userId", Types.BIGINT },
075 { "userName", Types.VARCHAR },
076 { "createDate", Types.TIMESTAMP },
077 { "modifiedDate", Types.TIMESTAMP },
078 { "parentAccountId", Types.BIGINT },
079 { "name", Types.VARCHAR },
080 { "legalName", Types.VARCHAR },
081 { "legalId", Types.VARCHAR },
082 { "legalType", Types.VARCHAR },
083 { "sicCode", Types.VARCHAR },
084 { "tickerSymbol", Types.VARCHAR },
085 { "industry", Types.VARCHAR },
086 { "type_", Types.VARCHAR },
087 { "size_", Types.VARCHAR }
088 };
089 public static final Map<String, Integer> TABLE_COLUMNS_MAP = new HashMap<String, Integer>();
090
091 static {
092 TABLE_COLUMNS_MAP.put("mvccVersion", Types.BIGINT);
093 TABLE_COLUMNS_MAP.put("accountId", Types.BIGINT);
094 TABLE_COLUMNS_MAP.put("companyId", Types.BIGINT);
095 TABLE_COLUMNS_MAP.put("userId", Types.BIGINT);
096 TABLE_COLUMNS_MAP.put("userName", Types.VARCHAR);
097 TABLE_COLUMNS_MAP.put("createDate", Types.TIMESTAMP);
098 TABLE_COLUMNS_MAP.put("modifiedDate", Types.TIMESTAMP);
099 TABLE_COLUMNS_MAP.put("parentAccountId", Types.BIGINT);
100 TABLE_COLUMNS_MAP.put("name", Types.VARCHAR);
101 TABLE_COLUMNS_MAP.put("legalName", Types.VARCHAR);
102 TABLE_COLUMNS_MAP.put("legalId", Types.VARCHAR);
103 TABLE_COLUMNS_MAP.put("legalType", Types.VARCHAR);
104 TABLE_COLUMNS_MAP.put("sicCode", Types.VARCHAR);
105 TABLE_COLUMNS_MAP.put("tickerSymbol", Types.VARCHAR);
106 TABLE_COLUMNS_MAP.put("industry", Types.VARCHAR);
107 TABLE_COLUMNS_MAP.put("type_", Types.VARCHAR);
108 TABLE_COLUMNS_MAP.put("size_", Types.VARCHAR);
109 }
110
111 public static final String TABLE_SQL_CREATE = "create table Account_ (mvccVersion LONG default 0 not null,accountId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,parentAccountId LONG,name VARCHAR(75) null,legalName VARCHAR(75) null,legalId VARCHAR(75) null,legalType VARCHAR(75) null,sicCode VARCHAR(75) null,tickerSymbol VARCHAR(75) null,industry VARCHAR(75) null,type_ VARCHAR(75) null,size_ VARCHAR(75) null)";
112 public static final String TABLE_SQL_DROP = "drop table Account_";
113 public static final String ORDER_BY_JPQL = " ORDER BY account.accountId ASC";
114 public static final String ORDER_BY_SQL = " ORDER BY Account_.accountId ASC";
115 public static final String DATA_SOURCE = "liferayDataSource";
116 public static final String SESSION_FACTORY = "liferaySessionFactory";
117 public static final String TX_MANAGER = "liferayTransactionManager";
118 public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
119 "value.object.entity.cache.enabled.com.liferay.portal.model.Account"),
120 true);
121 public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
122 "value.object.finder.cache.enabled.com.liferay.portal.model.Account"),
123 true);
124 public static final boolean COLUMN_BITMASK_ENABLED = false;
125
126
132 public static Account toModel(AccountSoap soapModel) {
133 if (soapModel == null) {
134 return null;
135 }
136
137 Account model = new AccountImpl();
138
139 model.setMvccVersion(soapModel.getMvccVersion());
140 model.setAccountId(soapModel.getAccountId());
141 model.setCompanyId(soapModel.getCompanyId());
142 model.setUserId(soapModel.getUserId());
143 model.setUserName(soapModel.getUserName());
144 model.setCreateDate(soapModel.getCreateDate());
145 model.setModifiedDate(soapModel.getModifiedDate());
146 model.setParentAccountId(soapModel.getParentAccountId());
147 model.setName(soapModel.getName());
148 model.setLegalName(soapModel.getLegalName());
149 model.setLegalId(soapModel.getLegalId());
150 model.setLegalType(soapModel.getLegalType());
151 model.setSicCode(soapModel.getSicCode());
152 model.setTickerSymbol(soapModel.getTickerSymbol());
153 model.setIndustry(soapModel.getIndustry());
154 model.setType(soapModel.getType());
155 model.setSize(soapModel.getSize());
156
157 return model;
158 }
159
160
166 public static List<Account> toModels(AccountSoap[] soapModels) {
167 if (soapModels == null) {
168 return null;
169 }
170
171 List<Account> models = new ArrayList<Account>(soapModels.length);
172
173 for (AccountSoap soapModel : soapModels) {
174 models.add(toModel(soapModel));
175 }
176
177 return models;
178 }
179
180 public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
181 "lock.expiration.time.com.liferay.portal.model.Account"));
182
183 public AccountModelImpl() {
184 }
185
186 @Override
187 public long getPrimaryKey() {
188 return _accountId;
189 }
190
191 @Override
192 public void setPrimaryKey(long primaryKey) {
193 setAccountId(primaryKey);
194 }
195
196 @Override
197 public Serializable getPrimaryKeyObj() {
198 return _accountId;
199 }
200
201 @Override
202 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
203 setPrimaryKey(((Long)primaryKeyObj).longValue());
204 }
205
206 @Override
207 public Class<?> getModelClass() {
208 return Account.class;
209 }
210
211 @Override
212 public String getModelClassName() {
213 return Account.class.getName();
214 }
215
216 @Override
217 public Map<String, Object> getModelAttributes() {
218 Map<String, Object> attributes = new HashMap<String, Object>();
219
220 attributes.put("mvccVersion", getMvccVersion());
221 attributes.put("accountId", getAccountId());
222 attributes.put("companyId", getCompanyId());
223 attributes.put("userId", getUserId());
224 attributes.put("userName", getUserName());
225 attributes.put("createDate", getCreateDate());
226 attributes.put("modifiedDate", getModifiedDate());
227 attributes.put("parentAccountId", getParentAccountId());
228 attributes.put("name", getName());
229 attributes.put("legalName", getLegalName());
230 attributes.put("legalId", getLegalId());
231 attributes.put("legalType", getLegalType());
232 attributes.put("sicCode", getSicCode());
233 attributes.put("tickerSymbol", getTickerSymbol());
234 attributes.put("industry", getIndustry());
235 attributes.put("type", getType());
236 attributes.put("size", getSize());
237
238 attributes.put("entityCacheEnabled", isEntityCacheEnabled());
239 attributes.put("finderCacheEnabled", isFinderCacheEnabled());
240
241 return attributes;
242 }
243
244 @Override
245 public void setModelAttributes(Map<String, Object> attributes) {
246 Long mvccVersion = (Long)attributes.get("mvccVersion");
247
248 if (mvccVersion != null) {
249 setMvccVersion(mvccVersion);
250 }
251
252 Long accountId = (Long)attributes.get("accountId");
253
254 if (accountId != null) {
255 setAccountId(accountId);
256 }
257
258 Long companyId = (Long)attributes.get("companyId");
259
260 if (companyId != null) {
261 setCompanyId(companyId);
262 }
263
264 Long userId = (Long)attributes.get("userId");
265
266 if (userId != null) {
267 setUserId(userId);
268 }
269
270 String userName = (String)attributes.get("userName");
271
272 if (userName != null) {
273 setUserName(userName);
274 }
275
276 Date createDate = (Date)attributes.get("createDate");
277
278 if (createDate != null) {
279 setCreateDate(createDate);
280 }
281
282 Date modifiedDate = (Date)attributes.get("modifiedDate");
283
284 if (modifiedDate != null) {
285 setModifiedDate(modifiedDate);
286 }
287
288 Long parentAccountId = (Long)attributes.get("parentAccountId");
289
290 if (parentAccountId != null) {
291 setParentAccountId(parentAccountId);
292 }
293
294 String name = (String)attributes.get("name");
295
296 if (name != null) {
297 setName(name);
298 }
299
300 String legalName = (String)attributes.get("legalName");
301
302 if (legalName != null) {
303 setLegalName(legalName);
304 }
305
306 String legalId = (String)attributes.get("legalId");
307
308 if (legalId != null) {
309 setLegalId(legalId);
310 }
311
312 String legalType = (String)attributes.get("legalType");
313
314 if (legalType != null) {
315 setLegalType(legalType);
316 }
317
318 String sicCode = (String)attributes.get("sicCode");
319
320 if (sicCode != null) {
321 setSicCode(sicCode);
322 }
323
324 String tickerSymbol = (String)attributes.get("tickerSymbol");
325
326 if (tickerSymbol != null) {
327 setTickerSymbol(tickerSymbol);
328 }
329
330 String industry = (String)attributes.get("industry");
331
332 if (industry != null) {
333 setIndustry(industry);
334 }
335
336 String type = (String)attributes.get("type");
337
338 if (type != null) {
339 setType(type);
340 }
341
342 String size = (String)attributes.get("size");
343
344 if (size != null) {
345 setSize(size);
346 }
347 }
348
349 @JSON
350 @Override
351 public long getMvccVersion() {
352 return _mvccVersion;
353 }
354
355 @Override
356 public void setMvccVersion(long mvccVersion) {
357 _mvccVersion = mvccVersion;
358 }
359
360 @JSON
361 @Override
362 public long getAccountId() {
363 return _accountId;
364 }
365
366 @Override
367 public void setAccountId(long accountId) {
368 _accountId = accountId;
369 }
370
371 @JSON
372 @Override
373 public long getCompanyId() {
374 return _companyId;
375 }
376
377 @Override
378 public void setCompanyId(long companyId) {
379 _companyId = companyId;
380 }
381
382 @JSON
383 @Override
384 public long getUserId() {
385 return _userId;
386 }
387
388 @Override
389 public void setUserId(long userId) {
390 _userId = userId;
391 }
392
393 @Override
394 public String getUserUuid() {
395 try {
396 User user = UserLocalServiceUtil.getUserById(getUserId());
397
398 return user.getUuid();
399 }
400 catch (PortalException pe) {
401 return StringPool.BLANK;
402 }
403 }
404
405 @Override
406 public void setUserUuid(String userUuid) {
407 }
408
409 @JSON
410 @Override
411 public String getUserName() {
412 if (_userName == null) {
413 return StringPool.BLANK;
414 }
415 else {
416 return _userName;
417 }
418 }
419
420 @Override
421 public void setUserName(String userName) {
422 _userName = userName;
423 }
424
425 @JSON
426 @Override
427 public Date getCreateDate() {
428 return _createDate;
429 }
430
431 @Override
432 public void setCreateDate(Date createDate) {
433 _createDate = createDate;
434 }
435
436 @JSON
437 @Override
438 public Date getModifiedDate() {
439 return _modifiedDate;
440 }
441
442 public boolean hasSetModifiedDate() {
443 return _setModifiedDate;
444 }
445
446 @Override
447 public void setModifiedDate(Date modifiedDate) {
448 _setModifiedDate = true;
449
450 _modifiedDate = modifiedDate;
451 }
452
453 @JSON
454 @Override
455 public long getParentAccountId() {
456 return _parentAccountId;
457 }
458
459 @Override
460 public void setParentAccountId(long parentAccountId) {
461 _parentAccountId = parentAccountId;
462 }
463
464 @JSON
465 @Override
466 public String getName() {
467 if (_name == null) {
468 return StringPool.BLANK;
469 }
470 else {
471 return _name;
472 }
473 }
474
475 @Override
476 public void setName(String name) {
477 _name = name;
478 }
479
480 @JSON
481 @Override
482 public String getLegalName() {
483 if (_legalName == null) {
484 return StringPool.BLANK;
485 }
486 else {
487 return _legalName;
488 }
489 }
490
491 @Override
492 public void setLegalName(String legalName) {
493 _legalName = legalName;
494 }
495
496 @JSON
497 @Override
498 public String getLegalId() {
499 if (_legalId == null) {
500 return StringPool.BLANK;
501 }
502 else {
503 return _legalId;
504 }
505 }
506
507 @Override
508 public void setLegalId(String legalId) {
509 _legalId = legalId;
510 }
511
512 @JSON
513 @Override
514 public String getLegalType() {
515 if (_legalType == null) {
516 return StringPool.BLANK;
517 }
518 else {
519 return _legalType;
520 }
521 }
522
523 @Override
524 public void setLegalType(String legalType) {
525 _legalType = legalType;
526 }
527
528 @JSON
529 @Override
530 public String getSicCode() {
531 if (_sicCode == null) {
532 return StringPool.BLANK;
533 }
534 else {
535 return _sicCode;
536 }
537 }
538
539 @Override
540 public void setSicCode(String sicCode) {
541 _sicCode = sicCode;
542 }
543
544 @JSON
545 @Override
546 public String getTickerSymbol() {
547 if (_tickerSymbol == null) {
548 return StringPool.BLANK;
549 }
550 else {
551 return _tickerSymbol;
552 }
553 }
554
555 @Override
556 public void setTickerSymbol(String tickerSymbol) {
557 _tickerSymbol = tickerSymbol;
558 }
559
560 @JSON
561 @Override
562 public String getIndustry() {
563 if (_industry == null) {
564 return StringPool.BLANK;
565 }
566 else {
567 return _industry;
568 }
569 }
570
571 @Override
572 public void setIndustry(String industry) {
573 _industry = industry;
574 }
575
576 @JSON
577 @Override
578 public String getType() {
579 if (_type == null) {
580 return StringPool.BLANK;
581 }
582 else {
583 return _type;
584 }
585 }
586
587 @Override
588 public void setType(String type) {
589 _type = type;
590 }
591
592 @JSON
593 @Override
594 public String getSize() {
595 if (_size == null) {
596 return StringPool.BLANK;
597 }
598 else {
599 return _size;
600 }
601 }
602
603 @Override
604 public void setSize(String size) {
605 _size = size;
606 }
607
608 @Override
609 public ExpandoBridge getExpandoBridge() {
610 return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
611 Account.class.getName(), getPrimaryKey());
612 }
613
614 @Override
615 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
616 ExpandoBridge expandoBridge = getExpandoBridge();
617
618 expandoBridge.setAttributes(serviceContext);
619 }
620
621 @Override
622 public Account toEscapedModel() {
623 if (_escapedModel == null) {
624 _escapedModel = (Account)ProxyUtil.newProxyInstance(_classLoader,
625 _escapedModelInterfaces, new AutoEscapeBeanHandler(this));
626 }
627
628 return _escapedModel;
629 }
630
631 @Override
632 public Object clone() {
633 AccountImpl accountImpl = new AccountImpl();
634
635 accountImpl.setMvccVersion(getMvccVersion());
636 accountImpl.setAccountId(getAccountId());
637 accountImpl.setCompanyId(getCompanyId());
638 accountImpl.setUserId(getUserId());
639 accountImpl.setUserName(getUserName());
640 accountImpl.setCreateDate(getCreateDate());
641 accountImpl.setModifiedDate(getModifiedDate());
642 accountImpl.setParentAccountId(getParentAccountId());
643 accountImpl.setName(getName());
644 accountImpl.setLegalName(getLegalName());
645 accountImpl.setLegalId(getLegalId());
646 accountImpl.setLegalType(getLegalType());
647 accountImpl.setSicCode(getSicCode());
648 accountImpl.setTickerSymbol(getTickerSymbol());
649 accountImpl.setIndustry(getIndustry());
650 accountImpl.setType(getType());
651 accountImpl.setSize(getSize());
652
653 accountImpl.resetOriginalValues();
654
655 return accountImpl;
656 }
657
658 @Override
659 public int compareTo(Account account) {
660 long primaryKey = account.getPrimaryKey();
661
662 if (getPrimaryKey() < primaryKey) {
663 return -1;
664 }
665 else if (getPrimaryKey() > primaryKey) {
666 return 1;
667 }
668 else {
669 return 0;
670 }
671 }
672
673 @Override
674 public boolean equals(Object obj) {
675 if (this == obj) {
676 return true;
677 }
678
679 if (!(obj instanceof Account)) {
680 return false;
681 }
682
683 Account account = (Account)obj;
684
685 long primaryKey = account.getPrimaryKey();
686
687 if (getPrimaryKey() == primaryKey) {
688 return true;
689 }
690 else {
691 return false;
692 }
693 }
694
695 @Override
696 public int hashCode() {
697 return (int)getPrimaryKey();
698 }
699
700 @Override
701 public boolean isEntityCacheEnabled() {
702 return ENTITY_CACHE_ENABLED;
703 }
704
705 @Override
706 public boolean isFinderCacheEnabled() {
707 return FINDER_CACHE_ENABLED;
708 }
709
710 @Override
711 public void resetOriginalValues() {
712 AccountModelImpl accountModelImpl = this;
713
714 accountModelImpl._setModifiedDate = false;
715 }
716
717 @Override
718 public CacheModel<Account> toCacheModel() {
719 AccountCacheModel accountCacheModel = new AccountCacheModel();
720
721 accountCacheModel.mvccVersion = getMvccVersion();
722
723 accountCacheModel.accountId = getAccountId();
724
725 accountCacheModel.companyId = getCompanyId();
726
727 accountCacheModel.userId = getUserId();
728
729 accountCacheModel.userName = getUserName();
730
731 String userName = accountCacheModel.userName;
732
733 if ((userName != null) && (userName.length() == 0)) {
734 accountCacheModel.userName = null;
735 }
736
737 Date createDate = getCreateDate();
738
739 if (createDate != null) {
740 accountCacheModel.createDate = createDate.getTime();
741 }
742 else {
743 accountCacheModel.createDate = Long.MIN_VALUE;
744 }
745
746 Date modifiedDate = getModifiedDate();
747
748 if (modifiedDate != null) {
749 accountCacheModel.modifiedDate = modifiedDate.getTime();
750 }
751 else {
752 accountCacheModel.modifiedDate = Long.MIN_VALUE;
753 }
754
755 accountCacheModel.parentAccountId = getParentAccountId();
756
757 accountCacheModel.name = getName();
758
759 String name = accountCacheModel.name;
760
761 if ((name != null) && (name.length() == 0)) {
762 accountCacheModel.name = null;
763 }
764
765 accountCacheModel.legalName = getLegalName();
766
767 String legalName = accountCacheModel.legalName;
768
769 if ((legalName != null) && (legalName.length() == 0)) {
770 accountCacheModel.legalName = null;
771 }
772
773 accountCacheModel.legalId = getLegalId();
774
775 String legalId = accountCacheModel.legalId;
776
777 if ((legalId != null) && (legalId.length() == 0)) {
778 accountCacheModel.legalId = null;
779 }
780
781 accountCacheModel.legalType = getLegalType();
782
783 String legalType = accountCacheModel.legalType;
784
785 if ((legalType != null) && (legalType.length() == 0)) {
786 accountCacheModel.legalType = null;
787 }
788
789 accountCacheModel.sicCode = getSicCode();
790
791 String sicCode = accountCacheModel.sicCode;
792
793 if ((sicCode != null) && (sicCode.length() == 0)) {
794 accountCacheModel.sicCode = null;
795 }
796
797 accountCacheModel.tickerSymbol = getTickerSymbol();
798
799 String tickerSymbol = accountCacheModel.tickerSymbol;
800
801 if ((tickerSymbol != null) && (tickerSymbol.length() == 0)) {
802 accountCacheModel.tickerSymbol = null;
803 }
804
805 accountCacheModel.industry = getIndustry();
806
807 String industry = accountCacheModel.industry;
808
809 if ((industry != null) && (industry.length() == 0)) {
810 accountCacheModel.industry = null;
811 }
812
813 accountCacheModel.type = getType();
814
815 String type = accountCacheModel.type;
816
817 if ((type != null) && (type.length() == 0)) {
818 accountCacheModel.type = null;
819 }
820
821 accountCacheModel.size = getSize();
822
823 String size = accountCacheModel.size;
824
825 if ((size != null) && (size.length() == 0)) {
826 accountCacheModel.size = null;
827 }
828
829 return accountCacheModel;
830 }
831
832 @Override
833 public String toString() {
834 StringBundler sb = new StringBundler(35);
835
836 sb.append("{mvccVersion=");
837 sb.append(getMvccVersion());
838 sb.append(", accountId=");
839 sb.append(getAccountId());
840 sb.append(", companyId=");
841 sb.append(getCompanyId());
842 sb.append(", userId=");
843 sb.append(getUserId());
844 sb.append(", userName=");
845 sb.append(getUserName());
846 sb.append(", createDate=");
847 sb.append(getCreateDate());
848 sb.append(", modifiedDate=");
849 sb.append(getModifiedDate());
850 sb.append(", parentAccountId=");
851 sb.append(getParentAccountId());
852 sb.append(", name=");
853 sb.append(getName());
854 sb.append(", legalName=");
855 sb.append(getLegalName());
856 sb.append(", legalId=");
857 sb.append(getLegalId());
858 sb.append(", legalType=");
859 sb.append(getLegalType());
860 sb.append(", sicCode=");
861 sb.append(getSicCode());
862 sb.append(", tickerSymbol=");
863 sb.append(getTickerSymbol());
864 sb.append(", industry=");
865 sb.append(getIndustry());
866 sb.append(", type=");
867 sb.append(getType());
868 sb.append(", size=");
869 sb.append(getSize());
870 sb.append("}");
871
872 return sb.toString();
873 }
874
875 @Override
876 public String toXmlString() {
877 StringBundler sb = new StringBundler(55);
878
879 sb.append("<model><model-name>");
880 sb.append("com.liferay.portal.model.Account");
881 sb.append("</model-name>");
882
883 sb.append(
884 "<column><column-name>mvccVersion</column-name><column-value><![CDATA[");
885 sb.append(getMvccVersion());
886 sb.append("]]></column-value></column>");
887 sb.append(
888 "<column><column-name>accountId</column-name><column-value><![CDATA[");
889 sb.append(getAccountId());
890 sb.append("]]></column-value></column>");
891 sb.append(
892 "<column><column-name>companyId</column-name><column-value><![CDATA[");
893 sb.append(getCompanyId());
894 sb.append("]]></column-value></column>");
895 sb.append(
896 "<column><column-name>userId</column-name><column-value><![CDATA[");
897 sb.append(getUserId());
898 sb.append("]]></column-value></column>");
899 sb.append(
900 "<column><column-name>userName</column-name><column-value><![CDATA[");
901 sb.append(getUserName());
902 sb.append("]]></column-value></column>");
903 sb.append(
904 "<column><column-name>createDate</column-name><column-value><![CDATA[");
905 sb.append(getCreateDate());
906 sb.append("]]></column-value></column>");
907 sb.append(
908 "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
909 sb.append(getModifiedDate());
910 sb.append("]]></column-value></column>");
911 sb.append(
912 "<column><column-name>parentAccountId</column-name><column-value><![CDATA[");
913 sb.append(getParentAccountId());
914 sb.append("]]></column-value></column>");
915 sb.append(
916 "<column><column-name>name</column-name><column-value><![CDATA[");
917 sb.append(getName());
918 sb.append("]]></column-value></column>");
919 sb.append(
920 "<column><column-name>legalName</column-name><column-value><![CDATA[");
921 sb.append(getLegalName());
922 sb.append("]]></column-value></column>");
923 sb.append(
924 "<column><column-name>legalId</column-name><column-value><![CDATA[");
925 sb.append(getLegalId());
926 sb.append("]]></column-value></column>");
927 sb.append(
928 "<column><column-name>legalType</column-name><column-value><![CDATA[");
929 sb.append(getLegalType());
930 sb.append("]]></column-value></column>");
931 sb.append(
932 "<column><column-name>sicCode</column-name><column-value><![CDATA[");
933 sb.append(getSicCode());
934 sb.append("]]></column-value></column>");
935 sb.append(
936 "<column><column-name>tickerSymbol</column-name><column-value><![CDATA[");
937 sb.append(getTickerSymbol());
938 sb.append("]]></column-value></column>");
939 sb.append(
940 "<column><column-name>industry</column-name><column-value><![CDATA[");
941 sb.append(getIndustry());
942 sb.append("]]></column-value></column>");
943 sb.append(
944 "<column><column-name>type</column-name><column-value><![CDATA[");
945 sb.append(getType());
946 sb.append("]]></column-value></column>");
947 sb.append(
948 "<column><column-name>size</column-name><column-value><![CDATA[");
949 sb.append(getSize());
950 sb.append("]]></column-value></column>");
951
952 sb.append("</model>");
953
954 return sb.toString();
955 }
956
957 private static final ClassLoader _classLoader = Account.class.getClassLoader();
958 private static final Class<?>[] _escapedModelInterfaces = new Class[] {
959 Account.class
960 };
961 private long _mvccVersion;
962 private long _accountId;
963 private long _companyId;
964 private long _userId;
965 private String _userName;
966 private Date _createDate;
967 private Date _modifiedDate;
968 private boolean _setModifiedDate;
969 private long _parentAccountId;
970 private String _name;
971 private String _legalName;
972 private String _legalId;
973 private String _legalType;
974 private String _sicCode;
975 private String _tickerSymbol;
976 private String _industry;
977 private String _type;
978 private String _size;
979 private Account _escapedModel;
980 }