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_INCREMENTattribute autoIncrement.BASE_CLASSattribute baseClass.CLASSattribute class.DEFAULTattribute default.DEFAULT_ID_METHODattribute defaultIdMethod.DEFAULT_JAVA_TYPEattribute defaultJavaType.DOMAINattribute domain.ENUM_TYPEattribute versionEXTENDSattribute extends.FILENAMEattribute filename.FOREIGNattribute foreign.FOREIGN_TABLEattribute foreignTable.ID_METHODattribute idMethod.INHERITANCEattribute inheritance.INTERFACEattribute interface.JAVA_NAMEattribute javaName.JAVA_TYPEattribute javaType.KEYattribute keyLOCALattribute local.NAMEattribute name.ON_DELETEattribute onDelete.ON_UPDATEattribute onUpdate.PACKAGEpackage relative or absolute, only inheritance typePEER_INTERFACEattribute peerInterface.PRIMARY_KEYattribute primaryKey.PROTECTEDattribute protected.REQUIREDattribute required.SCALEattribute scale.SIZEattribute size.SKIP_SQLattribute skipSqlTYPEattribute type.USE_DATABASE_DEFAULT_VALUEattribute useDatabaseDefaultValue.VALUEattribute value.VERSIONattribute version
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()returns the name of the attribute.StringtoString()static TorqueSchemaAttributeNamevalueOf(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:
getNamein interfaceSourceAttributeName- Returns:
- the name of the attribute, not null.
-
toString
public String toString()
- Overrides:
toStringin classEnum<TorqueSchemaAttributeName>
-
-