Interface AttributeService
- All Superinterfaces:
Service
public interface AttributeService extends Service
Service interface which converts back-and-forth between strongly-typed attribute
value objects (like Double or Calendar) and strings which can be stored generically
in the database.
-
Method Details
-
format
Convert an attribute value from a strongly typed object to a string Usage:
To format the attribute value, Here are the examples to set different field typesDouble: format(100.0,
CoreFieldType.DOUBLE
) Boolean: format(Boolean.TRUE
,CoreFieldType.BOOLEAN
) -
parse
Convert an attribute value from a string to a strongly typed object
-