|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
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
public abstract class AbstractSQLFragment
Abstract superclass for SQLFragment implementations.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject |
---|
AbstractDBObject.ChildSupport |
Field Summary | |
---|---|
protected static java.lang.String |
DEFAULT_SEPARATOR
|
protected static java.lang.String |
EMPTY
|
protected static SQLFragment[] |
EMPTY_ARRAY
|
protected static java.lang.String |
NEWLINE
|
protected static java.lang.String |
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 |
AbstractSQLFragment()
|
Method Summary | |
---|---|
protected void |
appendToBuffer(java.lang.StringBuilder query,
java.util.Collection objs,
java.lang.String indent)
Adds to the given buffer the list of SQLFragments, comma and newline (with indent) seperated. |
protected java.lang.String |
argsToString(java.util.Collection args,
boolean commutative,
java.lang.String sep,
int start)
Returns the arguments as a String, each separated by the given separator. |
protected java.lang.String |
getTextOrNull(SQLFragment frag)
Returns the SQLText for the given fragment, or null if the fragment itself is null. |
protected java.lang.String |
getTextOrNull(SQLFragment frag,
boolean surroundWithBrackets)
Returns the SQLText for the given fragment, or null if the fragment itself is null. |
java.lang.String |
getType()
Returns the type of this object. |
void |
setParent(DBObject parent)
Sets the parent of this object. |
protected java.lang.String |
surroundWithBrackets(java.lang.String text)
Surrounds the given text with brackets. |
protected java.lang.String |
surroundWithBrackets(java.lang.String text,
boolean force)
Surrounds the given text with brackets (parentheses). |
java.lang.String |
toString()
|
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, getName, getOwnedObjects, getOwnedObjects, getOwnedObjectsImpl, getProperties, getProperty, getReferenceIDs, getReferenceIDsImpl, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.javatools.db.sql.SQLFragment |
---|
getSQLText |
Methods inherited from interface oracle.javatools.db.ChildDBObject |
---|
getParent |
Methods inherited from interface oracle.javatools.db.DBObject |
---|
copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, replaceReferenceIDs, setID, setName |
Methods inherited from interface oracle.javatools.util.DynamicPropertySet |
---|
getProperties, getProperty, getProperty, setProperties, setProperty |
Field Detail |
---|
protected static final java.lang.String DEFAULT_SEPARATOR
protected static final SQLFragment[] EMPTY_ARRAY
protected static final java.lang.String SPACE
protected static final java.lang.String EMPTY
protected static final java.lang.String NEWLINE
Constructor Detail |
---|
protected AbstractSQLFragment()
Method Detail |
---|
public java.lang.String getType()
DBObject
getType
in interface DBObject
public void setParent(DBObject parent)
ChildDBObject
setParent
in interface ChildDBObject
setParent
in class AbstractChildDBObject
protected java.lang.String getTextOrNull(SQLFragment frag)
frag
- (can be null)
protected java.lang.String getTextOrNull(SQLFragment frag, boolean surroundWithBrackets)
frag
- the fragment to get the text for (can be null)surroundWithBrackets
- whether to surround the fragment with brackets
(if the frag is a SQLQuery this will happen anyway).
protected java.lang.String argsToString(java.util.Collection args, boolean commutative, java.lang.String sep, int start)
protected java.lang.String surroundWithBrackets(java.lang.String text)
protected java.lang.String surroundWithBrackets(java.lang.String text, boolean force)
text
- the text to surroundforce
- whether to force the surround (true), or instead assess
whether the text is already surrounded (or contains an even number of
sets of brackets) and therefore doesn't need any more (false).protected void appendToBuffer(java.lang.StringBuilder query, java.util.Collection objs, java.lang.String indent)
public java.lang.String toString()
toString
in class AbstractDBObject
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |