java.lang.Object
org.litebridge.db.spi.Table
- All Implemented Interfaces:
SelectTarget
- Direct Known Subclasses:
VirtualTable
A database table with an associated catalog, schema, name, and optional alias.
This class provides functionality for handling table-related metadata and supports aliasing for the table name.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.litebridge.db.spi.query.SelectTarget
SelectTarget.Void -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newTablewith catalog, schema, and name.Constructs a newTablewith the specified fully qualified name.Constructs a newTableas a copy of another table. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringcatalog()Returns the catalog name of the table.booleaninthashCode()booleanname()Retrieve the database table name.Returns the qualified name of the table (schema.name).@Nullable Stringschema()Returns the schema name of the table.toString()
-
Constructor Details
-
Table
Constructs a newTablewith catalog, schema, and name.- Parameters:
catalog- the catalog nameschema- the schema namename- the table name
-
Table
Constructs a newTablewith the specified fully qualified name.- Parameters:
name- the fully qualified table name, e.g."schema.table"or"catalog.schema.table"
-
Table
Constructs a newTableas a copy of another table.- Parameters:
other- the table to copy
-
-
Method Details
-
catalog
Returns the catalog name of the table.- Returns:
- the catalog name, or
nullif not specified
-
schema
Returns the schema name of the table.- Returns:
- the schema name, or
nullif not specified
-
qualifiedName
Returns the qualified name of the table (schema.name).- Returns:
- the qualified table name
-
equals
-
hashCode
public int hashCode() -
toString
-
name
Retrieve the database table name.- Returns:
- The name of the table.
-
isVirtual
public boolean isVirtual()
-