|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Database
A general database model.
| Method Summary | |
|---|---|
org.jooq.impl.Factory |
create()
Create the factory for this database |
boolean |
dateAsTimestamp()
Whether DATE columns should be treated as TIMESTAMP columns |
ArrayDefinition |
getArray(SchemaDefinition schema,
String name)
Get a ARRAY defined in this database by name |
ArrayDefinition |
getArray(SchemaDefinition schema,
String name,
boolean ignoreCase)
Get a ARRAY defined in this database by name |
List<ArrayDefinition> |
getArrays(SchemaDefinition schema)
The Arrays defined in this database |
CustomType |
getConfiguredCustomType(String name)
Get a specific configured custom type by its name |
List<CustomType> |
getConfiguredCustomTypes()
Database objects matching any of these field names will be generated as custom types |
List<EnumType> |
getConfiguredEnumTypes()
Database objects matching any of these field names will be generated as enum types |
ForcedType |
getConfiguredForcedType(Definition definition)
Get the configured forced type object for any given Definition,
or null if no ForcedType matches the definition. |
List<ForcedType> |
getConfiguredForcedTypes()
Database objects matching any of these field names will be generated as forced types |
List<MasterDataTable> |
getConfiguredMasterDataTables()
Database objects matching any of these table names will be generated as master data tables. |
Connection |
getConnection()
The database connection |
org.jooq.SQLDialect |
getDialect()
Get the dialect for this database |
EnumDefinition |
getEnum(SchemaDefinition schema,
String name)
Get an enum UDT defined in this database by name |
EnumDefinition |
getEnum(SchemaDefinition schema,
String name,
boolean ignoreCase)
Get an enum UDT defined in this database by name |
List<EnumDefinition> |
getEnums(SchemaDefinition schema)
The enum UDTs defined in this database |
String[] |
getExcludes()
Database objects matching any of these regular expressions will not be generated. |
String[] |
getIncludes()
Only database objects matching any of these regular expressions will be generated. |
List<String> |
getInputSchemata()
The input schemata are the schemata that jooq-meta is reading data from |
MasterDataTableDefinition |
getMasterDataTable(SchemaDefinition schema,
String name)
Get a master data table in this database by name |
MasterDataTableDefinition |
getMasterDataTable(SchemaDefinition schema,
String name,
boolean ignoreCase)
Get a master data table in this database by name |
List<MasterDataTableDefinition> |
getMasterDataTables(SchemaDefinition schema)
The master data tables contained in this database (for schema getSchema(String)) |
String |
getOutputSchema(String inputSchema)
Deprecated. - 2.0.5 - This will be implemented in each Definition.getOutputName() |
List<PackageDefinition> |
getPackages(SchemaDefinition schema)
The packages contained in this database |
Relations |
getRelations()
Retrieve the schema's primary key / foreign key relations |
List<RoutineDefinition> |
getRoutines(SchemaDefinition schema)
The stored routines (procedures and functions) contained in this database |
SchemaDefinition |
getSchema(String name)
Get a schema defined in this database by name |
List<SchemaDefinition> |
getSchemata()
The schemata generated from this database |
List<SequenceDefinition> |
getSequences(SchemaDefinition schema)
The sequences contained in this database |
TableDefinition |
getTable(SchemaDefinition schema,
String name)
Get a table in this database by name |
TableDefinition |
getTable(SchemaDefinition schema,
String name,
boolean ignoreCase)
Get a table in this database by name |
List<TableDefinition> |
getTables(SchemaDefinition schema)
The tables contained in this database |
UDTDefinition |
getUDT(SchemaDefinition schema,
String name)
Get a UDT defined in this database by name |
UDTDefinition |
getUDT(SchemaDefinition schema,
String name,
boolean ignoreCase)
Get a UDT defined in this database by name |
List<UDTDefinition> |
getUDTs(SchemaDefinition schema)
The UDTs defined in this database |
boolean |
isArrayType(String dataType)
Check whether a type is an array type |
void |
setConfiguredCustomTypes(List<CustomType> types)
Database objects matching any of these field names will be generated as custom types |
void |
setConfiguredEnumTypes(List<EnumType> types)
Database objects matching any of these field names will be generated as enum types |
void |
setConfiguredForcedTypes(List<ForcedType> types)
Database objects matching any of these field names will be generated as forced types |
void |
setConfiguredMasterDataTables(List<MasterDataTable> tables)
Database objects matching any of these table names will be generated as master data tables. |
void |
setConfiguredSchemata(List<Schema> schemata)
The input and output schemata |
void |
setConnection(Connection connection)
Initialise a connection to this database |
void |
setDateAsTimestamp(boolean dateAsTimestamp)
Whether DATE columns should be treated as TIMESTAMP columns |
void |
setExcludes(String[] excludes)
Database objects matching any of these regular expressions will not be generated. |
void |
setIncludes(String[] includes)
Only database objects matching any of these regular expressions will be generated. |
void |
setSupportsUnsignedTypes(boolean supportsUnsignedTypes)
Whether this database supports unsigned types |
boolean |
supportsUnsignedTypes()
Whether this database supports unsigned types |
| Method Detail |
|---|
List<SchemaDefinition> getSchemata()
SchemaDefinition getSchema(String name)
Relations getRelations()
List<SequenceDefinition> getSequences(SchemaDefinition schema)
List<TableDefinition> getTables(SchemaDefinition schema)
TableDefinition getTable(SchemaDefinition schema,
String name)
TableDefinition getTable(SchemaDefinition schema,
String name,
boolean ignoreCase)
List<MasterDataTableDefinition> getMasterDataTables(SchemaDefinition schema)
getSchema(String))
MasterDataTableDefinition getMasterDataTable(SchemaDefinition schema,
String name)
MasterDataTableDefinition getMasterDataTable(SchemaDefinition schema,
String name,
boolean ignoreCase)
List<EnumDefinition> getEnums(SchemaDefinition schema)
EnumDefinition getEnum(SchemaDefinition schema,
String name)
EnumDefinition getEnum(SchemaDefinition schema,
String name,
boolean ignoreCase)
List<UDTDefinition> getUDTs(SchemaDefinition schema)
UDTDefinition getUDT(SchemaDefinition schema,
String name)
UDTDefinition getUDT(SchemaDefinition schema,
String name,
boolean ignoreCase)
List<ArrayDefinition> getArrays(SchemaDefinition schema)
ArrayDefinition getArray(SchemaDefinition schema,
String name)
ArrayDefinition getArray(SchemaDefinition schema,
String name,
boolean ignoreCase)
List<RoutineDefinition> getRoutines(SchemaDefinition schema)
List<PackageDefinition> getPackages(SchemaDefinition schema)
void setConnection(Connection connection)
Connection getConnection()
List<String> getInputSchemata()
@Deprecated String getOutputSchema(String inputSchema)
Definition.getOutputName()
void setConfiguredSchemata(List<Schema> schemata)
void setIncludes(String[] includes)
String[] getIncludes()
void setConfiguredMasterDataTables(List<MasterDataTable> tables)
List<MasterDataTable> getConfiguredMasterDataTables()
void setConfiguredCustomTypes(List<CustomType> types)
List<CustomType> getConfiguredCustomTypes()
CustomType getConfiguredCustomType(String name)
void setConfiguredEnumTypes(List<EnumType> types)
List<EnumType> getConfiguredEnumTypes()
void setConfiguredForcedTypes(List<ForcedType> types)
List<ForcedType> getConfiguredForcedTypes()
ForcedType getConfiguredForcedType(Definition definition)
Definition,
or null if no ForcedType matches the definition.
void setExcludes(String[] excludes)
String[] getExcludes()
org.jooq.SQLDialect getDialect()
org.jooq.impl.Factory create()
boolean isArrayType(String dataType)
void setSupportsUnsignedTypes(boolean supportsUnsignedTypes)
boolean supportsUnsignedTypes()
void setDateAsTimestamp(boolean dateAsTimestamp)
boolean dateAsTimestamp()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||