Extension SDK 10.1.3.36.73

oracle.javatools.db.sql
Interface AliasFragment

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

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
FROM, GROUPBY, HAVING, ORDERBY, SELECT, 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
getChildren, getParent, setParent
 
Methods inherited from interface oracle.javatools.db.DBObject
copyTo, 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

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


setAlias

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


getExpression

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


setExpression

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


getSQLText

public 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

public java.lang.String getName()
Returns a String that can be used to alias columns that depend on this fragment.

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

getUsableAlias

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


Extension SDK 10.1.3.36.73

 

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