Package org.nuiton.topia.persistence
Interface TopiaEntityEnumProvider<T extends TopiaEntityEnum>
public interface TopiaEntityEnumProvider<T extends TopiaEntityEnum>
Object which helps to wrap some static generated code (entityEnum).
This contract used to be named TopiaPersistenceHelper.
- Since:
- 2.6.12
- Author:
- Tony Chemit - chemit@codelutin.com
-
Method Summary
Modifier and TypeMethodDescription<E extends TopiaEntity>
TgetEntityEnum(Class<E> type) Method that returns the TopiaEntityEnum corresponding to the given entity's class.getEntityEnum(String enumName) Method that returns the TopiaEntityEnum corresponding to the given entity's enum name.
-
Method Details
-
getEntityEnum
Method that returns the TopiaEntityEnum corresponding to the given entity's class.- Type Parameters:
E- works only for TopiaEntity, thus E must extend TopiaEntity- Parameters:
type- the entity's class- Returns:
- the found TopiaEntityEnum. Should not be null.
-
getEntityEnum
Method that returns the TopiaEntityEnum corresponding to the given entity's enum name.- Parameters:
enumName- the entity's enum name- Returns:
- the found TopiaEntityEnum. Should not be null.
-