Interface ModelKeyProvider<T>

Type Parameters:
T - the model type
All Superinterfaces:

public interface ModelKeyProvider<T>
extends ProvidesKey<T>

ModelKeyProviders are responsible for returning a unique key for a given model.

See Also:

Method Summary
 java.lang.String getKey(T item)
          Gets a key value that maps to this object.

Method Detail


java.lang.String getKey(T item)
Gets a key value that maps to this object. Keys must be consistent and unique for a given model, as a database primary key would be used.

Specified by:
getKey in interface ProvidesKey<T>

Copyright © 2012. All Rights Reserved.