Package org.pipservices3.commons.data
Interface IStringIdentifiable
- All Superinterfaces:
IIdentifiable<String>
Interface for data objects that can be uniquely identifed by a string id.
The interface extends IIdentifiable
to hardcode id type to string.
It is a common pattern to use a string GUID as the id, generated by IdGenerator
.
### Example ###
public class MyData implements IStringIdentifiable {
private String id;
public String field1;
public int field2;
...
public String getId() {...}
public void setId(String newId) {...}
}
- See Also:
-
Method Summary
Methods inherited from interface org.pipservices3.commons.data.IIdentifiable
getId, setId