Modifier and Type | Method and Description |
---|---|
DbFunctionPackage |
addDefaultFunctionPackage()
Creates and adds a package with no name to this spec (often referred to
as the default package).
|
DbFunctionPackage |
addFunctionPackage(String name)
Creates and adds a package with the given name to this spec.
|
<T extends DbFunctionPackage> |
addFunctionPackage(T functionPackage)
Adds the given functionPackage to this schema.
|
DbIndex |
addIndex(String name,
String tableName,
String... colNames)
Creates and adds a index with the given parameters to this schema.
|
<T extends DbIndex> |
addIndex(T index)
Adds the given index to this schema.
|
DbTable |
addTable(String name)
Creates and adds a table with the given name to this schema.
|
<T extends DbTable> |
addTable(T table)
Adds the given table to this schema.
|
DbFunctionPackage |
findFunctionPackage(String name) |
DbIndex |
findIndex(String name) |
DbTable |
findTable(String name) |
DbFunctionPackage |
getDefaultFunctionPackage() |
List<DbFunctionPackage> |
getFunctionPackages() |
List<DbIndex> |
getIndexs() |
DbSpec |
getSpec()
Default implementation returns the parent's spec.
|
List<DbTable> |
getTables() |
addObjects, checkOwnership, checkOwnership, findObject, getAbsoluteName, getName, getParent, toString
public DbSpec getSpec()
DbObject
public List<DbFunctionPackage> getFunctionPackages()
public DbTable findTable(String name)
name
- name of the table to findnull
if none.public DbTable addTable(String name)
Note, no effort is made to make sure the given name is unique.
name
- the name of the new tablepublic <T extends DbTable> T addTable(T table)
Note, no effort is made to make sure the given table is unique.
table
- the table to be addedpublic DbIndex findIndex(String name)
name
- name of the index to findnull
if none.public DbIndex addIndex(String name, String tableName, String... colNames)
Note, no effort is made to make sure the given name is unique.
name
- the name of the new indextableName
- name of the table indexedcolNames
- names of the columns indexed in the given tablepublic <T extends DbIndex> T addIndex(T index)
Note, no effort is made to make sure the given index is unique.
index
- the index to be addedpublic DbFunctionPackage getDefaultFunctionPackage()
null
if none.public DbFunctionPackage findFunctionPackage(String name)
name
- name of the package to findnull
if none.public DbFunctionPackage addDefaultFunctionPackage()
Note, no effort is made to make sure the package is unique.
public DbFunctionPackage addFunctionPackage(String name)
Note, no effort is made to make sure the given name is unique.
name
- the name of the new packagepublic <T extends DbFunctionPackage> T addFunctionPackage(T functionPackage)
Note, no effort is made to make sure the given functionPackage is unique.
functionPackage
- the functionPackage to be addedCopyright © 2006–2021 OpenHMS. All rights reserved.