All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.portal.odata.entity.IdEntityField Maven / Gradle / Ivy

There is a newer version: 2024.q3.1
Show newest version
/**
 * 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.portal.odata.entity;

import java.util.Locale;
import java.util.function.Function;

/**
 * Models an date entity field. A Entity field with a type {@code
 * EntityField.Type.ID}
 *
 * @author Cristina González
 * @review
 */
public class IdEntityField extends EntityField {

	/**
	 * Creates a new {@code IdEntityField} with a {@code Function} to convert
	 * the entity field's name to a filterable/sortable field name for a locale.
	 *
	 * @param  name the entity field's name
	 * @param  filterableAndSortableFieldNameFunction the {@code Function} that
	 *         converts the entity field's name to a filterable/sortable field
	 *         name for a locale
	 * @param  filterableFieldValueFunction the {@code Function} that converts
	 *         the entity field's value to a filterable field value
	 * @review
	 */
	public IdEntityField(
		String name,
		Function filterableAndSortableFieldNameFunction,
		Function filterableFieldValueFunction) {

		super(
			name, Type.ID, filterableAndSortableFieldNameFunction,
			filterableAndSortableFieldNameFunction,
			filterableFieldValueFunction);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy