Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.javatools.db.sql
Interface AliasFragment

All Superinterfaces:
ChildDBObject, Copyable, DBObject, DynamicPropertySet, SQLFragment
All Known Implementing Classes:
AbstractAliasFragment, FromObject, SelectObject

public interface AliasFragment
extends SQLFragment

SQLFragment that consists of an expression and an alias.

Since:
10.1.3

Field Summary
 
Fields inherited from interface oracle.javatools.db.sql.SQLFragment
CONNECTBY, FROM, GROUPBY, HAVING, MODEL, NOCYCLE, ORDERBY, ORDERSIBLINGSBY, PRIOR, SELECT, STARTWITH, TYPE, WHERE
 
Fields inherited from interface oracle.javatools.db.DBObject
COMMENT
 
Method Summary
 java.lang.String getAlias()
          Returns the alias portion of this SQLFragment.
 SQLFragment getExpression()
          Returns the expression portion of this SQLFragment.
 java.lang.String getName()
          Returns a String that can be used to alias columns that depend on this fragment.
 java.lang.String getSQLText()
          Returns the entire fragment (expression plus alias).
 java.lang.String getUsableAlias()
          Deprecated. - use getName()
 void setAlias(java.lang.String alias)
          Sets the alias portion of this SQLFragment.
 void setExpression(SQLFragment exp)
          Sets the expression portion of this SQLFragment.
 
Methods inherited from interface oracle.javatools.db.sql.SQLFragment
getStartOffset
 
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, getType, replaceReferenceIDs, setID, setName
 
Methods inherited from interface oracle.javatools.util.DynamicPropertySet
getProperties, getProperty, getProperty, setProperties, setProperty
 

Method Detail

getAlias

java.lang.String getAlias()
Returns the alias portion of this SQLFragment.


setAlias

void setAlias(java.lang.String alias)
Sets the alias portion of this SQLFragment.


getExpression

SQLFragment getExpression()
Returns the expression portion of this SQLFragment.


setExpression

void setExpression(SQLFragment exp)
Sets the expression portion of this SQLFragment.


getSQLText

java.lang.String getSQLText()
Returns the entire fragment (expression plus alias).

Specified by:
getSQLText in interface SQLFragment
Returns:
a string representing the SQL text for this object.

getName

java.lang.String getName()
Returns a String that can be used to alias columns that depend on this fragment. DBObject names are in external form.

Specified by:
getName in interface DBObject
Returns:
the alias if there is one, otherwise the expression text.

getUsableAlias

@Deprecated
java.lang.String getUsableAlias()
Deprecated. - use getName()


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

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