|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.db.AbstractDBObject oracle.javatools.db.AbstractChildDBObject oracle.javatools.db.sql.AbstractSQLFragment oracle.javatools.db.sql.AbstractAliasFragment
public abstract class AbstractAliasFragment
SQLFragment that consists of an expression and an alias.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject |
---|
AbstractDBObject.ChildSupport |
Field Summary |
---|
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, TYPE, WHERE |
Fields inherited from interface oracle.javatools.db.DBObject |
---|
COMMENT |
Constructor Summary | |
---|---|
protected |
AbstractAliasFragment()
Creates an empty fragment. |
protected |
AbstractAliasFragment(SQLFragment exp,
java.lang.String alias)
Creates a fragment with given expression and alias. |
Method Summary | |
---|---|
boolean |
canHaveAlias()
In certain circumstances an AliasFragment cannot have an alias. |
protected boolean |
canUseAsAlias(java.lang.String exp)
Checks whether the given expression can be used as an alias. |
protected void |
copyToImpl(AbstractAliasFragment copy,
DBObject copyParent,
IDPolicy idPolicy)
|
protected boolean |
equalsImpl(AbstractAliasFragment other)
|
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. |
protected void |
getOwnedObjectsImpl(java.util.Collection<DBObject> objs,
java.lang.String... types)
Used by all the final children methods. |
java.lang.String |
getSQLText()
Returns the entire fragment (expression plus alias in external form). |
java.lang.String |
getUsableAlias()
Deprecated. - use getName() |
void |
setAlias(java.lang.String alias)
Sets the alias part of the fragment. |
void |
setExpression(SQLFragment exp)
Sets the expression part of the fragment. |
void |
setName(java.lang.String name)
Does nothing for this fragment - an alias fragment's name is derived from it's alias or expression. |
java.lang.String |
toString()
|
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.AbstractSQLFragment |
---|
appendToBuffer, argsToString, getTextOrNull, getTextOrNull, getType, setParent, surroundWithBrackets, surroundWithBrackets |
Methods inherited from class oracle.javatools.db.AbstractChildDBObject |
---|
copyToImpl, findParent, getParent |
Methods inherited from class oracle.javatools.db.AbstractDBObject |
---|
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, copyToImpl, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getOwnedObjects, getOwnedObjects, getProperties, getProperty, getProperty, getReferenceIDs, getReferenceIDsImpl, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setProperties, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, 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, getType, replaceReferenceIDs, setID |
Methods inherited from interface oracle.javatools.util.DynamicPropertySet |
---|
getProperties, getProperty, getProperty, setProperties, setProperty |
Constructor Detail |
---|
protected AbstractAliasFragment()
protected AbstractAliasFragment(SQLFragment exp, java.lang.String alias)
Method Detail |
---|
public java.lang.String getAlias()
getAlias
in interface AliasFragment
public void setAlias(java.lang.String alias)
setAlias
in interface AliasFragment
public boolean canHaveAlias()
public SQLFragment getExpression()
getExpression
in interface AliasFragment
public void setExpression(SQLFragment exp)
setExpression
in interface AliasFragment
public java.lang.String getSQLText()
getSQLText
in interface AliasFragment
getSQLText
in interface SQLFragment
protected boolean useAsBeforeAlias()
@Deprecated public java.lang.String getUsableAlias()
getUsableAlias
in interface AliasFragment
public java.lang.String getName()
getName
in interface DBObject
getName
in interface AliasFragment
getName
in class AbstractDBObject
public void setName(java.lang.String name)
setName
in interface DBObject
setName
in class AbstractDBObject
name
- a string containing the new name for this object.protected boolean canUseAsAlias(java.lang.String exp)
protected void copyToImpl(AbstractAliasFragment copy, DBObject copyParent, IDPolicy idPolicy)
protected boolean equalsImpl(AbstractAliasFragment other)
public java.lang.String toString()
toString
in class AbstractSQLFragment
protected void getOwnedObjectsImpl(java.util.Collection<DBObject> objs, java.lang.String... types)
AbstractDBObject
includesType
to check the types vararg.
getOwnedObjectsImpl
in class AbstractDBObject
objs
- a Collection of the apppropriate children.types
- a vararg of the type(s) to search forAbstractDBObject.includesType(java.lang.String, java.lang.String...)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |