public class SelectObject extends AbstractAliasFragment
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE |
AS, COMMA, DEFAULT_SEPARATOR, EMPTY, EMPTY_ARRAY, INDENT, LEFT_PAREN, NEWLINE, RIGHT_PAREN, SPACE| Constructor and Description |
|---|
SelectObject()
Create an empty select object.
|
SelectObject(SQLFragment expression,
java.lang.String alias)
Create a select object with the given expression and alias.
|
SelectObject(SQLFragment expression,
java.lang.String alias,
boolean useAs)
Create a select object with the given expression and alias.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getType()
Returns the type of this object.
|
java.lang.String |
getUsableAlias()
Obtains a String that can be used as an alias to this fragment.
|
boolean |
isUseAs()
Gets whether or not this select object will use AS between expression and
alias in the sql text.
|
void |
setUseAs(boolean useAs)
Sets whether or not this select object should use AS between expression and
alias in the sql text.
|
protected boolean |
useAsBeforeAlias()
Returns true if the current fragment should have an AS between expression
and alias.
|
canHaveAlias, canUseAsAlias, getAlias, getExpression, getName, getSQLText, setAlias, setExpression, toStringappendToBuffer, appendToBuffer, argsToString, getStartOffset, getTextOrNull, getTextOrNull, setStartOffset, surroundWithBrackets, surroundWithBracketssetParentcheckInit, checkInit, copyToImpl, getOwnedObjectsImpl, getProperties, getReferenceIDsImpl, needsInitialization, processPropertyChange, setIDaddObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, findOwnedObject, findParent, fireObjectUpdated, firePropertyChanged, getChildSupport, getChildSupport, getID, getOwnedObjects, getOwnedObjects, getParent, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, replaceReferenceIDs, setName, setProperties, setPropertyclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetStartOffsetgetParent, setParentaddObjectListener, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getID, getOwnedObjects, getOwnedObjects, getProperties, getProperty, getProperty, getReferenceIDs, hashCode, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setName, setProperties, setPropertypublic static final java.lang.String TYPE
public SelectObject()
public SelectObject(SQLFragment expression, java.lang.String alias)
public SelectObject(SQLFragment expression, java.lang.String alias, boolean useAs)
public java.lang.String getType()
DBObjectgetType in interface DBObjectgetType in class AbstractSQLFragmentprotected boolean useAsBeforeAlias()
AbstractAliasFragmentuseAsBeforeAlias in class AbstractAliasFragmentpublic void setUseAs(boolean useAs)
public boolean isUseAs()
public java.lang.String getUsableAlias()
AliasFragmentgetUsableAlias in interface AliasFragmentgetUsableAlias in class AbstractAliasFragment