Extension SDK 10.1.3.36.73

oracle.javatools.db.sql
Class FromObject

java.lang.Object
  extended byoracle.javatools.db.AbstractDBObject
      extended byoracle.javatools.db.sql.AbstractSQLFragment
          extended byoracle.javatools.db.sql.AbstractAliasFragment
              extended byoracle.javatools.db.sql.FromObject
All Implemented Interfaces:
AliasFragment, Copyable, DBObject, DynamicPropertySet, SQLFragment

public class FromObject
extends AbstractAliasFragment

Object that represents a clause in the FROM statement of a SQL query.

Since:
10.1.3

Field Summary
static java.lang.String TYPE
           
 
Fields inherited from class oracle.javatools.db.sql.AbstractSQLFragment
EMPTY, EMPTY_ARRAY, NEWLINE, SPACE
 
Fields inherited from interface oracle.javatools.db.sql.SQLFragment
FROM, GROUPBY, HAVING, ORDERBY, SELECT, WHERE
 
Fields inherited from interface oracle.javatools.db.DBObject
COMMENT
 
Constructor Summary
FromObject()
          Create an empty FROM object.
FromObject(SQLFragment expression, java.lang.String alias)
          Create a FROM object with the given expression and alias.
 
Method Summary
 boolean canHaveAlias()
          In certain circumstances an AliasFragment cannot have an alias.
 java.lang.Object copyTo(java.lang.Object target)
          Copies the state of this DBObject to another instance.
 boolean equals(java.lang.Object obj)
           
 java.lang.String getType()
          Returns the type of this object.
 void setExpression(SQLFragment exp)
          Sets the expression part of the fragment.
 
Methods inherited from class oracle.javatools.db.sql.AbstractAliasFragment
canUseAsAlias, copyToImpl, equalsImpl, getAlias, getExpression, getName, getOwnedObjectsImpl, getSQLText, getUsableAlias, setAlias, setName, toString, useAsBeforeAlias
 
Methods inherited from class oracle.javatools.db.sql.AbstractSQLFragment
appendToBuffer, changeParent, copyList, copyList, getChildren, getParent, getTextOrNull, hashCode, removeParent, setParent, setParents
 
Methods inherited from class oracle.javatools.db.AbstractDBObject
compareToImpl, copyToImpl, equalsImpl, findOwnedObject, getID, getOwnedObjects, getOwnedObjects, getProperties, getProperty, getProperty, getReferenceIDs, getReferenceIDsImpl, replaceReferenceIDs, setID, setProperties, setProperty
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.javatools.db.sql.SQLFragment
getChildren, getParent, setParent
 
Methods inherited from interface oracle.javatools.db.DBObject
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

FromObject

public FromObject()
Create an empty FROM object.


FromObject

public FromObject(SQLFragment expression,
                  java.lang.String alias)
Create a FROM 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

copyTo

public java.lang.Object copyTo(java.lang.Object target)
Description copied from interface: DBObject
Copies the state of this DBObject to another instance. If null is specified for the target, a new instance will be created.

The entire state of the object will be copied, with a few exceptions. In particular, any observers registered will NOT be copied. In cases where this instance contains child DBObjects, new instances of those children will be created, and the state copied to them. The copy will thus contain its own unique state; after making the copy, changing one instance will not cause any changes to occur to the copy. The properties will be copied; however, copies will not be made of the values referenced by the properties - thus, the copy will refer to the same instance as the original. Child objects that are copied will still point to the original parent; it is the responsibility of a copied parent to update the parent of copies of its children point to the copy of itself.

The ID associated with this object will not be copied. If the copy is intended to be a temporary copy of this object (to be used in a dialog editing the object for example), then the caller should explicitly set the ID of the copy to be the same as on this object. However, if the new object is intended to exist separately from this object, the caller should ensure that the new object have a different ID from this object.

Parameters:
target - The object to copy to. If target is null, a new instance will be created, and the state will be copied to that object.
Returns:
the copy.

equals

public boolean equals(java.lang.Object obj)

setExpression

public void setExpression(SQLFragment exp)
Description copied from class: AbstractAliasFragment
Sets the expression part of the fragment.

Specified by:
setExpression in interface AliasFragment
Overrides:
setExpression in class AbstractAliasFragment

canHaveAlias

public boolean canHaveAlias()
Description copied from class: AbstractAliasFragment
In certain circumstances an AliasFragment cannot have an alias. This method returns false if that is the case.

Overrides:
canHaveAlias in class AbstractAliasFragment

Extension SDK 10.1.3.36.73

 

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