Klasse ColumnMetadata
java.lang.Object
org.apache.torque.generator.source.jdbc.ColumnMetadata
The data retrieved about a column as read from JDBC Metadata.
- Version:
- $Id: ColumnMetadata.java 1917241 2024-04-21 13:29:41Z tv $
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
-
Konstruktordetails
-
ColumnMetadata
public ColumnMetadata(String name, Integer sqlType, Integer size, Integer nullType, String defValue, Integer decimalDigits) Constructor.- Parameter:
name
- The name of the column.sqlType
- The data type of the column.size
- The maximum size of the column.nullType
- 0 if the column may not be null, 1 if the column may be known, 2 unknown.defValue
- The default value of the column, or null if no default value exists.decimalDigits
- The number of decimal digits of the column.
-
-
Methodendetails
-
getName
Returns the name of the column.- Gibt zurück:
- the name of the column.
-
getSqlType
Returns the data type of the column.- Gibt zurück:
- the data type of the column as in java.sql.Types.
-
getSize
Returns the maximum size of the column.- Gibt zurück:
- the maximum size of the column.
-
getNullType
Returns whether the column may be null.- Gibt zurück:
- 0 if the column may not be null, 1 if the column may be known, 2 unknown.
-
getDefValue
Returns the default value of the column.- Gibt zurück:
- the default value, or 0 if no default value exists.
-
getDecimalDigits
Returns the number of decimal digits.- Gibt zurück:
- the number of decimal digits.
-