|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList org.apache.openjpa.jdbc.sql.SelectImpl.Selects
protected static class SelectImpl.Selects
Helper class to track selected columns, with fast contains method. Acts as a list of select ids, with additional methods to manipulate the alias of each selected id.
Field Summary | |
---|---|
protected Map |
_aliases
|
protected DBDictionary |
_dict
|
protected List |
_idents
|
protected List |
_ids
|
protected Map |
_selectAs
|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
protected |
SelectImpl.Selects()
|
Method Summary | |
---|---|
void |
addAll(SelectImpl.Selects sels)
Add all aliases from another instance. |
void |
clear()
|
void |
clearPlaceholders()
Clear all placeholders and select AS clauses. |
boolean |
contains(Object id)
|
Object |
get(int i)
|
Object |
getAlias(Object id)
Returns the alias of a given id. |
List |
getAliases(boolean ident,
boolean inner)
A list representation of the aliases, in select order, with AS aliases present. |
int |
indexOfAlias(Object alias)
Return the index of the given alias. |
void |
insertAlias(int idx,
Object id,
Object alias)
Insert an alias before the given index, using negative indexes to count backwards. |
void |
setAlias(int idx,
Object alias)
Set an alias for a given index. |
int |
setAlias(Object id,
Object alias,
boolean ident)
Set an alias for a given id. |
void |
setSelectAs(Object id,
String as)
Set that a given id's alias has an AS value. |
int |
size()
|
Methods inherited from class java.util.AbstractList |
---|
add, add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Field Detail |
---|
protected List _ids
protected List _idents
protected Map _aliases
protected Map _selectAs
protected DBDictionary _dict
Constructor Detail |
---|
protected SelectImpl.Selects()
Method Detail |
---|
public void addAll(SelectImpl.Selects sels)
public Object getAlias(Object id)
public int setAlias(Object id, Object alias, boolean ident)
public void setAlias(int idx, Object alias)
public void insertAlias(int idx, Object id, Object alias)
public int indexOfAlias(Object alias)
public List getAliases(boolean ident, boolean inner)
public void setSelectAs(Object id, String as)
public void clearPlaceholders()
public boolean contains(Object id)
contains
in interface Collection
contains
in interface List
contains
in class AbstractCollection
public Object get(int i)
get
in interface List
get
in class AbstractList
public int size()
size
in interface Collection
size
in interface List
size
in class AbstractCollection
public void clear()
clear
in interface Collection
clear
in interface List
clear
in class AbstractList
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |