public interface TopiaEntityEnum extends Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Class<? extends TopiaEntity> klass)
Test if a given type of entity is matching the contract of this entity.
|
String |
dbSchemaName() |
String |
dbTableName() |
Class<? extends TopiaEntity> |
getContract() |
Class<? extends TopiaEntity> |
getImplementation()
Note : this is a lazy accessor.
|
String |
getImplementationFQN() |
String[] |
getNaturalIds() |
String[] |
getNotNulls() |
boolean |
isUseNaturalIds() |
boolean |
isUseNotNulls() |
String |
name()
This is a convenient method, as entity enum offers this method from
Enum.name(). |
void |
setImplementationFQN(String implementationFQN)
Change the implementation class of the entity.
|
String name()
Enum.name().String dbSchemaName()
String dbTableName()
Class<? extends TopiaEntity> getContract()
Class<? extends TopiaEntity> getImplementation()
String getImplementationFQN()
String[] getNaturalIds()
String[] getNotNulls()
boolean isUseNaturalIds()
true if entity use natural ids, false otherwise.boolean isUseNotNulls()
true if entity use some not-null properties, false otherwise.void setImplementationFQN(String implementationFQN)
implementationFQN - the new fully qualified name of the new implementation class of the entity.boolean accept(Class<? extends TopiaEntity> klass)
XxxEntityEnum.A.accept(Class<A>) → true XxxEntityEnum.A.accept(Class<B>) → false XxxEntityEnum.B.accept(Class<B>) → true XxxEntityEnum.B.accept(Class<A>) → false
klass - the type of an entity to test.true if given type is dealed directly by this entity, false otherwise.Copyright © 2004–2017 CodeLutin. All rights reserved.