public class TSQLCatalog extends TSQLObject
dataObjectType, name, nameKeepCase, sqlEnv
Constructor and Description |
---|
TSQLCatalog(TSQLEnv sqlEnv,
String catalogName)
create a catalog and add to the SQL environment.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addSchema(TSQLSchema sqlSchema) |
TSQLSchema |
createSchema(String schemaName)
create a schema under this catalog
|
TSQLSchema |
getSchema(String schemaName,
boolean createIfNotExist)
get a schema instance from the catalog, create a new schema if this schema is not exist and the createIfNotExist parameter is true.
|
List<TSQLSchema> |
getSchemaList()
schema list in this catalog
|
protected TSQLSchema |
searchSchema(String schemaName) |
compareTo, compareTo, compareTo, compareTo, getDataObjectType, getName, getNameKeepCase, getQualifiedName, getSqlEnv, isDelimitedIdentifier, isDelimitedIdentifier, normalizeIdentifier, normalizeIdentifier, normalizeIdentifier, setDataObjectType
public TSQLCatalog(TSQLEnv sqlEnv, String catalogName)
sqlEnv
- SQL environmentcatalogName
- catalog namepublic List<TSQLSchema> getSchemaList()
protected TSQLSchema searchSchema(String schemaName)
protected void addSchema(TSQLSchema sqlSchema)
public TSQLSchema getSchema(String schemaName, boolean createIfNotExist)
schemaName
- schema namecreateIfNotExist
- create a new schema if this schema is not exist and the createIfNotExist parameter is true.public TSQLSchema createSchema(String schemaName)
schemaName
- schema name