|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TopiaEntityEnum
The contract to be realised by the generated enumeration in any DAOHelper.
Example : for a model Test, we will have a
TestDOAHelper.TestEntityEnum enumeration generated.
The contract gives some informations about the classes for any entity dealed
by the dao helper. More precisely :
- contract class of the entity (this must be an interface class)
- the implementation fqn class of an entity (at generation time, we might
not have the implementation class)
- the implementation class (will be looked up at runtime execution, in that
way we make possible to used a different implementation at runtime.
- a method to accept any TopiaEntity class for this entity description
| Method Summary | |
|---|---|
boolean |
accept(Class<? extends TopiaEntity> klass)
Test if a given type of entity is matching the contract of this entity. |
Class<? extends TopiaEntity> |
getContract()
|
Class<? extends TopiaEntity> |
getImplementation()
Note : this is a lazy accessor. |
String |
getImplementationFQN()
|
void |
setImplementationFQN(String implementationFQN)
Change the implementation class of the entity. |
| Method Detail |
|---|
Class<? extends TopiaEntity> getContract()
Class<? extends TopiaEntity> getImplementation()
String getImplementationFQN()
void setImplementationFQN(String implementationFQN)
implementationFQN - the new fully qualifed name of the new
implementation class of the entity.boolean accept(Class<? extends TopiaEntity> klass)
EntityEnum.A.accept(Class) -> true EntityEnum.A.accept(Class) -> false EntityEnum.B.accept(Class) -> true EntityEnum.B.accept(Class) -> false
klass - the type of an entity to test.
true if given type is dealed directly by this entity,
false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||