Skip navigation links
oracle.javatools.db.sql
Class SelectObject
java.lang.Object
oracle.javatools.db.AbstractDBObject
oracle.javatools.db.AbstractChildDBObject
oracle.javatools.db.sql.AbstractSQLFragment
oracle.javatools.db.sql.AbstractAliasFragment
oracle.javatools.db.sql.SelectObject
- All Implemented Interfaces:
- ChildDBObject, DBObject, AliasFragment, SQLFragment, Copyable, DynamicPropertySet
-
public class SelectObject
- extends AbstractAliasFragment
Object that represents a clause in the SELECT statement of a SQL query.
- Since:
- 10.1.3
Field Summary |
static java.lang.String |
TYPE
|
Fields inherited from interface oracle.javatools.db.sql.SQLFragment |
CONNECTBY, FROM, GROUPBY, HAVING, MODEL, NOCYCLE, ORDERBY, ORDERSIBLINGSBY, PRIOR, SELECT, STARTWITH, WHERE |
Constructor Summary |
SelectObject()
Create an empty select object. |
SelectObject(SQLFragment expression, java.lang.String alias)
Create a select object with the given expression and alias. |
SelectObject(SQLFragment expression, java.lang.String alias, boolean useAs)
Create a select object with the given expression and alias. |
Method Summary |
java.lang.String |
getType()
Returns the type of this object. |
boolean |
isUseAs()
Gets whether or not this select object will use AS between expression and alias in the sql text. |
void |
setUseAs(boolean useAs)
Sets whether or not this select object should use AS between expression and alias in the sql text. |
protected boolean |
useAsBeforeAlias()
Returns true if the current fragment should have an AS between expression and alias. |
Methods inherited from class oracle.javatools.db.sql.AbstractAliasFragment |
canHaveAlias, canUseAsAlias, getAlias, getExpression, getName, getSQLText, getUsableAlias, setAlias, setExpression, setName, toString |
Methods inherited from class oracle.javatools.db.AbstractDBObject |
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getOwnedObjects, getOwnedObjects, getOwnedObjectsImpl, getProperties, getProperty, getReferenceIDs, getReferenceIDsImpl, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setProperties |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.javatools.db.DBObject |
copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, getID, getOwnedObjects, getOwnedObjects, getReferenceIDs, replaceReferenceIDs, setID |
TYPE
public static final java.lang.String TYPE
-
- See Also:
- Constant Field Values
SelectObject
public SelectObject()
- Create an empty select object.
SelectObject
public SelectObject(SQLFragment expression,
java.lang.String alias)
- Create a select object with the given expression and alias.
SelectObject
public SelectObject(SQLFragment expression,
java.lang.String alias,
boolean useAs)
- Create a select object with the given expression and alias.
getType
public java.lang.String getType()
- Description copied from interface:
DBObject
- Returns the type of this object. Valid types include things like tables, views, synonyms, and columns.
-
- Specified by:
getType
in interface DBObject
- Overrides:
getType
in class AbstractSQLFragment
-
- Returns:
- a string describing the type of object.
useAsBeforeAlias
protected boolean useAsBeforeAlias()
- Description copied from class:
AbstractAliasFragment
- Returns true if the current fragment should have an AS between expression and alias. Returns false by default, subclasses override if appropraite.
-
- Overrides:
useAsBeforeAlias
in class AbstractAliasFragment
setUseAs
public void setUseAs(boolean useAs)
- Sets whether or not this select object should use AS between expression and alias in the sql text.
isUseAs
public boolean isUseAs()
- Gets whether or not this select object will use AS between expression and alias in the sql text.
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.