Package com.liferay.portal.odata.entity
Class DateEntityField
java.lang.Object
com.liferay.portal.odata.entity.EntityField
com.liferay.portal.odata.entity.DateEntityField
Models an date entity field. A Entity field with a type
EntityField.Type.DATE
-
Nested Class Summary
Nested classes/interfaces inherited from class com.liferay.portal.odata.entity.EntityField
EntityField.Type
-
Constructor Summary
ConstructorsConstructorDescriptionDateEntityField
(String name, Function<Locale, String> sortableFieldNameFunction, Function<Locale, String> filterableFieldNameFunction) Creates a newEntityField
with aFunction
to convert the entity field's name to a filterable/sortable field name for a locale.DateEntityField
(String name, Function<Locale, String> sortableFieldNameFunction, Function<Locale, String> filterableFieldNameFunction, Function<Object, String> filterableFieldValueFunction) Creates a newEntityField
with aFunction
to convert the entity field's name to a filterable/sortable field name for a locale. -
Method Summary
Methods inherited from class com.liferay.portal.odata.entity.EntityField
getFilterableName, getFilterableValue, getName, getSortableName, getType, toString
-
Constructor Details
-
DateEntityField
public DateEntityField(String name, Function<Locale, String> sortableFieldNameFunction, Function<Locale, String> filterableFieldNameFunction) Creates a newEntityField
with aFunction
to convert the entity field's name to a filterable/sortable field name for a locale.- Parameters:
name
- the entity field's namesortableFieldNameFunction
- the sortable field nameFunction
filterableFieldNameFunction
- the filterable field nameFunction
-
DateEntityField
public DateEntityField(String name, Function<Locale, String> sortableFieldNameFunction, Function<Locale, String> filterableFieldNameFunction, Function<Object, String> filterableFieldValueFunction) Creates a newEntityField
with aFunction
to convert the entity field's name to a filterable/sortable field name for a locale.- Parameters:
name
- the entity field's namesortableFieldNameFunction
- the sortable field nameFunction
filterableFieldNameFunction
- the filterable field nameFunction
-