Class Column
java.lang.Object
com.invirgance.convirgance.jdbc.schema.Column
- All Implemented Interfaces:
NamedSchema
Represents a column in a table. Can be used to create logic that depends
on column metadata like data-type, null-ability or parent.
You can get this object through
DatabaseSchemaLayout.getAllStructures()
and use the returned array then calling TabularStructure.getColumn(name)
.- Author:
- jbanes
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The default value for this column Example: if the column is of type DATE, and CURRENT_DATE is set as the default value.Returns the JDBCType (data-type) for this column.getName()
Get the schema name of this database objectReturns the parent object of this, like a view or table.Get the schema name of this database object quoted for use in a SQL statementgetType()
Returns the column's data type.Returns the Object class that this column stores.int
hashCode()
boolean
Returns if this column can store null values.toString()
-
Method Details
-
getName
Description copied from interface:NamedSchema
Get the schema name of this database object- Specified by:
getName
in interfaceNamedSchema
- Returns:
- name of the object with exact database capitalization
-
getQuotedName
Description copied from interface:NamedSchema
Get the schema name of this database object quoted for use in a SQL statement- Specified by:
getQuotedName
in interfaceNamedSchema
- Returns:
- name of the object quoted for use in a SQL statement
-
getParent
Returns the parent object of this, like a view or table.- Returns:
- TabularStructure
-
isNullable
public boolean isNullable()Returns if this column can store null values.- Returns:
- True if null values are allowed.
-
getType
Returns the column's data type.- Returns:
- A String representing the data type.
-
getJDBCType
Returns the JDBCType (data-type) for this column.- Returns:
- The JDBCType.
-
getTypeClass
Returns the Object class that this column stores.- Returns:
- A Class.
-
getDefault
The default value for this column Example: if the column is of type DATE, and CURRENT_DATE is set as the default value.- Returns:
- Object.
-
hashCode
public int hashCode() -
equals
-
toString
-