Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

oracle.javatools.db.sql
Class SelectObject

java.lang.Object
  extended by oracle.javatools.db.AbstractDBObject
      extended by oracle.javatools.db.AbstractChildDBObject
          extended by oracle.javatools.db.sql.AbstractSQLFragment
              extended by oracle.javatools.db.sql.AbstractAliasFragment
                  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject
AbstractDBObject.ChildSupport
 
Field Summary
static java.lang.String TYPE
           
 
Fields inherited from class oracle.javatools.db.sql.AbstractSQLFragment
DEFAULT_SEPARATOR, EMPTY, EMPTY_ARRAY, NEWLINE, SPACE
 
Fields inherited from interface oracle.javatools.db.sql.SQLFragment
CONNECTBY, FROM, GROUPBY, HAVING, NOCYCLE, ORDERBY, SELECT, STARTWITH, WHERE
 
Fields inherited from interface oracle.javatools.db.DBObject
COMMENT
 
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.sql.AbstractSQLFragment
appendToBuffer, argsToString, getTextOrNull, getTextOrNull, setParent, surroundWithBrackets, surroundWithBrackets
 
Methods inherited from class oracle.javatools.db.AbstractChildDBObject
copyToImpl, findParent, getParent, getProperty, setProperty
 
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.ChildDBObject
getParent, setParent
 
Methods inherited from interface oracle.javatools.db.DBObject
copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, getID, getOwnedObjects, getOwnedObjects, getReferenceIDs, replaceReferenceIDs, setID
 
Methods inherited from interface oracle.javatools.util.DynamicPropertySet
getProperties, getProperty, getProperty, setProperties, setProperty
 

Field Detail

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values
Constructor Detail

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.

Method Detail

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.


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

Copyright © 1997, 2011, Oracle. All rights reserved.