public class DBExistsExpr extends DBCompareExpr
Modifier and Type | Field and Description |
---|---|
DBCommandExpr |
cmd |
DBCompareExpr |
compareExpr |
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESIS, CTX_VALUE
Constructor and Description |
---|
DBExistsExpr(DBCommandExpr cmd)
Constructs a DBExistsExpr object set the specified parameters to this object.
|
DBExistsExpr(DBCommandExpr cmd,
DBCompareExpr compareExpr)
Constructs a DBExistsExpr object set the specified parameters to this object.
|
Modifier and Type | Method and Description |
---|---|
void |
addReferencedColumns(Set<DBColumn> list)
Internal function to obtain all DBColumnExpr-objects used by this expression.
|
void |
addSQL(DBSQLBuilder sql,
long context)
Creates the SQL-Command.
|
DBCompareExpr |
copy(DBCommand newCmd)
Copy Command
|
DBDatabase |
getDatabase()
Returns the current DBDatabase object.
|
DBRowSet |
getRowSet()
Returns the underlying rowset containing this column
|
boolean |
isConstraintOn(DBColumnExpr colExpr)
Returns whether the constraint is on the given column
|
boolean |
isMutuallyExclusive(DBCompareExpr other)
Returns wheter the constraint should replace another one or not.
|
void |
prepareCommand(DBCommand cmd)
Prepare function
|
and, not, or
checkParamNull
public final DBCommandExpr cmd
public final DBCompareExpr compareExpr
public DBExistsExpr(DBCommandExpr cmd)
cmd
- the DBCommandExpr objectpublic DBExistsExpr(DBCommandExpr cmd, DBCompareExpr compareExpr)
cmd
- the DBCommandExpr objectcompareExpr
- The expression to append to the end of the exists statementpublic final DBDatabase getDatabase()
getDatabase
in class DBObject
public DBRowSet getRowSet()
getRowSet
in class DBCompareExpr
public void prepareCommand(DBCommand cmd)
prepareCommand
in class DBCompareExpr
cmd
- public DBCompareExpr copy(DBCommand newCmd)
copy
in class DBCompareExpr
newCmd
- the new command objectpublic void addReferencedColumns(Set<DBColumn> list)
DBExpr
addReferencedColumns
in class DBExpr
list
- list to which all used column expressions must be addedDBExpr.addReferencedColumns(Set)
public void addSQL(DBSQLBuilder sql, long context)
public boolean isMutuallyExclusive(DBCompareExpr other)
isMutuallyExclusive
in class DBCompareExpr
public boolean isConstraintOn(DBColumnExpr colExpr)
isConstraintOn
in class DBCompareExpr
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.