Package org.apache.torque.templates
Enum TorqueSchemaAttributeName
- java.lang.Object
-
- java.lang.Enum<TorqueSchemaAttributeName>
-
- org.apache.torque.templates.TorqueSchemaAttributeName
-
- All Implemented Interfaces:
Serializable
,Comparable<TorqueSchemaAttributeName>
,SourceAttributeName
public enum TorqueSchemaAttributeName extends Enum<TorqueSchemaAttributeName> implements SourceAttributeName
Contains all attribute names from the Torque schema. $Id: TorqueSchemaAttributeName.java 1895112 2021-11-17 15:48:40Z gk $
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO_INCREMENT
attribute autoIncrement.BASE_CLASS
attribute baseClass.CLASS
attribute class.DEFAULT
attribute default.DEFAULT_ID_METHOD
attribute defaultIdMethod.DEFAULT_JAVA_TYPE
attribute defaultJavaType.DOMAIN
attribute domain.ENUM_TYPE
attribute versionEXTENDS
attribute extends.FILENAME
attribute filename.FOREIGN
attribute foreign.FOREIGN_TABLE
attribute foreignTable.ID_METHOD
attribute idMethod.INHERITANCE
attribute inheritance.INTERFACE
attribute interface.JAVA_NAME
attribute javaName.JAVA_TYPE
attribute javaType.KEY
attribute keyLOCAL
attribute local.NAME
attribute name.ON_DELETE
attribute onDelete.ON_UPDATE
attribute onUpdate.PACKAGE
package relative or absolute, only inheritance typePEER_INTERFACE
attribute peerInterface.PRIMARY_KEY
attribute primaryKey.PROTECTED
attribute protected.REQUIRED
attribute required.SCALE
attribute scale.SIZE
attribute size.SKIP_SQL
attribute skipSqlTYPE
attribute type.USE_DATABASE_DEFAULT_VALUE
attribute useDatabaseDefaultValue.VALUE
attribute value.VERSION
attribute version
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
returns the name of the attribute.String
toString()
static TorqueSchemaAttributeName
valueOf(String name)
Returns the enum constant of this type with the specified name.static TorqueSchemaAttributeName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NAME
public static final TorqueSchemaAttributeName NAME
attribute name.
-
JAVA_NAME
public static final TorqueSchemaAttributeName JAVA_NAME
attribute javaName.
-
JAVA_TYPE
public static final TorqueSchemaAttributeName JAVA_TYPE
attribute javaType.
-
FOREIGN_TABLE
public static final TorqueSchemaAttributeName FOREIGN_TABLE
attribute foreignTable.
-
LOCAL
public static final TorqueSchemaAttributeName LOCAL
attribute local.
-
FOREIGN
public static final TorqueSchemaAttributeName FOREIGN
attribute foreign.
-
ON_UPDATE
public static final TorqueSchemaAttributeName ON_UPDATE
attribute onUpdate.
-
ON_DELETE
public static final TorqueSchemaAttributeName ON_DELETE
attribute onDelete.
-
PRIMARY_KEY
public static final TorqueSchemaAttributeName PRIMARY_KEY
attribute primaryKey.
-
ID_METHOD
public static final TorqueSchemaAttributeName ID_METHOD
attribute idMethod.
-
DEFAULT_ID_METHOD
public static final TorqueSchemaAttributeName DEFAULT_ID_METHOD
attribute defaultIdMethod.
-
DEFAULT_JAVA_TYPE
public static final TorqueSchemaAttributeName DEFAULT_JAVA_TYPE
attribute defaultJavaType.
-
VALUE
public static final TorqueSchemaAttributeName VALUE
attribute value.
-
REQUIRED
public static final TorqueSchemaAttributeName REQUIRED
attribute required.
-
AUTO_INCREMENT
public static final TorqueSchemaAttributeName AUTO_INCREMENT
attribute autoIncrement.
-
INHERITANCE
public static final TorqueSchemaAttributeName INHERITANCE
attribute inheritance.
-
INTERFACE
public static final TorqueSchemaAttributeName INTERFACE
attribute interface.
-
PEER_INTERFACE
public static final TorqueSchemaAttributeName PEER_INTERFACE
attribute peerInterface.
-
PROTECTED
public static final TorqueSchemaAttributeName PROTECTED
attribute protected.
-
DEFAULT
public static final TorqueSchemaAttributeName DEFAULT
attribute default.
-
USE_DATABASE_DEFAULT_VALUE
public static final TorqueSchemaAttributeName USE_DATABASE_DEFAULT_VALUE
attribute useDatabaseDefaultValue.
-
CLASS
public static final TorqueSchemaAttributeName CLASS
attribute class.
-
BASE_CLASS
public static final TorqueSchemaAttributeName BASE_CLASS
attribute baseClass.
-
EXTENDS
public static final TorqueSchemaAttributeName EXTENDS
attribute extends.
-
DOMAIN
public static final TorqueSchemaAttributeName DOMAIN
attribute domain.
-
TYPE
public static final TorqueSchemaAttributeName TYPE
attribute type.
-
SIZE
public static final TorqueSchemaAttributeName SIZE
attribute size.
-
SCALE
public static final TorqueSchemaAttributeName SCALE
attribute scale.
-
FILENAME
public static final TorqueSchemaAttributeName FILENAME
attribute filename.
-
KEY
public static final TorqueSchemaAttributeName KEY
attribute key
-
SKIP_SQL
public static final TorqueSchemaAttributeName SKIP_SQL
attribute skipSql
-
VERSION
public static final TorqueSchemaAttributeName VERSION
attribute version
-
ENUM_TYPE
public static final TorqueSchemaAttributeName ENUM_TYPE
attribute version
-
PACKAGE
public static final TorqueSchemaAttributeName PACKAGE
package relative or absolute, only inheritance type
-
-
Method Detail
-
values
public static TorqueSchemaAttributeName[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TorqueSchemaAttributeName c : TorqueSchemaAttributeName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TorqueSchemaAttributeName valueOf(String name)
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
public String getName()
returns the name of the attribute.- Specified by:
getName
in interfaceSourceAttributeName
- Returns:
- the name of the attribute, not null.
-
toString
public String toString()
- Overrides:
toString
in classEnum<TorqueSchemaAttributeName>
-
-