Class TableMetadata
java.lang.Object
org.eclipse.dirigible.database.api.metadata.TableMetadata
public class TableMetadata extends Object
The Table Metadata transport object.
-
Constructor Summary
Constructors Constructor Description TableMetadata(String name, String type, String remarks, Connection connection, String catalogName, String schemaName, boolean deep)Instantiates a new table metadata. -
Method Summary
Modifier and Type Method Description List<ColumnMetadata>getColumns()Gets the columns.List<IndexMetadata>getIndices()Gets the indices.StringgetKind()Gets the kind.StringgetName()Gets the name.StringgetRemarks()Gets the remarks.StringgetType()Gets the type.voidsetKind(String kind)Sets the kind.voidsetName(String name)Sets the name.voidsetRemarks(String remarks)Sets the remarks.voidsetType(String type)Sets the type.
-
Constructor Details
-
TableMetadata
public TableMetadata(String name, String type, String remarks, Connection connection, String catalogName, String schemaName, boolean deep) throws SQLExceptionInstantiates a new table metadata.- Parameters:
name- the nametype- the typeremarks- the remarksconnection- the connectioncatalogName- the catalog nameschemaName- the schema namedeep- whether to populate also the columns- Throws:
SQLException- the SQL exception
-
-
Method Details
-
getName
Gets the name.- Returns:
- the name
-
setName
Sets the name.- Parameters:
name- the new name
-
getType
Gets the type.- Returns:
- the type
-
setType
Sets the type.- Parameters:
type- the new type
-
getRemarks
Gets the remarks.- Returns:
- the remarks
-
setRemarks
Sets the remarks.- Parameters:
remarks- the new remarks
-
getColumns
Gets the columns.- Returns:
- the columns
-
getIndices
Gets the indices.- Returns:
- the indices
-
getKind
Gets the kind.- Returns:
- the kind
-
setKind
Sets the kind.- Parameters:
kind- the new kind
-