Package io.inugami.api.dao
Interface Identifiable<PK extends Serializable>
-
- All Superinterfaces:
Serializable
public interface Identifiable<PK extends Serializable> extends Serializable
Identifible- Since:
- 9 janv. 2018
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PKgetUid()booleanisUidSet()Helper method to know whether the primary key is set or not.voidsetUid(PK uid)Allows to define the identifierdefault StringuidFieldName()
-
-
-
Method Detail
-
getUid
PK getUid()
- Returns:
- the primary key
-
setUid
void setUid(PK uid)
Allows to define the identifier- Parameters:
uid- the identifier
-
isUidSet
boolean isUidSet()
Helper method to know whether the primary key is set or not.- Returns:
- true if the primary key is set, false otherwise
-
uidFieldName
default String uidFieldName()
-
-