|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
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, AbstractDBObject.ListenerSupport |
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, MODEL, NOCYCLE, ORDERBY, ORDERSIBLINGSBY, PRIOR, 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. |
java.lang.Integer |
getStartOffset()
If the position of the fragment of SQL within the overall SQL Statement is known, it will be returned here as an Integer zero based offset. |
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. |
void |
setStartOffset(java.lang.Integer start)
|
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
public java.lang.Integer getStartOffset()
SQLFragment
null
.
getStartOffset
in interface SQLFragment
null
if not knownpublic void setStartOffset(java.lang.Integer start)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |