|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PrimaryKeyTypeService
Service that informs the primary key field type of a given entity class. Implementations are not obliged to provide this service for any entity class
| Method Summary | |
|---|---|
String |
getPrimaryKeyPropertyName(Class entityClass)
Returns the name of the property used as primary key in a given class. |
Class |
getPrimaryKeyType(Class entityClass)
Returns the Class instance representing the primary key field type for a given entity
class. |
| Method Detail |
|---|
Class getPrimaryKeyType(Class entityClass)
Returns the Class instance representing the primary key field type for a given entity
class. It must return null if the given class is not supported.
The primary key field type of a given class may not be the one used as primary key column
in the database. This can be used to provide prettier URLs for ActionLinks,
EventLinks or PageLinks (when no ActivationContextEncoder is
explicitly provided and one is automatically created from a PrimaryKeyEncoder).
entityClass - a Class instance. It cannot be null.
Class or null.String getPrimaryKeyPropertyName(Class entityClass)
getPrimaryKeyType(Class) applies here.
entityClass - a Class instance. It cannot be null.
String or null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||