Class SQLColumnJoin
- java.lang.Object
-
- com.aoindustries.aoserv.client.sql.SQLColumnJoin
-
- All Implemented Interfaces:
SQLExpression
public final class SQLColumnJoin extends Object implements SQLExpression
Gets the value for one column by following its reference to another table.- Author:
- AO Industries, Inc.
-
-
Constructor Summary
Constructors Constructor Description SQLColumnJoin(AOServConnector conn, SQLExpression expression, Column keyColumn, Column valueColumn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectevaluate(AOServConnector conn, AOServObject<?,?> obj)Evaluates the expression on the given connector and object.StringgetColumnName()voidgetReferencedTables(AOServConnector conn, List<Table> tables)Gets all of the tables referenced by this expression.TypegetType()StringtoString()
-
-
-
Constructor Detail
-
SQLColumnJoin
public SQLColumnJoin(AOServConnector conn, SQLExpression expression, Column keyColumn, Column valueColumn) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
-
Method Detail
-
getColumnName
public String getColumnName()
- Specified by:
getColumnNamein interfaceSQLExpression
-
evaluate
public Object evaluate(AOServConnector conn, AOServObject<?,?> obj) throws IOException, SQLException
Description copied from interface:SQLExpressionEvaluates the expression on the given connector and object.- Specified by:
evaluatein interfaceSQLExpression- Throws:
IOExceptionSQLException
-
getType
public Type getType()
- Specified by:
getTypein interfaceSQLExpression
-
getReferencedTables
public void getReferencedTables(AOServConnector conn, List<Table> tables) throws IOException, SQLException
Description copied from interface:SQLExpressionGets all of the tables referenced by this expression.- Specified by:
getReferencedTablesin interfaceSQLExpression- Throws:
IOExceptionSQLException
-
-