Package | Description |
---|---|
com.healthmarketscience.sqlbuilder.dbspec.basic |
Very basic implementations of the
dbspec interfaces. |
Modifier and Type | Method and Description |
---|---|
<T extends DbTable> |
DbSchema.addTable(T table)
Adds the given table to this schema.
|
Modifier and Type | Method and Description |
---|---|
DbTable |
DbSchema.addTable(String name)
Creates and adds a table with the given name to this schema.
|
DbTable |
DbSpec.createTable(DbSchema parent,
String name)
Creates and returns a new
DbTable with the given parameters. |
DbTable |
DbSchema.findTable(String name) |
DbTable |
DbJoin.getFromTable() |
DbTable |
DbForeignKeyConstraint.getReferencedTable() |
DbTable |
DbColumn.getTable() |
DbTable |
DbIndex.getTable() |
DbTable |
DbJoin.getToTable() |
Modifier and Type | Method and Description |
---|---|
List<DbTable> |
DbSchema.getTables() |
Modifier and Type | Method and Description |
---|---|
DbColumn |
DbSpec.createColumn(DbTable parent,
String name,
String typeName,
Object... typeQualifiers)
Creates and returns a new
DbColumn with the given parameters. |
DbForeignKeyConstraint |
DbSpec.createColumnForeignKeyConstraint(DbColumn parent,
String name,
DbTable referencedTable,
DbColumn referencedColumn)
Creates and returns a new column
DbForeignKeyConstraint with the
given parameters. |
DbForeignKeyConstraint |
DbSpec.createColumnForeignKeyConstraint(DbColumn parent,
String name,
DbTable referencedTable,
String refColName)
Deprecated.
|
DbIndex |
DbSpec.createIndex(DbTable table,
String name,
String... colNames)
Creates and returns a new
DbIndex with the given parameters. |
DbJoin |
DbSpec.createJoin(DbTable fromTable,
DbTable toTable,
String[] fromColNames,
String[] toColNames)
Creates and returns a new
DbJoin with the given parameters. |
DbCheckConstraint |
DbSpec.createTableCheckConstraint(DbTable parent,
String name,
Condition condition)
Creates and returns a new table
DbCheckConstraint with the given
parameters. |
DbConstraint |
DbSpec.createTableConstraint(DbTable parent,
String name,
Constraint.Type type,
String... colNames)
Creates and returns a new table
DbConstraint with the given
parameters. |
DbForeignKeyConstraint |
DbSpec.createTableForeignKeyConstraint(DbTable parent,
String name,
DbTable referencedTable,
DbColumn[] columns,
DbColumn[] refColumns)
Creates and returns a new table
DbForeignKeyConstraint with the
given parameters. |
DbForeignKeyConstraint |
DbSpec.createTableForeignKeyConstraint(DbTable parent,
String name,
DbTable referencedTable,
String[] colNames,
String[] refColNames)
Deprecated.
|
DbForeignKeyConstraint |
DbTable.foreignKey(String name,
DbColumn[] columns,
DbTable referencedTable,
DbColumn[] refColumns)
Creates and adds foreign key constraint with the given parameters to this
table.
|
DbForeignKeyConstraint |
DbColumn.references(String name,
DbTable referencedTable,
DbColumn referencedColumn)
Creates and adds foreign key constraint with the given parameters to this
column.
|
Constructor and Description |
---|
DbCheckConstraint(DbTable parent,
String name,
Condition condition) |
DbColumn(DbTable parent,
String name,
String typeName,
Integer typeLength) |
DbColumn(DbTable parent,
String name,
String typeName,
Object... typeQualifiers) |
DbConstraint(DbTable parent,
String name,
Constraint.Type type,
DbColumn... columns) |
DbConstraint(DbTable parent,
String name,
Constraint.Type type,
String... colNames) |
DbForeignKeyConstraint(DbColumn parent,
String name,
DbTable referencedTable,
DbColumn refColumn) |
DbForeignKeyConstraint(DbColumn parent,
String name,
DbTable referencedTable,
String refColName) |
DbForeignKeyConstraint(DbTable parent,
String name,
DbTable referencedTable,
DbColumn[] columns,
DbColumn[] refColumns) |
DbForeignKeyConstraint(DbTable parent,
String name,
DbTable referencedTable,
String[] colNames,
String[] refColNames) |
DbIndex(DbTable table,
String name,
DbColumn... columns) |
DbIndex(DbTable table,
String name,
String... colNames) |
DbJoin(DbSpec spec,
DbTable fromTable,
DbTable toTable,
DbColumn[] fromColumns,
DbColumn[] toColumns) |
DbJoin(DbSpec spec,
DbTable fromTable,
DbTable toTable,
String[] fromColNames,
String[] toColNames) |
Copyright © 2006–2021 OpenHMS. All rights reserved.