public class Schema extends Object
Constructor and Description |
---|
Schema(SchemaRepository repository) |
Schema(SchemaRepository repository,
String name) |
Modifier and Type | Method and Description |
---|---|
SQLColumnDefinition |
findColumn(SQLTableSource tableSource,
SQLExpr expr) |
SQLColumnDefinition |
findColumn(SQLTableSource tableSource,
SQLSelectItem selectItem) |
SchemaObject |
findFunction(String functionName) |
SchemaObject |
findTable(long nameHashCode64) |
SchemaObject |
findTable(SQLTableSource tableSource,
SQLExpr expr) |
SchemaObject |
findTable(SQLTableSource tableSource,
SQLSelectItem selectItem) |
SchemaObject |
findTable(SQLTableSource tableSource,
String alias) |
SchemaObject |
findTable(String tableName) |
SchemaObject |
findTableOrView(long hashCode64) |
SchemaObject |
findTableOrView(String tableName) |
String |
getName() |
Collection<SchemaObject> |
getObjects() |
int |
getTableCount() |
Map<String,SchemaObject> |
getTables(SQLTableSource x) |
int |
getViewCount() |
boolean |
isSequence(String name) |
void |
setName(String name) |
List<String> |
showTables() |
public Schema(SchemaRepository repository)
public Schema(SchemaRepository repository, String name)
public String getName()
public void setName(String name)
public SchemaObject findTable(String tableName)
public SchemaObject findTable(long nameHashCode64)
public SchemaObject findTableOrView(String tableName)
public SchemaObject findTableOrView(long hashCode64)
public SchemaObject findFunction(String functionName)
public boolean isSequence(String name)
public SchemaObject findTable(SQLTableSource tableSource, String alias)
public SQLColumnDefinition findColumn(SQLTableSource tableSource, SQLSelectItem selectItem)
public SQLColumnDefinition findColumn(SQLTableSource tableSource, SQLExpr expr)
public SchemaObject findTable(SQLTableSource tableSource, SQLSelectItem selectItem)
public SchemaObject findTable(SQLTableSource tableSource, SQLExpr expr)
public Map<String,SchemaObject> getTables(SQLTableSource x)
public int getTableCount()
public Collection<SchemaObject> getObjects()
public int getViewCount()
Copyright © 2013–2017 Alibaba Group. All rights reserved.