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