Package org.nuiton.topia
Enum TopiaTestDAOHelper.TopiaTestEntityEnum
java.lang.Object
java.lang.Enum<TopiaTestDAOHelper.TopiaTestEntityEnum>
org.nuiton.topia.TopiaTestDAOHelper.TopiaTestEntityEnum
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TopiaTestDAOHelper.TopiaTestEntityEnum>,java.lang.constant.Constable,org.nuiton.topia.persistence.TopiaEntityEnum
- Enclosing class:
- TopiaTestDAOHelper
public static enum TopiaTestDAOHelper.TopiaTestEntityEnum extends java.lang.Enum<TopiaTestDAOHelper.TopiaTestEntityEnum> implements org.nuiton.topia.persistence.TopiaEntityEnum
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description AddressBillCompanyContact2DepartmentEmployeExtraDAOEntityFrenchCompanyGeneralizedNaturalizedEntityNaturalizedEntityParty2PersonPersonnePetProductQueriedEntityRaceSIRENSIRETStoreTelephone2Type -
Field Summary
Fields Modifier and Type Field Description protected java.lang.Class<? extends org.nuiton.topia.persistence.TopiaEntity>contractThe contract of the entity.protected java.lang.StringdbSchemaNameThe optional name of database schema of the entity (if none was filled, will benull).protected java.lang.StringdbTableNameThe name of the database table for the entity.protected java.lang.Class<? extends org.nuiton.topia.persistence.TopiaEntity>implementationThe implementation class of the entity (will be lazy computed at runtime).protected java.lang.StringimplementationFQNThe fully qualified name of the implementation of the entity.protected java.lang.String[]naturalIdsThe array of property involved in the natural key of the entity.protected java.lang.String[]notNullsThe array of not null properties of the entity. -
Method Summary
Modifier and Type Method Description booleanaccept(java.lang.Class<? extends org.nuiton.topia.persistence.TopiaEntity> klass)java.lang.StringdbSchemaName()java.lang.StringdbTableName()java.lang.Class<? extends org.nuiton.topia.persistence.TopiaEntity>getContract()java.lang.Class<? extends org.nuiton.topia.persistence.TopiaEntity>getImplementation()java.lang.StringgetImplementationFQN()java.lang.String[]getNaturalIds()java.lang.String[]getNotNulls()booleanisUseNaturalIds()booleanisUseNotNulls()voidsetImplementationFQN(java.lang.String implementationFQN)static TopiaTestDAOHelper.TopiaTestEntityEnumvalueOf(java.lang.Class<?> klass)Returns the enum constant of this type with the specified name.static TopiaTestDAOHelper.TopiaTestEntityEnumvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TopiaTestDAOHelper.TopiaTestEntityEnumvalueOf(org.nuiton.topia.persistence.TopiaEntity entity)Returns the enum constant of this type with the specified name.static TopiaTestDAOHelper.TopiaTestEntityEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Field Details
-
contract
protected java.lang.Class<? extends org.nuiton.topia.persistence.TopiaEntity> contractThe contract of the entity. -
dbSchemaName
protected java.lang.String dbSchemaNameThe optional name of database schema of the entity (if none was filled, will benull). -
dbTableName
protected java.lang.String dbTableNameThe name of the database table for the entity. -
implementationFQN
protected java.lang.String implementationFQNThe fully qualified name of the implementation of the entity. -
implementation
protected java.lang.Class<? extends org.nuiton.topia.persistence.TopiaEntity> implementationThe implementation class of the entity (will be lazy computed at runtime). -
naturalIds
protected java.lang.String[] naturalIdsThe array of property involved in the natural key of the entity. -
notNulls
protected java.lang.String[] notNullsThe array of not null properties of the entity.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getContract
public java.lang.Class<? extends org.nuiton.topia.persistence.TopiaEntity> getContract()- Specified by:
getContractin interfaceorg.nuiton.topia.persistence.TopiaEntityEnum
-
dbSchemaName
public java.lang.String dbSchemaName()- Specified by:
dbSchemaNamein interfaceorg.nuiton.topia.persistence.TopiaEntityEnum
-
dbTableName
public java.lang.String dbTableName()- Specified by:
dbTableNamein interfaceorg.nuiton.topia.persistence.TopiaEntityEnum
-
getNaturalIds
public java.lang.String[] getNaturalIds()- Specified by:
getNaturalIdsin interfaceorg.nuiton.topia.persistence.TopiaEntityEnum
-
isUseNaturalIds
public boolean isUseNaturalIds()- Specified by:
isUseNaturalIdsin interfaceorg.nuiton.topia.persistence.TopiaEntityEnum
-
getNotNulls
public java.lang.String[] getNotNulls()- Specified by:
getNotNullsin interfaceorg.nuiton.topia.persistence.TopiaEntityEnum
-
isUseNotNulls
public boolean isUseNotNulls()- Specified by:
isUseNotNullsin interfaceorg.nuiton.topia.persistence.TopiaEntityEnum
-
getImplementationFQN
public java.lang.String getImplementationFQN()- Specified by:
getImplementationFQNin interfaceorg.nuiton.topia.persistence.TopiaEntityEnum
-
setImplementationFQN
public void setImplementationFQN(java.lang.String implementationFQN)- Specified by:
setImplementationFQNin interfaceorg.nuiton.topia.persistence.TopiaEntityEnum
-
accept
public boolean accept(java.lang.Class<? extends org.nuiton.topia.persistence.TopiaEntity> klass)- Specified by:
acceptin interfaceorg.nuiton.topia.persistence.TopiaEntityEnum
-
getImplementation
public java.lang.Class<? extends org.nuiton.topia.persistence.TopiaEntity> getImplementation()- Specified by:
getImplementationin interfaceorg.nuiton.topia.persistence.TopiaEntityEnum
-
valueOf
public static TopiaTestDAOHelper.TopiaTestEntityEnum valueOf(org.nuiton.topia.persistence.TopiaEntity entity)Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
entity- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
klass- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-