Package com.im.commons.db.dml
Class TableDefinition
- java.lang.Object
-
- com.im.commons.db.dml.TableDefinition
-
- All Implemented Interfaces:
SQLStringRenderer
,java.io.Serializable
public final class TableDefinition extends java.lang.Object implements SQLStringRenderer, java.io.Serializable
The definition of a database table-like artifacts. It covers tables, views and inline views (a.k.a FROM clause subqueries).- Since:
- 5.12
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TableDefinition(DBTableInfo ti)
TableDefinition(SchemaQualifiedName name)
TableDefinition(SchemaQualifiedName name, java.lang.String subquery)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendTo(java.lang.StringBuilder buf, TermEncoder encoder)
boolean
equals(java.lang.Object obj)
SchemaQualifiedName
getName()
java.lang.String
getSubquery()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
TableDefinition
public TableDefinition(SchemaQualifiedName name)
-
TableDefinition
public TableDefinition(SchemaQualifiedName name, java.lang.String subquery)
-
TableDefinition
public TableDefinition(DBTableInfo ti)
-
-
Method Detail
-
getName
public SchemaQualifiedName getName()
-
getSubquery
public java.lang.String getSubquery()
-
appendTo
public void appendTo(java.lang.StringBuilder buf, TermEncoder encoder)
- Specified by:
appendTo
in interfaceSQLStringRenderer
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-