|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.expression.Expression
org.h2.expression.Function
org.h2.expression.TableFunction
public class TableFunction
Implementation of the functions TABLE(..) and TABLE_DISTINCT(..).
| Field Summary |
|---|
| Method Summary | |
|---|---|
protected void |
checkParameterCount(int len)
Check if the parameter count is correct. |
java.lang.String |
getName()
Get the name of the function. |
long |
getRowCount()
|
java.lang.String |
getSQL()
Get the SQL statement of this expression. |
Value |
getValue(Session session)
Return the resulting value for the current row. |
ValueResultSet |
getValueForColumnList(Session session,
Expression[] nullArgs)
Get an empty result set with the column names set. |
void |
setColumns(ObjectArray<Column> columns)
|
| Methods inherited from class org.h2.expression.Function |
|---|
doneWithParameters, getArgs, getCost, getDisplaySize, getFunction, getFunctionInfo, getFunctionType, getParameterCount, getPrecision, getScale, getType, isDatePart, isDeterministic, isEverything, mapColumns, optimize, setDataType, setDataType, setEvaluatable, setParameter, updateAggregate |
| Methods inherited from class org.h2.expression.Expression |
|---|
addFilterConditions, createIndexConditions, getAlias, getBooleanValue, getColumnName, getNonAliasExpression, getNotIfPossible, getNullable, getSchemaName, getTableAlias, getTableName, isAutoIncrement, isConstant, isEverything, isValueSet, isWildcard, optimizeInJoin, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public Value getValue(Session session)
throws java.sql.SQLException
Expression
getValue in interface FunctionCallgetValue in class Functionsession - the session
java.sql.SQLException
protected void checkParameterCount(int len)
throws java.sql.SQLException
Function
checkParameterCount in class Functionlen - the number of parameters set
java.sql.SQLException - if the parameter count is incorrectpublic java.lang.String getSQL()
Expression
getSQL in interface FunctionCallgetSQL in class Functionpublic java.lang.String getName()
FunctionCall
getName in interface FunctionCallgetName in class Function
public ValueResultSet getValueForColumnList(Session session,
Expression[] nullArgs)
throws java.sql.SQLException
FunctionCall
getValueForColumnList in interface FunctionCallgetValueForColumnList in class Functionsession - the sessionnullArgs - the argument list (some arguments may be null)
java.sql.SQLExceptionpublic void setColumns(ObjectArray<Column> columns)
public long getRowCount()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||