001
014
015 package com.liferay.portlet.softwarecatalog.model.impl;
016
017 import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.json.JSON;
020 import com.liferay.portal.kernel.util.DateUtil;
021 import com.liferay.portal.kernel.util.GetterUtil;
022 import com.liferay.portal.kernel.util.ProxyUtil;
023 import com.liferay.portal.kernel.util.StringBundler;
024 import com.liferay.portal.kernel.util.StringPool;
025 import com.liferay.portal.model.CacheModel;
026 import com.liferay.portal.model.impl.BaseModelImpl;
027 import com.liferay.portal.service.ServiceContext;
028 import com.liferay.portal.util.PortalUtil;
029
030 import com.liferay.portlet.expando.model.ExpandoBridge;
031 import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
032 import com.liferay.portlet.softwarecatalog.model.SCProductEntry;
033 import com.liferay.portlet.softwarecatalog.model.SCProductEntryModel;
034 import com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap;
035
036 import java.io.Serializable;
037
038 import java.sql.Types;
039
040 import java.util.ArrayList;
041 import java.util.Date;
042 import java.util.List;
043
044
057 @JSON(strict = true)
058 public class SCProductEntryModelImpl extends BaseModelImpl<SCProductEntry>
059 implements SCProductEntryModel {
060
065 public static final String TABLE_NAME = "SCProductEntry";
066 public static final Object[][] TABLE_COLUMNS = {
067 { "productEntryId", Types.BIGINT },
068 { "groupId", Types.BIGINT },
069 { "companyId", Types.BIGINT },
070 { "userId", Types.BIGINT },
071 { "userName", Types.VARCHAR },
072 { "createDate", Types.TIMESTAMP },
073 { "modifiedDate", Types.TIMESTAMP },
074 { "name", Types.VARCHAR },
075 { "type_", Types.VARCHAR },
076 { "tags", Types.VARCHAR },
077 { "shortDescription", Types.VARCHAR },
078 { "longDescription", Types.VARCHAR },
079 { "pageURL", Types.VARCHAR },
080 { "author", Types.VARCHAR },
081 { "repoGroupId", Types.VARCHAR },
082 { "repoArtifactId", Types.VARCHAR }
083 };
084 public static final String TABLE_SQL_CREATE = "create table SCProductEntry (productEntryId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,name VARCHAR(75) null,type_ VARCHAR(75) null,tags VARCHAR(255) null,shortDescription STRING null,longDescription STRING null,pageURL STRING null,author VARCHAR(75) null,repoGroupId VARCHAR(75) null,repoArtifactId VARCHAR(75) null)";
085 public static final String TABLE_SQL_DROP = "drop table SCProductEntry";
086 public static final String ORDER_BY_JPQL = " ORDER BY scProductEntry.modifiedDate DESC, scProductEntry.name DESC";
087 public static final String ORDER_BY_SQL = " ORDER BY SCProductEntry.modifiedDate DESC, SCProductEntry.name DESC";
088 public static final String DATA_SOURCE = "liferayDataSource";
089 public static final String SESSION_FACTORY = "liferaySessionFactory";
090 public static final String TX_MANAGER = "liferayTransactionManager";
091 public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
092 "value.object.entity.cache.enabled.com.liferay.portlet.softwarecatalog.model.SCProductEntry"),
093 true);
094 public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
095 "value.object.finder.cache.enabled.com.liferay.portlet.softwarecatalog.model.SCProductEntry"),
096 true);
097 public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
098 "value.object.column.bitmask.enabled.com.liferay.portlet.softwarecatalog.model.SCProductEntry"),
099 true);
100 public static long COMPANYID_COLUMN_BITMASK = 1L;
101 public static long GROUPID_COLUMN_BITMASK = 2L;
102 public static long REPOARTIFACTID_COLUMN_BITMASK = 4L;
103 public static long REPOGROUPID_COLUMN_BITMASK = 8L;
104 public static long USERID_COLUMN_BITMASK = 16L;
105
106
112 public static SCProductEntry toModel(SCProductEntrySoap soapModel) {
113 SCProductEntry model = new SCProductEntryImpl();
114
115 model.setProductEntryId(soapModel.getProductEntryId());
116 model.setGroupId(soapModel.getGroupId());
117 model.setCompanyId(soapModel.getCompanyId());
118 model.setUserId(soapModel.getUserId());
119 model.setUserName(soapModel.getUserName());
120 model.setCreateDate(soapModel.getCreateDate());
121 model.setModifiedDate(soapModel.getModifiedDate());
122 model.setName(soapModel.getName());
123 model.setType(soapModel.getType());
124 model.setTags(soapModel.getTags());
125 model.setShortDescription(soapModel.getShortDescription());
126 model.setLongDescription(soapModel.getLongDescription());
127 model.setPageURL(soapModel.getPageURL());
128 model.setAuthor(soapModel.getAuthor());
129 model.setRepoGroupId(soapModel.getRepoGroupId());
130 model.setRepoArtifactId(soapModel.getRepoArtifactId());
131
132 return model;
133 }
134
135
141 public static List<SCProductEntry> toModels(SCProductEntrySoap[] soapModels) {
142 List<SCProductEntry> models = new ArrayList<SCProductEntry>(soapModels.length);
143
144 for (SCProductEntrySoap soapModel : soapModels) {
145 models.add(toModel(soapModel));
146 }
147
148 return models;
149 }
150
151 public static final String MAPPING_TABLE_SCLICENSES_SCPRODUCTENTRIES_NAME = "SCLicenses_SCProductEntries";
152 public static final Object[][] MAPPING_TABLE_SCLICENSES_SCPRODUCTENTRIES_COLUMNS =
153 {
154 { "licenseId", Types.BIGINT },
155 { "productEntryId", Types.BIGINT }
156 };
157 public static final String MAPPING_TABLE_SCLICENSES_SCPRODUCTENTRIES_SQL_CREATE =
158 "create table SCLicenses_SCProductEntries (licenseId LONG not null,productEntryId LONG not null,primary key (licenseId, productEntryId))";
159 public static final boolean FINDER_CACHE_ENABLED_SCLICENSES_SCPRODUCTENTRIES =
160 GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
161 "value.object.finder.cache.enabled.SCLicenses_SCProductEntries"),
162 true);
163 public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
164 "lock.expiration.time.com.liferay.portlet.softwarecatalog.model.SCProductEntry"));
165
166 public SCProductEntryModelImpl() {
167 }
168
169 public long getPrimaryKey() {
170 return _productEntryId;
171 }
172
173 public void setPrimaryKey(long primaryKey) {
174 setProductEntryId(primaryKey);
175 }
176
177 public Serializable getPrimaryKeyObj() {
178 return new Long(_productEntryId);
179 }
180
181 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
182 setPrimaryKey(((Long)primaryKeyObj).longValue());
183 }
184
185 public Class<?> getModelClass() {
186 return SCProductEntry.class;
187 }
188
189 public String getModelClassName() {
190 return SCProductEntry.class.getName();
191 }
192
193 @JSON
194 public long getProductEntryId() {
195 return _productEntryId;
196 }
197
198 public void setProductEntryId(long productEntryId) {
199 _productEntryId = productEntryId;
200 }
201
202 @JSON
203 public long getGroupId() {
204 return _groupId;
205 }
206
207 public void setGroupId(long groupId) {
208 _columnBitmask |= GROUPID_COLUMN_BITMASK;
209
210 if (!_setOriginalGroupId) {
211 _setOriginalGroupId = true;
212
213 _originalGroupId = _groupId;
214 }
215
216 _groupId = groupId;
217 }
218
219 public long getOriginalGroupId() {
220 return _originalGroupId;
221 }
222
223 @JSON
224 public long getCompanyId() {
225 return _companyId;
226 }
227
228 public void setCompanyId(long companyId) {
229 _columnBitmask |= COMPANYID_COLUMN_BITMASK;
230
231 if (!_setOriginalCompanyId) {
232 _setOriginalCompanyId = true;
233
234 _originalCompanyId = _companyId;
235 }
236
237 _companyId = companyId;
238 }
239
240 public long getOriginalCompanyId() {
241 return _originalCompanyId;
242 }
243
244 @JSON
245 public long getUserId() {
246 return _userId;
247 }
248
249 public void setUserId(long userId) {
250 _columnBitmask |= USERID_COLUMN_BITMASK;
251
252 if (!_setOriginalUserId) {
253 _setOriginalUserId = true;
254
255 _originalUserId = _userId;
256 }
257
258 _userId = userId;
259 }
260
261 public String getUserUuid() throws SystemException {
262 return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
263 }
264
265 public void setUserUuid(String userUuid) {
266 _userUuid = userUuid;
267 }
268
269 public long getOriginalUserId() {
270 return _originalUserId;
271 }
272
273 @JSON
274 public String getUserName() {
275 if (_userName == null) {
276 return StringPool.BLANK;
277 }
278 else {
279 return _userName;
280 }
281 }
282
283 public void setUserName(String userName) {
284 _userName = userName;
285 }
286
287 @JSON
288 public Date getCreateDate() {
289 return _createDate;
290 }
291
292 public void setCreateDate(Date createDate) {
293 _createDate = createDate;
294 }
295
296 @JSON
297 public Date getModifiedDate() {
298 return _modifiedDate;
299 }
300
301 public void setModifiedDate(Date modifiedDate) {
302 _columnBitmask = -1L;
303
304 _modifiedDate = modifiedDate;
305 }
306
307 @JSON
308 public String getName() {
309 if (_name == null) {
310 return StringPool.BLANK;
311 }
312 else {
313 return _name;
314 }
315 }
316
317 public void setName(String name) {
318 _columnBitmask = -1L;
319
320 _name = name;
321 }
322
323 @JSON
324 public String getType() {
325 if (_type == null) {
326 return StringPool.BLANK;
327 }
328 else {
329 return _type;
330 }
331 }
332
333 public void setType(String type) {
334 _type = type;
335 }
336
337 @JSON
338 public String getTags() {
339 if (_tags == null) {
340 return StringPool.BLANK;
341 }
342 else {
343 return _tags;
344 }
345 }
346
347 public void setTags(String tags) {
348 _tags = tags;
349 }
350
351 @JSON
352 public String getShortDescription() {
353 if (_shortDescription == null) {
354 return StringPool.BLANK;
355 }
356 else {
357 return _shortDescription;
358 }
359 }
360
361 public void setShortDescription(String shortDescription) {
362 _shortDescription = shortDescription;
363 }
364
365 @JSON
366 public String getLongDescription() {
367 if (_longDescription == null) {
368 return StringPool.BLANK;
369 }
370 else {
371 return _longDescription;
372 }
373 }
374
375 public void setLongDescription(String longDescription) {
376 _longDescription = longDescription;
377 }
378
379 @JSON
380 public String getPageURL() {
381 if (_pageURL == null) {
382 return StringPool.BLANK;
383 }
384 else {
385 return _pageURL;
386 }
387 }
388
389 public void setPageURL(String pageURL) {
390 _pageURL = pageURL;
391 }
392
393 @JSON
394 public String getAuthor() {
395 if (_author == null) {
396 return StringPool.BLANK;
397 }
398 else {
399 return _author;
400 }
401 }
402
403 public void setAuthor(String author) {
404 _author = author;
405 }
406
407 @JSON
408 public String getRepoGroupId() {
409 if (_repoGroupId == null) {
410 return StringPool.BLANK;
411 }
412 else {
413 return _repoGroupId;
414 }
415 }
416
417 public void setRepoGroupId(String repoGroupId) {
418 _columnBitmask |= REPOGROUPID_COLUMN_BITMASK;
419
420 if (_originalRepoGroupId == null) {
421 _originalRepoGroupId = _repoGroupId;
422 }
423
424 _repoGroupId = repoGroupId;
425 }
426
427 public String getOriginalRepoGroupId() {
428 return GetterUtil.getString(_originalRepoGroupId);
429 }
430
431 @JSON
432 public String getRepoArtifactId() {
433 if (_repoArtifactId == null) {
434 return StringPool.BLANK;
435 }
436 else {
437 return _repoArtifactId;
438 }
439 }
440
441 public void setRepoArtifactId(String repoArtifactId) {
442 _columnBitmask |= REPOARTIFACTID_COLUMN_BITMASK;
443
444 if (_originalRepoArtifactId == null) {
445 _originalRepoArtifactId = _repoArtifactId;
446 }
447
448 _repoArtifactId = repoArtifactId;
449 }
450
451 public String getOriginalRepoArtifactId() {
452 return GetterUtil.getString(_originalRepoArtifactId);
453 }
454
455 public long getColumnBitmask() {
456 return _columnBitmask;
457 }
458
459 @Override
460 public SCProductEntry toEscapedModel() {
461 if (_escapedModelProxy == null) {
462 _escapedModelProxy = (SCProductEntry)ProxyUtil.newProxyInstance(_classLoader,
463 _escapedModelProxyInterfaces,
464 new AutoEscapeBeanHandler(this));
465 }
466
467 return _escapedModelProxy;
468 }
469
470 @Override
471 public ExpandoBridge getExpandoBridge() {
472 if (_expandoBridge == null) {
473 _expandoBridge = ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
474 SCProductEntry.class.getName(), getPrimaryKey());
475 }
476
477 return _expandoBridge;
478 }
479
480 @Override
481 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
482 getExpandoBridge().setAttributes(serviceContext);
483 }
484
485 @Override
486 public Object clone() {
487 SCProductEntryImpl scProductEntryImpl = new SCProductEntryImpl();
488
489 scProductEntryImpl.setProductEntryId(getProductEntryId());
490 scProductEntryImpl.setGroupId(getGroupId());
491 scProductEntryImpl.setCompanyId(getCompanyId());
492 scProductEntryImpl.setUserId(getUserId());
493 scProductEntryImpl.setUserName(getUserName());
494 scProductEntryImpl.setCreateDate(getCreateDate());
495 scProductEntryImpl.setModifiedDate(getModifiedDate());
496 scProductEntryImpl.setName(getName());
497 scProductEntryImpl.setType(getType());
498 scProductEntryImpl.setTags(getTags());
499 scProductEntryImpl.setShortDescription(getShortDescription());
500 scProductEntryImpl.setLongDescription(getLongDescription());
501 scProductEntryImpl.setPageURL(getPageURL());
502 scProductEntryImpl.setAuthor(getAuthor());
503 scProductEntryImpl.setRepoGroupId(getRepoGroupId());
504 scProductEntryImpl.setRepoArtifactId(getRepoArtifactId());
505
506 scProductEntryImpl.resetOriginalValues();
507
508 return scProductEntryImpl;
509 }
510
511 public int compareTo(SCProductEntry scProductEntry) {
512 int value = 0;
513
514 value = DateUtil.compareTo(getModifiedDate(),
515 scProductEntry.getModifiedDate());
516
517 value = value * -1;
518
519 if (value != 0) {
520 return value;
521 }
522
523 value = getName().compareTo(scProductEntry.getName());
524
525 value = value * -1;
526
527 if (value != 0) {
528 return value;
529 }
530
531 return 0;
532 }
533
534 @Override
535 public boolean equals(Object obj) {
536 if (obj == null) {
537 return false;
538 }
539
540 SCProductEntry scProductEntry = null;
541
542 try {
543 scProductEntry = (SCProductEntry)obj;
544 }
545 catch (ClassCastException cce) {
546 return false;
547 }
548
549 long primaryKey = scProductEntry.getPrimaryKey();
550
551 if (getPrimaryKey() == primaryKey) {
552 return true;
553 }
554 else {
555 return false;
556 }
557 }
558
559 @Override
560 public int hashCode() {
561 return (int)getPrimaryKey();
562 }
563
564 @Override
565 public void resetOriginalValues() {
566 SCProductEntryModelImpl scProductEntryModelImpl = this;
567
568 scProductEntryModelImpl._originalGroupId = scProductEntryModelImpl._groupId;
569
570 scProductEntryModelImpl._setOriginalGroupId = false;
571
572 scProductEntryModelImpl._originalCompanyId = scProductEntryModelImpl._companyId;
573
574 scProductEntryModelImpl._setOriginalCompanyId = false;
575
576 scProductEntryModelImpl._originalUserId = scProductEntryModelImpl._userId;
577
578 scProductEntryModelImpl._setOriginalUserId = false;
579
580 scProductEntryModelImpl._originalRepoGroupId = scProductEntryModelImpl._repoGroupId;
581
582 scProductEntryModelImpl._originalRepoArtifactId = scProductEntryModelImpl._repoArtifactId;
583
584 scProductEntryModelImpl._columnBitmask = 0;
585 }
586
587 @Override
588 public CacheModel<SCProductEntry> toCacheModel() {
589 SCProductEntryCacheModel scProductEntryCacheModel = new SCProductEntryCacheModel();
590
591 scProductEntryCacheModel.productEntryId = getProductEntryId();
592
593 scProductEntryCacheModel.groupId = getGroupId();
594
595 scProductEntryCacheModel.companyId = getCompanyId();
596
597 scProductEntryCacheModel.userId = getUserId();
598
599 scProductEntryCacheModel.userName = getUserName();
600
601 String userName = scProductEntryCacheModel.userName;
602
603 if ((userName != null) && (userName.length() == 0)) {
604 scProductEntryCacheModel.userName = null;
605 }
606
607 Date createDate = getCreateDate();
608
609 if (createDate != null) {
610 scProductEntryCacheModel.createDate = createDate.getTime();
611 }
612 else {
613 scProductEntryCacheModel.createDate = Long.MIN_VALUE;
614 }
615
616 Date modifiedDate = getModifiedDate();
617
618 if (modifiedDate != null) {
619 scProductEntryCacheModel.modifiedDate = modifiedDate.getTime();
620 }
621 else {
622 scProductEntryCacheModel.modifiedDate = Long.MIN_VALUE;
623 }
624
625 scProductEntryCacheModel.name = getName();
626
627 String name = scProductEntryCacheModel.name;
628
629 if ((name != null) && (name.length() == 0)) {
630 scProductEntryCacheModel.name = null;
631 }
632
633 scProductEntryCacheModel.type = getType();
634
635 String type = scProductEntryCacheModel.type;
636
637 if ((type != null) && (type.length() == 0)) {
638 scProductEntryCacheModel.type = null;
639 }
640
641 scProductEntryCacheModel.tags = getTags();
642
643 String tags = scProductEntryCacheModel.tags;
644
645 if ((tags != null) && (tags.length() == 0)) {
646 scProductEntryCacheModel.tags = null;
647 }
648
649 scProductEntryCacheModel.shortDescription = getShortDescription();
650
651 String shortDescription = scProductEntryCacheModel.shortDescription;
652
653 if ((shortDescription != null) && (shortDescription.length() == 0)) {
654 scProductEntryCacheModel.shortDescription = null;
655 }
656
657 scProductEntryCacheModel.longDescription = getLongDescription();
658
659 String longDescription = scProductEntryCacheModel.longDescription;
660
661 if ((longDescription != null) && (longDescription.length() == 0)) {
662 scProductEntryCacheModel.longDescription = null;
663 }
664
665 scProductEntryCacheModel.pageURL = getPageURL();
666
667 String pageURL = scProductEntryCacheModel.pageURL;
668
669 if ((pageURL != null) && (pageURL.length() == 0)) {
670 scProductEntryCacheModel.pageURL = null;
671 }
672
673 scProductEntryCacheModel.author = getAuthor();
674
675 String author = scProductEntryCacheModel.author;
676
677 if ((author != null) && (author.length() == 0)) {
678 scProductEntryCacheModel.author = null;
679 }
680
681 scProductEntryCacheModel.repoGroupId = getRepoGroupId();
682
683 String repoGroupId = scProductEntryCacheModel.repoGroupId;
684
685 if ((repoGroupId != null) && (repoGroupId.length() == 0)) {
686 scProductEntryCacheModel.repoGroupId = null;
687 }
688
689 scProductEntryCacheModel.repoArtifactId = getRepoArtifactId();
690
691 String repoArtifactId = scProductEntryCacheModel.repoArtifactId;
692
693 if ((repoArtifactId != null) && (repoArtifactId.length() == 0)) {
694 scProductEntryCacheModel.repoArtifactId = null;
695 }
696
697 return scProductEntryCacheModel;
698 }
699
700 @Override
701 public String toString() {
702 StringBundler sb = new StringBundler(33);
703
704 sb.append("{productEntryId=");
705 sb.append(getProductEntryId());
706 sb.append(", groupId=");
707 sb.append(getGroupId());
708 sb.append(", companyId=");
709 sb.append(getCompanyId());
710 sb.append(", userId=");
711 sb.append(getUserId());
712 sb.append(", userName=");
713 sb.append(getUserName());
714 sb.append(", createDate=");
715 sb.append(getCreateDate());
716 sb.append(", modifiedDate=");
717 sb.append(getModifiedDate());
718 sb.append(", name=");
719 sb.append(getName());
720 sb.append(", type=");
721 sb.append(getType());
722 sb.append(", tags=");
723 sb.append(getTags());
724 sb.append(", shortDescription=");
725 sb.append(getShortDescription());
726 sb.append(", longDescription=");
727 sb.append(getLongDescription());
728 sb.append(", pageURL=");
729 sb.append(getPageURL());
730 sb.append(", author=");
731 sb.append(getAuthor());
732 sb.append(", repoGroupId=");
733 sb.append(getRepoGroupId());
734 sb.append(", repoArtifactId=");
735 sb.append(getRepoArtifactId());
736 sb.append("}");
737
738 return sb.toString();
739 }
740
741 public String toXmlString() {
742 StringBundler sb = new StringBundler(52);
743
744 sb.append("<model><model-name>");
745 sb.append("com.liferay.portlet.softwarecatalog.model.SCProductEntry");
746 sb.append("</model-name>");
747
748 sb.append(
749 "<column><column-name>productEntryId</column-name><column-value><![CDATA[");
750 sb.append(getProductEntryId());
751 sb.append("]]></column-value></column>");
752 sb.append(
753 "<column><column-name>groupId</column-name><column-value><![CDATA[");
754 sb.append(getGroupId());
755 sb.append("]]></column-value></column>");
756 sb.append(
757 "<column><column-name>companyId</column-name><column-value><![CDATA[");
758 sb.append(getCompanyId());
759 sb.append("]]></column-value></column>");
760 sb.append(
761 "<column><column-name>userId</column-name><column-value><![CDATA[");
762 sb.append(getUserId());
763 sb.append("]]></column-value></column>");
764 sb.append(
765 "<column><column-name>userName</column-name><column-value><![CDATA[");
766 sb.append(getUserName());
767 sb.append("]]></column-value></column>");
768 sb.append(
769 "<column><column-name>createDate</column-name><column-value><![CDATA[");
770 sb.append(getCreateDate());
771 sb.append("]]></column-value></column>");
772 sb.append(
773 "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
774 sb.append(getModifiedDate());
775 sb.append("]]></column-value></column>");
776 sb.append(
777 "<column><column-name>name</column-name><column-value><![CDATA[");
778 sb.append(getName());
779 sb.append("]]></column-value></column>");
780 sb.append(
781 "<column><column-name>type</column-name><column-value><![CDATA[");
782 sb.append(getType());
783 sb.append("]]></column-value></column>");
784 sb.append(
785 "<column><column-name>tags</column-name><column-value><![CDATA[");
786 sb.append(getTags());
787 sb.append("]]></column-value></column>");
788 sb.append(
789 "<column><column-name>shortDescription</column-name><column-value><![CDATA[");
790 sb.append(getShortDescription());
791 sb.append("]]></column-value></column>");
792 sb.append(
793 "<column><column-name>longDescription</column-name><column-value><![CDATA[");
794 sb.append(getLongDescription());
795 sb.append("]]></column-value></column>");
796 sb.append(
797 "<column><column-name>pageURL</column-name><column-value><![CDATA[");
798 sb.append(getPageURL());
799 sb.append("]]></column-value></column>");
800 sb.append(
801 "<column><column-name>author</column-name><column-value><![CDATA[");
802 sb.append(getAuthor());
803 sb.append("]]></column-value></column>");
804 sb.append(
805 "<column><column-name>repoGroupId</column-name><column-value><![CDATA[");
806 sb.append(getRepoGroupId());
807 sb.append("]]></column-value></column>");
808 sb.append(
809 "<column><column-name>repoArtifactId</column-name><column-value><![CDATA[");
810 sb.append(getRepoArtifactId());
811 sb.append("]]></column-value></column>");
812
813 sb.append("</model>");
814
815 return sb.toString();
816 }
817
818 private static ClassLoader _classLoader = SCProductEntry.class.getClassLoader();
819 private static Class<?>[] _escapedModelProxyInterfaces = new Class[] {
820 SCProductEntry.class
821 };
822 private long _productEntryId;
823 private long _groupId;
824 private long _originalGroupId;
825 private boolean _setOriginalGroupId;
826 private long _companyId;
827 private long _originalCompanyId;
828 private boolean _setOriginalCompanyId;
829 private long _userId;
830 private String _userUuid;
831 private long _originalUserId;
832 private boolean _setOriginalUserId;
833 private String _userName;
834 private Date _createDate;
835 private Date _modifiedDate;
836 private String _name;
837 private String _type;
838 private String _tags;
839 private String _shortDescription;
840 private String _longDescription;
841 private String _pageURL;
842 private String _author;
843 private String _repoGroupId;
844 private String _originalRepoGroupId;
845 private String _repoArtifactId;
846 private String _originalRepoArtifactId;
847 private transient ExpandoBridge _expandoBridge;
848 private long _columnBitmask;
849 private SCProductEntry _escapedModelProxy;
850 }