|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface Column
Database column
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Nested Class Summary | |
|---|---|
static class |
Column.IsPartOfPrimaryKey
|
| Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.db.DatabaseObject |
|---|
DatabaseObject.DefaultComparator, DatabaseObject.IdentifierTransformer, DatabaseObject.NameTransformer |
| Field Summary | |
|---|---|
static org.eclipse.jpt.common.utility.predicate.Predicate<Column> |
IS_PART_OF_PRIMARY_KEY
|
| Fields inherited from interface org.eclipse.jpt.jpa.db.DatabaseObject |
|---|
DEFAULT_COMPARATOR, IDENTIFIER_TRANSFORMER, NAME_TRANSFORMER |
| Method Summary | |
|---|---|
String |
getDataTypeName()
Return the name of the column's datatype. |
JavaType |
getJavaType()
Return a Java type that is reasonably similar to the column's data type. |
String |
getJavaTypeDeclaration()
Return a Java type declaration that is reasonably similar to the column's data type. |
int |
getLength()
If the column is a CharacterStringDataType, return its length; otherwise, return -1. |
int |
getPrecision()
Return the column's precision if it is a NumericalDataType; otherwise, return -1. |
JavaType |
getPrimaryKeyJavaType()
Return a Java type that is reasonably similar to the column's data type and suitable for use as a primary key field. |
String |
getPrimaryKeyJavaTypeDeclaration()
Return a Java type declaration that is reasonably similar to the column's data type and suitable for use as a primary key field. |
int |
getScale()
Return the column's scale if it is an ExactNumericDataType; otherwise, return -1. |
Table |
getTable()
Return the column's table. |
boolean |
isLOB()
Return whether the column's datatype is a LOB type (i.e. |
boolean |
isNullable()
Return whether the column is nullable. |
boolean |
isNumeric()
Return whether the column's type is numeric. |
boolean |
isPartOfForeignKey()
Return whether the column is part of one of its table's foreign keys. |
boolean |
isPartOfPrimaryKey()
Return whether the column is part of its table's primary key. |
boolean |
isPartOfUniqueConstraint()
Return whether the column is part of a unique constraint defined for its table. |
| Methods inherited from interface org.eclipse.jpt.jpa.db.DatabaseObject |
|---|
getConnectionProfile, getDatabase, getIdentifier, getIdentifier, getName, refresh |
| Field Detail |
|---|
static final org.eclipse.jpt.common.utility.predicate.Predicate<Column> IS_PART_OF_PRIMARY_KEY
| Method Detail |
|---|
Table getTable()
boolean isPartOfPrimaryKey()
boolean isPartOfForeignKey()
boolean isPartOfUniqueConstraint()
boolean isNullable()
String getDataTypeName()
boolean isNumeric()
int getPrecision()
int getScale()
int getLength()
boolean isLOB()
String getJavaTypeDeclaration()
JavaType getJavaType()
String getPrimaryKeyJavaTypeDeclaration()
JavaType getPrimaryKeyJavaType()
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||