java.lang.Object
io.github.mmm.orm.ddl.DbElement
io.github.mmm.orm.ddl.DbColumnSpec
DbElement for a database column.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDbColumnSpec(io.github.mmm.property.ReadableProperty<?> property) The constructor.DbColumnSpec(io.github.mmm.property.ReadableProperty<?> property, DbTableSpec table) The constructor.DbColumnSpec(String name, io.github.mmm.property.ReadableProperty<?> property, DbTableSpec table) The constructor.DbColumnSpec(String name, io.github.mmm.property.ReadableProperty<?> property, DbTableSpec table, String declaration) The constructor. -
Method Summary
Modifier and TypeMethodDescriptioncreateName(DbNamingStrategy namingStrategy) io.github.mmm.property.ReadableProperty<?> getTable()
-
Field Details
-
NO_COLUMNS
EmptyDbColumnSpecarray.
-
-
Constructor Details
-
DbColumnSpec
public DbColumnSpec(io.github.mmm.property.ReadableProperty<?> property) The constructor.- Parameters:
property- theproperty.
-
DbColumnSpec
The constructor. -
DbColumnSpec
public DbColumnSpec(String name, io.github.mmm.property.ReadableProperty<?> property, DbTableSpec table) The constructor. -
DbColumnSpec
public DbColumnSpec(String name, io.github.mmm.property.ReadableProperty<?> property, DbTableSpec table, String declaration) The constructor.- Parameters:
name- thename.property- theproperty.table- thetable.declaration- the explicitcolumn declaration(database specific).
-
-
Method Details
-
getProperty
public io.github.mmm.property.ReadableProperty<?> getProperty()- Returns:
- the associated
propertyrepresented as column.
-
getTable
- Returns:
- the
DbTableSpecowning this column.
-
getDeclaration
- Returns:
- the column declaration (type). Typically
nullto derive it automatically from thepropertytype.
-
createName
- Specified by:
createNamein classDbElement- Parameters:
namingStrategy- theDbNamingStrategy.- Returns:
- the computed
constraintname.
-