public final class TablesContext extends Object
| 构造器和说明 |
|---|
TablesContext(SQLStatement sqlStatement) |
| 限定符和类型 | 方法和说明 |
|---|---|
com.google.common.base.Optional<Table> |
find(String tableNameOrAlias)
Find table via table name or alias.
|
com.google.common.base.Optional<String> |
findTableName(ColumnSegment columnSegment,
RelationMetas relationMetas)
Find table name.
|
com.google.common.base.Optional<String> |
getSchema()
Get schema.
|
String |
getSingleTableName()
Get single table name.
|
Collection<String> |
getTableNames()
Get table names.
|
boolean |
isEmpty()
Judge table is empty or not.
|
boolean |
isSingleTable()
Judge is single table or not.
|
public TablesContext(SQLStatement sqlStatement)
public boolean isEmpty()
public boolean isSingleTable()
public String getSingleTableName()
public Collection<String> getTableNames()
public com.google.common.base.Optional<Table> find(String tableNameOrAlias)
tableNameOrAlias - table name or aliaspublic com.google.common.base.Optional<String> findTableName(ColumnSegment columnSegment, RelationMetas relationMetas)
columnSegment - column segmentrelationMetas - relation metaspublic com.google.common.base.Optional<String> getSchema()
Copyright © 2019 The Apache Software Foundation. All rights reserved.