Package org.datanucleus.store.rdbms.sql
Class SQLTable
java.lang.Object
org.datanucleus.store.rdbms.sql.SQLTable
Representation of a table reference in an SQL statement.
Has a table, and an alias.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DatastoreIdentifier
protected String
protected SQLStatement
protected Table
-
Constructor Summary
ConstructorsConstructorDescriptionSQLTable
(SQLStatement stmt, Table tbl, DatastoreIdentifier alias, String grpName) Constructor for a table involved in an SQLStatement. -
Method Summary
-
Field Details
-
stmt
-
table
-
alias
-
groupName
-
-
Constructor Details
-
SQLTable
SQLTable(SQLStatement stmt, Table tbl, DatastoreIdentifier alias, String grpName) Constructor for a table involved in an SQLStatement. Package permission so that it can't be created from other packages - i.e to restrict construction to SQLStatement- Parameters:
stmt
- Statement that this table relates totbl
- The underlying tablealias
- Alias to use for this table in the SQLStatementgrpName
- Name of the group this table is in
-
-
Method Details
-
getSQLStatement
-
getTable
-
getAlias
-
getGroupName
-
hashCode
public int hashCode() -
equals
-
toString
Stringifier method to return this "table" in a form for use in SQL statements. This can be of the following form(s)MYTABLE MYALIAS MYTABLE
-