
com.liferay.commerce.payment.model.impl.CommercePaymentEntryModelImpl Maven / Gradle / Ivy
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.commerce.payment.model.impl;
import com.liferay.commerce.payment.model.CommercePaymentEntry;
import com.liferay.commerce.payment.model.CommercePaymentEntryModel;
import com.liferay.expando.kernel.model.ExpandoBridge;
import com.liferay.expando.kernel.util.ExpandoBridgeFactoryUtil;
import com.liferay.petra.string.StringBundler;
import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
import com.liferay.portal.kernel.exception.LocaleException;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.json.JSON;
import com.liferay.portal.kernel.model.CacheModel;
import com.liferay.portal.kernel.model.ModelWrapper;
import com.liferay.portal.kernel.model.User;
import com.liferay.portal.kernel.model.impl.BaseModelImpl;
import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.service.UserLocalServiceUtil;
import com.liferay.portal.kernel.util.DateUtil;
import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.LocaleUtil;
import com.liferay.portal.kernel.util.LocalizationUtil;
import com.liferay.portal.kernel.util.PortalUtil;
import com.liferay.portal.kernel.util.ProxyUtil;
import com.liferay.portal.kernel.util.StringUtil;
import com.liferay.portal.kernel.util.Validator;
import java.io.Serializable;
import java.lang.reflect.InvocationHandler;
import java.math.BigDecimal;
import java.sql.Blob;
import java.sql.Types;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.TreeSet;
import java.util.function.BiConsumer;
import java.util.function.Function;
/**
* The base model implementation for the CommercePaymentEntry service. Represents a row in the "CommercePaymentEntry" database table, with each column mapped to a property of this class.
*
*
* This implementation and its corresponding interface CommercePaymentEntryModel
exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link CommercePaymentEntryImpl}.
*
*
* @author Luca Pellizzon
* @see CommercePaymentEntryImpl
* @generated
*/
@JSON(strict = true)
public class CommercePaymentEntryModelImpl
extends BaseModelImpl
implements CommercePaymentEntryModel {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this class directly. All methods that expect a commerce payment entry model instance should use the CommercePaymentEntry
interface instead.
*/
public static final String TABLE_NAME = "CommercePaymentEntry";
public static final Object[][] TABLE_COLUMNS = {
{"mvccVersion", Types.BIGINT}, {"externalReferenceCode", Types.VARCHAR},
{"commercePaymentEntryId", Types.BIGINT}, {"companyId", Types.BIGINT},
{"userId", Types.BIGINT}, {"userName", Types.VARCHAR},
{"createDate", Types.TIMESTAMP}, {"modifiedDate", Types.TIMESTAMP},
{"classNameId", Types.BIGINT}, {"classPK", Types.BIGINT},
{"commerceChannelId", Types.BIGINT}, {"amount", Types.DECIMAL},
{"callbackURL", Types.CLOB}, {"cancelURL", Types.CLOB},
{"currencyCode", Types.VARCHAR}, {"errorMessages", Types.CLOB},
{"languageId", Types.VARCHAR}, {"note", Types.CLOB},
{"payload", Types.CLOB}, {"paymentIntegrationKey", Types.VARCHAR},
{"paymentIntegrationType", Types.INTEGER},
{"paymentStatus", Types.INTEGER}, {"reasonKey", Types.VARCHAR},
{"reasonName", Types.VARCHAR}, {"redirectURL", Types.CLOB},
{"transactionCode", Types.VARCHAR}, {"type_", Types.INTEGER}
};
public static final Map TABLE_COLUMNS_MAP =
new HashMap();
static {
TABLE_COLUMNS_MAP.put("mvccVersion", Types.BIGINT);
TABLE_COLUMNS_MAP.put("externalReferenceCode", Types.VARCHAR);
TABLE_COLUMNS_MAP.put("commercePaymentEntryId", Types.BIGINT);
TABLE_COLUMNS_MAP.put("companyId", Types.BIGINT);
TABLE_COLUMNS_MAP.put("userId", Types.BIGINT);
TABLE_COLUMNS_MAP.put("userName", Types.VARCHAR);
TABLE_COLUMNS_MAP.put("createDate", Types.TIMESTAMP);
TABLE_COLUMNS_MAP.put("modifiedDate", Types.TIMESTAMP);
TABLE_COLUMNS_MAP.put("classNameId", Types.BIGINT);
TABLE_COLUMNS_MAP.put("classPK", Types.BIGINT);
TABLE_COLUMNS_MAP.put("commerceChannelId", Types.BIGINT);
TABLE_COLUMNS_MAP.put("amount", Types.DECIMAL);
TABLE_COLUMNS_MAP.put("callbackURL", Types.CLOB);
TABLE_COLUMNS_MAP.put("cancelURL", Types.CLOB);
TABLE_COLUMNS_MAP.put("currencyCode", Types.VARCHAR);
TABLE_COLUMNS_MAP.put("errorMessages", Types.CLOB);
TABLE_COLUMNS_MAP.put("languageId", Types.VARCHAR);
TABLE_COLUMNS_MAP.put("note", Types.CLOB);
TABLE_COLUMNS_MAP.put("payload", Types.CLOB);
TABLE_COLUMNS_MAP.put("paymentIntegrationKey", Types.VARCHAR);
TABLE_COLUMNS_MAP.put("paymentIntegrationType", Types.INTEGER);
TABLE_COLUMNS_MAP.put("paymentStatus", Types.INTEGER);
TABLE_COLUMNS_MAP.put("reasonKey", Types.VARCHAR);
TABLE_COLUMNS_MAP.put("reasonName", Types.VARCHAR);
TABLE_COLUMNS_MAP.put("redirectURL", Types.CLOB);
TABLE_COLUMNS_MAP.put("transactionCode", Types.VARCHAR);
TABLE_COLUMNS_MAP.put("type_", Types.INTEGER);
}
public static final String TABLE_SQL_CREATE =
"create table CommercePaymentEntry (mvccVersion LONG default 0 not null,externalReferenceCode VARCHAR(75) null,commercePaymentEntryId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,classNameId LONG,classPK LONG,commerceChannelId LONG,amount BIGDECIMAL null,callbackURL TEXT null,cancelURL TEXT null,currencyCode VARCHAR(75) null,errorMessages TEXT null,languageId VARCHAR(75) null,note TEXT null,payload TEXT null,paymentIntegrationKey VARCHAR(75) null,paymentIntegrationType INTEGER,paymentStatus INTEGER,reasonKey VARCHAR(75) null,reasonName STRING null,redirectURL TEXT null,transactionCode VARCHAR(255) null,type_ INTEGER)";
public static final String TABLE_SQL_DROP =
"drop table CommercePaymentEntry";
public static final String ORDER_BY_JPQL =
" ORDER BY commercePaymentEntry.createDate DESC";
public static final String ORDER_BY_SQL =
" ORDER BY CommercePaymentEntry.createDate DESC";
public static final String ORDER_BY_SQL_INLINE_DISTINCT =
" ORDER BY commercePaymentEntry.createDate DESC";
public static final String DATA_SOURCE = "liferayDataSource";
public static final String SESSION_FACTORY = "liferaySessionFactory";
public static final String TX_MANAGER = "liferayTransactionManager";
/**
* @deprecated As of Athanasius (7.3.x), replaced by {@link #getColumnBitmask(String)}
*/
@Deprecated
public static final long CLASSNAMEID_COLUMN_BITMASK = 1L;
/**
* @deprecated As of Athanasius (7.3.x), replaced by {@link #getColumnBitmask(String)}
*/
@Deprecated
public static final long CLASSPK_COLUMN_BITMASK = 2L;
/**
* @deprecated As of Athanasius (7.3.x), replaced by {@link #getColumnBitmask(String)}
*/
@Deprecated
public static final long COMPANYID_COLUMN_BITMASK = 4L;
/**
* @deprecated As of Athanasius (7.3.x), replaced by {@link #getColumnBitmask(String)}
*/
@Deprecated
public static final long EXTERNALREFERENCECODE_COLUMN_BITMASK = 8L;
/**
* @deprecated As of Athanasius (7.3.x), replaced by {@link #getColumnBitmask(String)}
*/
@Deprecated
public static final long PAYMENTSTATUS_COLUMN_BITMASK = 16L;
/**
* @deprecated As of Athanasius (7.3.x), replaced by {@link #getColumnBitmask(String)}
*/
@Deprecated
public static final long TYPE_COLUMN_BITMASK = 32L;
/**
* @deprecated As of Athanasius (7.3.x), replaced by {@link
* #getColumnBitmask(String)}
*/
@Deprecated
public static final long CREATEDATE_COLUMN_BITMASK = 64L;
/**
* @deprecated As of Athanasius (7.3.x), with no direct replacement
*/
@Deprecated
public static void setEntityCacheEnabled(boolean entityCacheEnabled) {
}
/**
* @deprecated As of Athanasius (7.3.x), with no direct replacement
*/
@Deprecated
public static void setFinderCacheEnabled(boolean finderCacheEnabled) {
}
public CommercePaymentEntryModelImpl() {
}
@Override
public long getPrimaryKey() {
return _commercePaymentEntryId;
}
@Override
public void setPrimaryKey(long primaryKey) {
setCommercePaymentEntryId(primaryKey);
}
@Override
public Serializable getPrimaryKeyObj() {
return _commercePaymentEntryId;
}
@Override
public void setPrimaryKeyObj(Serializable primaryKeyObj) {
setPrimaryKey(((Long)primaryKeyObj).longValue());
}
@Override
public Class> getModelClass() {
return CommercePaymentEntry.class;
}
@Override
public String getModelClassName() {
return CommercePaymentEntry.class.getName();
}
@Override
public Map getModelAttributes() {
Map attributes = new HashMap();
Map>
attributeGetterFunctions = getAttributeGetterFunctions();
for (Map.Entry> entry :
attributeGetterFunctions.entrySet()) {
String attributeName = entry.getKey();
Function attributeGetterFunction =
entry.getValue();
attributes.put(
attributeName,
attributeGetterFunction.apply((CommercePaymentEntry)this));
}
return attributes;
}
@Override
public void setModelAttributes(Map attributes) {
Map>
attributeSetterBiConsumers = getAttributeSetterBiConsumers();
for (Map.Entry entry : attributes.entrySet()) {
String attributeName = entry.getKey();
BiConsumer attributeSetterBiConsumer =
attributeSetterBiConsumers.get(attributeName);
if (attributeSetterBiConsumer != null) {
attributeSetterBiConsumer.accept(
(CommercePaymentEntry)this, entry.getValue());
}
}
}
public Map>
getAttributeGetterFunctions() {
return AttributeGetterFunctionsHolder._attributeGetterFunctions;
}
public Map>
getAttributeSetterBiConsumers() {
return AttributeSetterBiConsumersHolder._attributeSetterBiConsumers;
}
private static class AttributeGetterFunctionsHolder {
private static final Map>
_attributeGetterFunctions;
static {
Map>
attributeGetterFunctions =
new LinkedHashMap
>();
attributeGetterFunctions.put(
"mvccVersion", CommercePaymentEntry::getMvccVersion);
attributeGetterFunctions.put(
"externalReferenceCode",
CommercePaymentEntry::getExternalReferenceCode);
attributeGetterFunctions.put(
"commercePaymentEntryId",
CommercePaymentEntry::getCommercePaymentEntryId);
attributeGetterFunctions.put(
"companyId", CommercePaymentEntry::getCompanyId);
attributeGetterFunctions.put(
"userId", CommercePaymentEntry::getUserId);
attributeGetterFunctions.put(
"userName", CommercePaymentEntry::getUserName);
attributeGetterFunctions.put(
"createDate", CommercePaymentEntry::getCreateDate);
attributeGetterFunctions.put(
"modifiedDate", CommercePaymentEntry::getModifiedDate);
attributeGetterFunctions.put(
"classNameId", CommercePaymentEntry::getClassNameId);
attributeGetterFunctions.put(
"classPK", CommercePaymentEntry::getClassPK);
attributeGetterFunctions.put(
"commerceChannelId",
CommercePaymentEntry::getCommerceChannelId);
attributeGetterFunctions.put(
"amount", CommercePaymentEntry::getAmount);
attributeGetterFunctions.put(
"callbackURL", CommercePaymentEntry::getCallbackURL);
attributeGetterFunctions.put(
"cancelURL", CommercePaymentEntry::getCancelURL);
attributeGetterFunctions.put(
"currencyCode", CommercePaymentEntry::getCurrencyCode);
attributeGetterFunctions.put(
"errorMessages", CommercePaymentEntry::getErrorMessages);
attributeGetterFunctions.put(
"languageId", CommercePaymentEntry::getLanguageId);
attributeGetterFunctions.put("note", CommercePaymentEntry::getNote);
attributeGetterFunctions.put(
"payload", CommercePaymentEntry::getPayload);
attributeGetterFunctions.put(
"paymentIntegrationKey",
CommercePaymentEntry::getPaymentIntegrationKey);
attributeGetterFunctions.put(
"paymentIntegrationType",
CommercePaymentEntry::getPaymentIntegrationType);
attributeGetterFunctions.put(
"paymentStatus", CommercePaymentEntry::getPaymentStatus);
attributeGetterFunctions.put(
"reasonKey", CommercePaymentEntry::getReasonKey);
attributeGetterFunctions.put(
"reasonName", CommercePaymentEntry::getReasonName);
attributeGetterFunctions.put(
"redirectURL", CommercePaymentEntry::getRedirectURL);
attributeGetterFunctions.put(
"transactionCode", CommercePaymentEntry::getTransactionCode);
attributeGetterFunctions.put("type", CommercePaymentEntry::getType);
_attributeGetterFunctions = Collections.unmodifiableMap(
attributeGetterFunctions);
}
}
private static class AttributeSetterBiConsumersHolder {
private static final Map
>
_attributeSetterBiConsumers;
static {
Map>
attributeSetterBiConsumers =
new LinkedHashMap
>();
attributeSetterBiConsumers.put(
"mvccVersion",
(BiConsumer)
CommercePaymentEntry::setMvccVersion);
attributeSetterBiConsumers.put(
"externalReferenceCode",
(BiConsumer)
CommercePaymentEntry::setExternalReferenceCode);
attributeSetterBiConsumers.put(
"commercePaymentEntryId",
(BiConsumer)
CommercePaymentEntry::setCommercePaymentEntryId);
attributeSetterBiConsumers.put(
"companyId",
(BiConsumer)
CommercePaymentEntry::setCompanyId);
attributeSetterBiConsumers.put(
"userId",
(BiConsumer)
CommercePaymentEntry::setUserId);
attributeSetterBiConsumers.put(
"userName",
(BiConsumer)
CommercePaymentEntry::setUserName);
attributeSetterBiConsumers.put(
"createDate",
(BiConsumer)
CommercePaymentEntry::setCreateDate);
attributeSetterBiConsumers.put(
"modifiedDate",
(BiConsumer)
CommercePaymentEntry::setModifiedDate);
attributeSetterBiConsumers.put(
"classNameId",
(BiConsumer)
CommercePaymentEntry::setClassNameId);
attributeSetterBiConsumers.put(
"classPK",
(BiConsumer)
CommercePaymentEntry::setClassPK);
attributeSetterBiConsumers.put(
"commerceChannelId",
(BiConsumer)
CommercePaymentEntry::setCommerceChannelId);
attributeSetterBiConsumers.put(
"amount",
(BiConsumer)
CommercePaymentEntry::setAmount);
attributeSetterBiConsumers.put(
"callbackURL",
(BiConsumer)
CommercePaymentEntry::setCallbackURL);
attributeSetterBiConsumers.put(
"cancelURL",
(BiConsumer)
CommercePaymentEntry::setCancelURL);
attributeSetterBiConsumers.put(
"currencyCode",
(BiConsumer)
CommercePaymentEntry::setCurrencyCode);
attributeSetterBiConsumers.put(
"errorMessages",
(BiConsumer)
CommercePaymentEntry::setErrorMessages);
attributeSetterBiConsumers.put(
"languageId",
(BiConsumer)
CommercePaymentEntry::setLanguageId);
attributeSetterBiConsumers.put(
"note",
(BiConsumer)
CommercePaymentEntry::setNote);
attributeSetterBiConsumers.put(
"payload",
(BiConsumer)
CommercePaymentEntry::setPayload);
attributeSetterBiConsumers.put(
"paymentIntegrationKey",
(BiConsumer)
CommercePaymentEntry::setPaymentIntegrationKey);
attributeSetterBiConsumers.put(
"paymentIntegrationType",
(BiConsumer)
CommercePaymentEntry::setPaymentIntegrationType);
attributeSetterBiConsumers.put(
"paymentStatus",
(BiConsumer)
CommercePaymentEntry::setPaymentStatus);
attributeSetterBiConsumers.put(
"reasonKey",
(BiConsumer)
CommercePaymentEntry::setReasonKey);
attributeSetterBiConsumers.put(
"reasonName",
(BiConsumer)
CommercePaymentEntry::setReasonName);
attributeSetterBiConsumers.put(
"redirectURL",
(BiConsumer)
CommercePaymentEntry::setRedirectURL);
attributeSetterBiConsumers.put(
"transactionCode",
(BiConsumer)
CommercePaymentEntry::setTransactionCode);
attributeSetterBiConsumers.put(
"type",
(BiConsumer)
CommercePaymentEntry::setType);
_attributeSetterBiConsumers = Collections.unmodifiableMap(
(Map)attributeSetterBiConsumers);
}
}
@JSON
@Override
public long getMvccVersion() {
return _mvccVersion;
}
@Override
public void setMvccVersion(long mvccVersion) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_mvccVersion = mvccVersion;
}
@JSON
@Override
public String getExternalReferenceCode() {
if (_externalReferenceCode == null) {
return "";
}
else {
return _externalReferenceCode;
}
}
@Override
public void setExternalReferenceCode(String externalReferenceCode) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_externalReferenceCode = externalReferenceCode;
}
/**
* @deprecated As of Athanasius (7.3.x), replaced by {@link
* #getColumnOriginalValue(String)}
*/
@Deprecated
public String getOriginalExternalReferenceCode() {
return getColumnOriginalValue("externalReferenceCode");
}
@JSON
@Override
public long getCommercePaymentEntryId() {
return _commercePaymentEntryId;
}
@Override
public void setCommercePaymentEntryId(long commercePaymentEntryId) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_commercePaymentEntryId = commercePaymentEntryId;
}
@JSON
@Override
public long getCompanyId() {
return _companyId;
}
@Override
public void setCompanyId(long companyId) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_companyId = companyId;
}
/**
* @deprecated As of Athanasius (7.3.x), replaced by {@link
* #getColumnOriginalValue(String)}
*/
@Deprecated
public long getOriginalCompanyId() {
return GetterUtil.getLong(
this.getColumnOriginalValue("companyId"));
}
@JSON
@Override
public long getUserId() {
return _userId;
}
@Override
public void setUserId(long userId) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_userId = userId;
}
@Override
public String getUserUuid() {
try {
User user = UserLocalServiceUtil.getUserById(getUserId());
return user.getUuid();
}
catch (PortalException portalException) {
return "";
}
}
@Override
public void setUserUuid(String userUuid) {
}
@JSON
@Override
public String getUserName() {
if (_userName == null) {
return "";
}
else {
return _userName;
}
}
@Override
public void setUserName(String userName) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_userName = userName;
}
@JSON
@Override
public Date getCreateDate() {
return _createDate;
}
@Override
public void setCreateDate(Date createDate) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_createDate = createDate;
}
@JSON
@Override
public Date getModifiedDate() {
return _modifiedDate;
}
public boolean hasSetModifiedDate() {
return _setModifiedDate;
}
@Override
public void setModifiedDate(Date modifiedDate) {
_setModifiedDate = true;
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_modifiedDate = modifiedDate;
}
@Override
public String getClassName() {
if (getClassNameId() <= 0) {
return "";
}
return PortalUtil.getClassName(getClassNameId());
}
@Override
public void setClassName(String className) {
long classNameId = 0;
if (Validator.isNotNull(className)) {
classNameId = PortalUtil.getClassNameId(className);
}
setClassNameId(classNameId);
}
@JSON
@Override
public long getClassNameId() {
return _classNameId;
}
@Override
public void setClassNameId(long classNameId) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_classNameId = classNameId;
}
/**
* @deprecated As of Athanasius (7.3.x), replaced by {@link
* #getColumnOriginalValue(String)}
*/
@Deprecated
public long getOriginalClassNameId() {
return GetterUtil.getLong(
this.getColumnOriginalValue("classNameId"));
}
@JSON
@Override
public long getClassPK() {
return _classPK;
}
@Override
public void setClassPK(long classPK) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_classPK = classPK;
}
/**
* @deprecated As of Athanasius (7.3.x), replaced by {@link
* #getColumnOriginalValue(String)}
*/
@Deprecated
public long getOriginalClassPK() {
return GetterUtil.getLong(this.getColumnOriginalValue("classPK"));
}
@JSON
@Override
public long getCommerceChannelId() {
return _commerceChannelId;
}
@Override
public void setCommerceChannelId(long commerceChannelId) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_commerceChannelId = commerceChannelId;
}
@JSON
@Override
public BigDecimal getAmount() {
return _amount;
}
@Override
public void setAmount(BigDecimal amount) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_amount = amount;
}
@JSON
@Override
public String getCallbackURL() {
if (_callbackURL == null) {
return "";
}
else {
return _callbackURL;
}
}
@Override
public void setCallbackURL(String callbackURL) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_callbackURL = callbackURL;
}
@JSON
@Override
public String getCancelURL() {
if (_cancelURL == null) {
return "";
}
else {
return _cancelURL;
}
}
@Override
public void setCancelURL(String cancelURL) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_cancelURL = cancelURL;
}
@JSON
@Override
public String getCurrencyCode() {
if (_currencyCode == null) {
return "";
}
else {
return _currencyCode;
}
}
@Override
public void setCurrencyCode(String currencyCode) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_currencyCode = currencyCode;
}
@JSON
@Override
public String getErrorMessages() {
if (_errorMessages == null) {
return "";
}
else {
return _errorMessages;
}
}
@Override
public void setErrorMessages(String errorMessages) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_errorMessages = errorMessages;
}
@JSON
@Override
public String getLanguageId() {
if (_languageId == null) {
return "";
}
else {
return _languageId;
}
}
@Override
public void setLanguageId(String languageId) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_languageId = languageId;
}
@JSON
@Override
public String getNote() {
if (_note == null) {
return "";
}
else {
return _note;
}
}
@Override
public void setNote(String note) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_note = note;
}
@JSON
@Override
public String getPayload() {
if (_payload == null) {
return "";
}
else {
return _payload;
}
}
@Override
public void setPayload(String payload) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_payload = payload;
}
@JSON
@Override
public String getPaymentIntegrationKey() {
if (_paymentIntegrationKey == null) {
return "";
}
else {
return _paymentIntegrationKey;
}
}
@Override
public void setPaymentIntegrationKey(String paymentIntegrationKey) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_paymentIntegrationKey = paymentIntegrationKey;
}
@JSON
@Override
public int getPaymentIntegrationType() {
return _paymentIntegrationType;
}
@Override
public void setPaymentIntegrationType(int paymentIntegrationType) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_paymentIntegrationType = paymentIntegrationType;
}
@JSON
@Override
public int getPaymentStatus() {
return _paymentStatus;
}
@Override
public void setPaymentStatus(int paymentStatus) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_paymentStatus = paymentStatus;
}
/**
* @deprecated As of Athanasius (7.3.x), replaced by {@link
* #getColumnOriginalValue(String)}
*/
@Deprecated
public int getOriginalPaymentStatus() {
return GetterUtil.getInteger(
this.getColumnOriginalValue("paymentStatus"));
}
@JSON
@Override
public String getReasonKey() {
if (_reasonKey == null) {
return "";
}
else {
return _reasonKey;
}
}
@Override
public void setReasonKey(String reasonKey) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_reasonKey = reasonKey;
}
@JSON
@Override
public String getReasonName() {
if (_reasonName == null) {
return "";
}
else {
return _reasonName;
}
}
@Override
public String getReasonName(Locale locale) {
String languageId = LocaleUtil.toLanguageId(locale);
return getReasonName(languageId);
}
@Override
public String getReasonName(Locale locale, boolean useDefault) {
String languageId = LocaleUtil.toLanguageId(locale);
return getReasonName(languageId, useDefault);
}
@Override
public String getReasonName(String languageId) {
return LocalizationUtil.getLocalization(getReasonName(), languageId);
}
@Override
public String getReasonName(String languageId, boolean useDefault) {
return LocalizationUtil.getLocalization(
getReasonName(), languageId, useDefault);
}
@Override
public String getReasonNameCurrentLanguageId() {
return _reasonNameCurrentLanguageId;
}
@JSON
@Override
public String getReasonNameCurrentValue() {
Locale locale = getLocale(_reasonNameCurrentLanguageId);
return getReasonName(locale);
}
@Override
public Map getReasonNameMap() {
return LocalizationUtil.getLocalizationMap(getReasonName());
}
@Override
public void setReasonName(String reasonName) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_reasonName = reasonName;
}
@Override
public void setReasonName(String reasonName, Locale locale) {
setReasonName(reasonName, locale, LocaleUtil.getDefault());
}
@Override
public void setReasonName(
String reasonName, Locale locale, Locale defaultLocale) {
String languageId = LocaleUtil.toLanguageId(locale);
String defaultLanguageId = LocaleUtil.toLanguageId(defaultLocale);
if (Validator.isNotNull(reasonName)) {
setReasonName(
LocalizationUtil.updateLocalization(
getReasonName(), "ReasonName", reasonName, languageId,
defaultLanguageId));
}
else {
setReasonName(
LocalizationUtil.removeLocalization(
getReasonName(), "ReasonName", languageId));
}
}
@Override
public void setReasonNameCurrentLanguageId(String languageId) {
_reasonNameCurrentLanguageId = languageId;
}
@Override
public void setReasonNameMap(Map reasonNameMap) {
setReasonNameMap(reasonNameMap, LocaleUtil.getDefault());
}
@Override
public void setReasonNameMap(
Map reasonNameMap, Locale defaultLocale) {
if (reasonNameMap == null) {
return;
}
setReasonName(
LocalizationUtil.updateLocalization(
reasonNameMap, getReasonName(), "ReasonName",
LocaleUtil.toLanguageId(defaultLocale)));
}
@JSON
@Override
public String getRedirectURL() {
if (_redirectURL == null) {
return "";
}
else {
return _redirectURL;
}
}
@Override
public void setRedirectURL(String redirectURL) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_redirectURL = redirectURL;
}
@JSON
@Override
public String getTransactionCode() {
if (_transactionCode == null) {
return "";
}
else {
return _transactionCode;
}
}
@Override
public void setTransactionCode(String transactionCode) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_transactionCode = transactionCode;
}
@JSON
@Override
public int getType() {
return _type;
}
@Override
public void setType(int type) {
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
_type = type;
}
/**
* @deprecated As of Athanasius (7.3.x), replaced by {@link
* #getColumnOriginalValue(String)}
*/
@Deprecated
public int getOriginalType() {
return GetterUtil.getInteger(
this.getColumnOriginalValue("type_"));
}
public long getColumnBitmask() {
if (_columnBitmask > 0) {
return _columnBitmask;
}
if ((_columnOriginalValues == null) ||
(_columnOriginalValues == Collections.EMPTY_MAP)) {
return 0;
}
for (Map.Entry entry :
_columnOriginalValues.entrySet()) {
if (!Objects.equals(
entry.getValue(), getColumnValue(entry.getKey()))) {
_columnBitmask |= _columnBitmasks.get(entry.getKey());
}
}
return _columnBitmask;
}
@Override
public ExpandoBridge getExpandoBridge() {
return ExpandoBridgeFactoryUtil.getExpandoBridge(
getCompanyId(), CommercePaymentEntry.class.getName(),
getPrimaryKey());
}
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
ExpandoBridge expandoBridge = getExpandoBridge();
expandoBridge.setAttributes(serviceContext);
}
@Override
public String[] getAvailableLanguageIds() {
Set availableLanguageIds = new TreeSet();
Map reasonNameMap = getReasonNameMap();
for (Map.Entry entry : reasonNameMap.entrySet()) {
Locale locale = entry.getKey();
String value = entry.getValue();
if (Validator.isNotNull(value)) {
availableLanguageIds.add(LocaleUtil.toLanguageId(locale));
}
}
return availableLanguageIds.toArray(
new String[availableLanguageIds.size()]);
}
@Override
public String getDefaultLanguageId() {
String xml = getReasonName();
if (xml == null) {
return "";
}
Locale defaultLocale = LocaleUtil.getDefault();
return LocalizationUtil.getDefaultLanguageId(xml, defaultLocale);
}
@Override
public void prepareLocalizedFieldsForImport() throws LocaleException {
Locale defaultLocale = LocaleUtil.fromLanguageId(
getDefaultLanguageId());
Locale[] availableLocales = LocaleUtil.fromLanguageIds(
getAvailableLanguageIds());
Locale defaultImportLocale = LocalizationUtil.getDefaultImportLocale(
CommercePaymentEntry.class.getName(), getPrimaryKey(),
defaultLocale, availableLocales);
prepareLocalizedFieldsForImport(defaultImportLocale);
}
@Override
@SuppressWarnings("unused")
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
throws LocaleException {
Locale defaultLocale = LocaleUtil.getDefault();
String modelDefaultLanguageId = getDefaultLanguageId();
String reasonName = getReasonName(defaultLocale);
if (Validator.isNull(reasonName)) {
setReasonName(getReasonName(modelDefaultLanguageId), defaultLocale);
}
else {
setReasonName(
getReasonName(defaultLocale), defaultLocale, defaultLocale);
}
}
@Override
public CommercePaymentEntry toEscapedModel() {
if (_escapedModel == null) {
Function
escapedModelProxyProviderFunction =
EscapedModelProxyProviderFunctionHolder.
_escapedModelProxyProviderFunction;
_escapedModel = escapedModelProxyProviderFunction.apply(
new AutoEscapeBeanHandler(this));
}
return _escapedModel;
}
@Override
public Object clone() {
CommercePaymentEntryImpl commercePaymentEntryImpl =
new CommercePaymentEntryImpl();
commercePaymentEntryImpl.setMvccVersion(getMvccVersion());
commercePaymentEntryImpl.setExternalReferenceCode(
getExternalReferenceCode());
commercePaymentEntryImpl.setCommercePaymentEntryId(
getCommercePaymentEntryId());
commercePaymentEntryImpl.setCompanyId(getCompanyId());
commercePaymentEntryImpl.setUserId(getUserId());
commercePaymentEntryImpl.setUserName(getUserName());
commercePaymentEntryImpl.setCreateDate(getCreateDate());
commercePaymentEntryImpl.setModifiedDate(getModifiedDate());
commercePaymentEntryImpl.setClassNameId(getClassNameId());
commercePaymentEntryImpl.setClassPK(getClassPK());
commercePaymentEntryImpl.setCommerceChannelId(getCommerceChannelId());
commercePaymentEntryImpl.setAmount(getAmount());
commercePaymentEntryImpl.setCallbackURL(getCallbackURL());
commercePaymentEntryImpl.setCancelURL(getCancelURL());
commercePaymentEntryImpl.setCurrencyCode(getCurrencyCode());
commercePaymentEntryImpl.setErrorMessages(getErrorMessages());
commercePaymentEntryImpl.setLanguageId(getLanguageId());
commercePaymentEntryImpl.setNote(getNote());
commercePaymentEntryImpl.setPayload(getPayload());
commercePaymentEntryImpl.setPaymentIntegrationKey(
getPaymentIntegrationKey());
commercePaymentEntryImpl.setPaymentIntegrationType(
getPaymentIntegrationType());
commercePaymentEntryImpl.setPaymentStatus(getPaymentStatus());
commercePaymentEntryImpl.setReasonKey(getReasonKey());
commercePaymentEntryImpl.setReasonName(getReasonName());
commercePaymentEntryImpl.setRedirectURL(getRedirectURL());
commercePaymentEntryImpl.setTransactionCode(getTransactionCode());
commercePaymentEntryImpl.setType(getType());
commercePaymentEntryImpl.resetOriginalValues();
return commercePaymentEntryImpl;
}
@Override
public CommercePaymentEntry cloneWithOriginalValues() {
CommercePaymentEntryImpl commercePaymentEntryImpl =
new CommercePaymentEntryImpl();
commercePaymentEntryImpl.setMvccVersion(
this.getColumnOriginalValue("mvccVersion"));
commercePaymentEntryImpl.setExternalReferenceCode(
this.getColumnOriginalValue("externalReferenceCode"));
commercePaymentEntryImpl.setCommercePaymentEntryId(
this.getColumnOriginalValue("commercePaymentEntryId"));
commercePaymentEntryImpl.setCompanyId(
this.getColumnOriginalValue("companyId"));
commercePaymentEntryImpl.setUserId(
this.getColumnOriginalValue("userId"));
commercePaymentEntryImpl.setUserName(
this.getColumnOriginalValue("userName"));
commercePaymentEntryImpl.setCreateDate(
this.getColumnOriginalValue("createDate"));
commercePaymentEntryImpl.setModifiedDate(
this.getColumnOriginalValue("modifiedDate"));
commercePaymentEntryImpl.setClassNameId(
this.getColumnOriginalValue("classNameId"));
commercePaymentEntryImpl.setClassPK(
this.getColumnOriginalValue("classPK"));
commercePaymentEntryImpl.setCommerceChannelId(
this.getColumnOriginalValue("commerceChannelId"));
commercePaymentEntryImpl.setAmount(
this.getColumnOriginalValue("amount"));
commercePaymentEntryImpl.setCallbackURL(
this.getColumnOriginalValue("callbackURL"));
commercePaymentEntryImpl.setCancelURL(
this.getColumnOriginalValue("cancelURL"));
commercePaymentEntryImpl.setCurrencyCode(
this.getColumnOriginalValue("currencyCode"));
commercePaymentEntryImpl.setErrorMessages(
this.getColumnOriginalValue("errorMessages"));
commercePaymentEntryImpl.setLanguageId(
this.getColumnOriginalValue("languageId"));
commercePaymentEntryImpl.setNote(
this.getColumnOriginalValue("note"));
commercePaymentEntryImpl.setPayload(
this.getColumnOriginalValue("payload"));
commercePaymentEntryImpl.setPaymentIntegrationKey(
this.getColumnOriginalValue("paymentIntegrationKey"));
commercePaymentEntryImpl.setPaymentIntegrationType(
this.getColumnOriginalValue("paymentIntegrationType"));
commercePaymentEntryImpl.setPaymentStatus(
this.getColumnOriginalValue("paymentStatus"));
commercePaymentEntryImpl.setReasonKey(
this.getColumnOriginalValue("reasonKey"));
commercePaymentEntryImpl.setReasonName(
this.getColumnOriginalValue("reasonName"));
commercePaymentEntryImpl.setRedirectURL(
this.getColumnOriginalValue("redirectURL"));
commercePaymentEntryImpl.setTransactionCode(
this.getColumnOriginalValue("transactionCode"));
commercePaymentEntryImpl.setType(
this.getColumnOriginalValue("type_"));
return commercePaymentEntryImpl;
}
@Override
public int compareTo(CommercePaymentEntry commercePaymentEntry) {
int value = 0;
value = DateUtil.compareTo(
getCreateDate(), commercePaymentEntry.getCreateDate());
value = value * -1;
if (value != 0) {
return value;
}
return 0;
}
@Override
public boolean equals(Object object) {
if (this == object) {
return true;
}
if (!(object instanceof CommercePaymentEntry)) {
return false;
}
CommercePaymentEntry commercePaymentEntry =
(CommercePaymentEntry)object;
long primaryKey = commercePaymentEntry.getPrimaryKey();
if (getPrimaryKey() == primaryKey) {
return true;
}
else {
return false;
}
}
@Override
public int hashCode() {
return (int)getPrimaryKey();
}
/**
* @deprecated As of Athanasius (7.3.x), with no direct replacement
*/
@Deprecated
@Override
public boolean isEntityCacheEnabled() {
return true;
}
/**
* @deprecated As of Athanasius (7.3.x), with no direct replacement
*/
@Deprecated
@Override
public boolean isFinderCacheEnabled() {
return true;
}
@Override
public void resetOriginalValues() {
_columnOriginalValues = Collections.emptyMap();
_setModifiedDate = false;
_columnBitmask = 0;
}
@Override
public CacheModel toCacheModel() {
CommercePaymentEntryCacheModel commercePaymentEntryCacheModel =
new CommercePaymentEntryCacheModel();
commercePaymentEntryCacheModel.mvccVersion = getMvccVersion();
commercePaymentEntryCacheModel.externalReferenceCode =
getExternalReferenceCode();
String externalReferenceCode =
commercePaymentEntryCacheModel.externalReferenceCode;
if ((externalReferenceCode != null) &&
(externalReferenceCode.length() == 0)) {
commercePaymentEntryCacheModel.externalReferenceCode = null;
}
commercePaymentEntryCacheModel.commercePaymentEntryId =
getCommercePaymentEntryId();
commercePaymentEntryCacheModel.companyId = getCompanyId();
commercePaymentEntryCacheModel.userId = getUserId();
commercePaymentEntryCacheModel.userName = getUserName();
String userName = commercePaymentEntryCacheModel.userName;
if ((userName != null) && (userName.length() == 0)) {
commercePaymentEntryCacheModel.userName = null;
}
Date createDate = getCreateDate();
if (createDate != null) {
commercePaymentEntryCacheModel.createDate = createDate.getTime();
}
else {
commercePaymentEntryCacheModel.createDate = Long.MIN_VALUE;
}
Date modifiedDate = getModifiedDate();
if (modifiedDate != null) {
commercePaymentEntryCacheModel.modifiedDate =
modifiedDate.getTime();
}
else {
commercePaymentEntryCacheModel.modifiedDate = Long.MIN_VALUE;
}
commercePaymentEntryCacheModel.classNameId = getClassNameId();
commercePaymentEntryCacheModel.classPK = getClassPK();
commercePaymentEntryCacheModel.commerceChannelId =
getCommerceChannelId();
commercePaymentEntryCacheModel.amount = getAmount();
commercePaymentEntryCacheModel.callbackURL = getCallbackURL();
String callbackURL = commercePaymentEntryCacheModel.callbackURL;
if ((callbackURL != null) && (callbackURL.length() == 0)) {
commercePaymentEntryCacheModel.callbackURL = null;
}
commercePaymentEntryCacheModel.cancelURL = getCancelURL();
String cancelURL = commercePaymentEntryCacheModel.cancelURL;
if ((cancelURL != null) && (cancelURL.length() == 0)) {
commercePaymentEntryCacheModel.cancelURL = null;
}
commercePaymentEntryCacheModel.currencyCode = getCurrencyCode();
String currencyCode = commercePaymentEntryCacheModel.currencyCode;
if ((currencyCode != null) && (currencyCode.length() == 0)) {
commercePaymentEntryCacheModel.currencyCode = null;
}
commercePaymentEntryCacheModel.errorMessages = getErrorMessages();
String errorMessages = commercePaymentEntryCacheModel.errorMessages;
if ((errorMessages != null) && (errorMessages.length() == 0)) {
commercePaymentEntryCacheModel.errorMessages = null;
}
commercePaymentEntryCacheModel.languageId = getLanguageId();
String languageId = commercePaymentEntryCacheModel.languageId;
if ((languageId != null) && (languageId.length() == 0)) {
commercePaymentEntryCacheModel.languageId = null;
}
commercePaymentEntryCacheModel.note = getNote();
String note = commercePaymentEntryCacheModel.note;
if ((note != null) && (note.length() == 0)) {
commercePaymentEntryCacheModel.note = null;
}
commercePaymentEntryCacheModel.payload = getPayload();
String payload = commercePaymentEntryCacheModel.payload;
if ((payload != null) && (payload.length() == 0)) {
commercePaymentEntryCacheModel.payload = null;
}
commercePaymentEntryCacheModel.paymentIntegrationKey =
getPaymentIntegrationKey();
String paymentIntegrationKey =
commercePaymentEntryCacheModel.paymentIntegrationKey;
if ((paymentIntegrationKey != null) &&
(paymentIntegrationKey.length() == 0)) {
commercePaymentEntryCacheModel.paymentIntegrationKey = null;
}
commercePaymentEntryCacheModel.paymentIntegrationType =
getPaymentIntegrationType();
commercePaymentEntryCacheModel.paymentStatus = getPaymentStatus();
commercePaymentEntryCacheModel.reasonKey = getReasonKey();
String reasonKey = commercePaymentEntryCacheModel.reasonKey;
if ((reasonKey != null) && (reasonKey.length() == 0)) {
commercePaymentEntryCacheModel.reasonKey = null;
}
commercePaymentEntryCacheModel.reasonName = getReasonName();
String reasonName = commercePaymentEntryCacheModel.reasonName;
if ((reasonName != null) && (reasonName.length() == 0)) {
commercePaymentEntryCacheModel.reasonName = null;
}
commercePaymentEntryCacheModel.redirectURL = getRedirectURL();
String redirectURL = commercePaymentEntryCacheModel.redirectURL;
if ((redirectURL != null) && (redirectURL.length() == 0)) {
commercePaymentEntryCacheModel.redirectURL = null;
}
commercePaymentEntryCacheModel.transactionCode = getTransactionCode();
String transactionCode = commercePaymentEntryCacheModel.transactionCode;
if ((transactionCode != null) && (transactionCode.length() == 0)) {
commercePaymentEntryCacheModel.transactionCode = null;
}
commercePaymentEntryCacheModel.type = getType();
return commercePaymentEntryCacheModel;
}
@Override
public String toString() {
Map>
attributeGetterFunctions = getAttributeGetterFunctions();
StringBundler sb = new StringBundler(
(5 * attributeGetterFunctions.size()) + 2);
sb.append("{");
for (Map.Entry> entry :
attributeGetterFunctions.entrySet()) {
String attributeName = entry.getKey();
Function attributeGetterFunction =
entry.getValue();
sb.append("\"");
sb.append(attributeName);
sb.append("\": ");
Object value = attributeGetterFunction.apply(
(CommercePaymentEntry)this);
if (value == null) {
sb.append("null");
}
else if (value instanceof Blob || value instanceof Date ||
value instanceof Map || value instanceof String) {
sb.append(
"\"" + StringUtil.replace(value.toString(), "\"", "'") +
"\"");
}
else {
sb.append(value);
}
sb.append(", ");
}
if (sb.index() > 1) {
sb.setIndex(sb.index() - 1);
}
sb.append("}");
return sb.toString();
}
private static class EscapedModelProxyProviderFunctionHolder {
private static final Function
_escapedModelProxyProviderFunction =
ProxyUtil.getProxyProviderFunction(
CommercePaymentEntry.class, ModelWrapper.class);
}
private long _mvccVersion;
private String _externalReferenceCode;
private long _commercePaymentEntryId;
private long _companyId;
private long _userId;
private String _userName;
private Date _createDate;
private Date _modifiedDate;
private boolean _setModifiedDate;
private long _classNameId;
private long _classPK;
private long _commerceChannelId;
private BigDecimal _amount;
private String _callbackURL;
private String _cancelURL;
private String _currencyCode;
private String _errorMessages;
private String _languageId;
private String _note;
private String _payload;
private String _paymentIntegrationKey;
private int _paymentIntegrationType;
private int _paymentStatus;
private String _reasonKey;
private String _reasonName;
private String _reasonNameCurrentLanguageId;
private String _redirectURL;
private String _transactionCode;
private int _type;
public T getColumnValue(String columnName) {
columnName = _attributeNames.getOrDefault(columnName, columnName);
Function function =
AttributeGetterFunctionsHolder._attributeGetterFunctions.get(
columnName);
if (function == null) {
throw new IllegalArgumentException(
"No attribute getter function found for " + columnName);
}
return (T)function.apply((CommercePaymentEntry)this);
}
public T getColumnOriginalValue(String columnName) {
if (_columnOriginalValues == null) {
return null;
}
if (_columnOriginalValues == Collections.EMPTY_MAP) {
_setColumnOriginalValues();
}
return (T)_columnOriginalValues.get(columnName);
}
private void _setColumnOriginalValues() {
_columnOriginalValues = new HashMap();
_columnOriginalValues.put("mvccVersion", _mvccVersion);
_columnOriginalValues.put(
"externalReferenceCode", _externalReferenceCode);
_columnOriginalValues.put(
"commercePaymentEntryId", _commercePaymentEntryId);
_columnOriginalValues.put("companyId", _companyId);
_columnOriginalValues.put("userId", _userId);
_columnOriginalValues.put("userName", _userName);
_columnOriginalValues.put("createDate", _createDate);
_columnOriginalValues.put("modifiedDate", _modifiedDate);
_columnOriginalValues.put("classNameId", _classNameId);
_columnOriginalValues.put("classPK", _classPK);
_columnOriginalValues.put("commerceChannelId", _commerceChannelId);
_columnOriginalValues.put("amount", _amount);
_columnOriginalValues.put("callbackURL", _callbackURL);
_columnOriginalValues.put("cancelURL", _cancelURL);
_columnOriginalValues.put("currencyCode", _currencyCode);
_columnOriginalValues.put("errorMessages", _errorMessages);
_columnOriginalValues.put("languageId", _languageId);
_columnOriginalValues.put("note", _note);
_columnOriginalValues.put("payload", _payload);
_columnOriginalValues.put(
"paymentIntegrationKey", _paymentIntegrationKey);
_columnOriginalValues.put(
"paymentIntegrationType", _paymentIntegrationType);
_columnOriginalValues.put("paymentStatus", _paymentStatus);
_columnOriginalValues.put("reasonKey", _reasonKey);
_columnOriginalValues.put("reasonName", _reasonName);
_columnOriginalValues.put("redirectURL", _redirectURL);
_columnOriginalValues.put("transactionCode", _transactionCode);
_columnOriginalValues.put("type_", _type);
}
private static final Map _attributeNames;
static {
Map attributeNames = new HashMap<>();
attributeNames.put("type_", "type");
_attributeNames = Collections.unmodifiableMap(attributeNames);
}
private transient Map _columnOriginalValues;
public static long getColumnBitmask(String columnName) {
return _columnBitmasks.get(columnName);
}
private static final Map _columnBitmasks;
static {
Map columnBitmasks = new HashMap<>();
columnBitmasks.put("mvccVersion", 1L);
columnBitmasks.put("externalReferenceCode", 2L);
columnBitmasks.put("commercePaymentEntryId", 4L);
columnBitmasks.put("companyId", 8L);
columnBitmasks.put("userId", 16L);
columnBitmasks.put("userName", 32L);
columnBitmasks.put("createDate", 64L);
columnBitmasks.put("modifiedDate", 128L);
columnBitmasks.put("classNameId", 256L);
columnBitmasks.put("classPK", 512L);
columnBitmasks.put("commerceChannelId", 1024L);
columnBitmasks.put("amount", 2048L);
columnBitmasks.put("callbackURL", 4096L);
columnBitmasks.put("cancelURL", 8192L);
columnBitmasks.put("currencyCode", 16384L);
columnBitmasks.put("errorMessages", 32768L);
columnBitmasks.put("languageId", 65536L);
columnBitmasks.put("note", 131072L);
columnBitmasks.put("payload", 262144L);
columnBitmasks.put("paymentIntegrationKey", 524288L);
columnBitmasks.put("paymentIntegrationType", 1048576L);
columnBitmasks.put("paymentStatus", 2097152L);
columnBitmasks.put("reasonKey", 4194304L);
columnBitmasks.put("reasonName", 8388608L);
columnBitmasks.put("redirectURL", 16777216L);
columnBitmasks.put("transactionCode", 33554432L);
columnBitmasks.put("type_", 67108864L);
_columnBitmasks = Collections.unmodifiableMap(columnBitmasks);
}
private long _columnBitmask;
private CommercePaymentEntry _escapedModel;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy