Class TableAliasLookup
- java.lang.Object
-
- org.eclipse.persistence.internal.expressions.TableAliasLookup
-
- All Implemented Interfaces:
java.io.Serializable
public class TableAliasLookup extends java.lang.Object implements java.io.SerializableINTERNAL: Represents the aliased tables an ObjectExpression will be translated to, along with any of its derived TableExpressions. For bug 2778339 / CR 2456, this Lookup also represents identity. Two expressions with the same Lookup will be translated to the same table(s).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanhaveBeenAddedToStatementprotected DatabaseTable[]keysprotected intlastUsedprotected DatabaseTable[]values
-
Constructor Summary
Constructors Constructor Description TableAliasLookup()TableAliasLookup constructor comment.TableAliasLookup(int initialSize)TableAliasLookup constructor comment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToMap(java.util.Map<DatabaseTable,DatabaseTable> map)DatabaseTableget(DatabaseTable key)booleanhaveBeenAddedToStatement()INTERNAL: Answers if the aliases have already been added to a statement.booleanisEmpty()isEmpty method comment.DatabaseTablekeyAtValue(DatabaseTable value)DatabaseTable[]keys()DatabaseTableput(DatabaseTable key, DatabaseTable value)put method comment.voidsetHaveBeenAddedToStatement(boolean value)INTERNAL: Called when aliases are added to a statement.intsize()size method comment.java.lang.StringtoString()DatabaseTable[]values()
-
-
-
Field Detail
-
keys
protected DatabaseTable[] keys
-
values
protected DatabaseTable[] values
-
lastUsed
protected int lastUsed
-
haveBeenAddedToStatement
protected boolean haveBeenAddedToStatement
-
-
Method Detail
-
addToMap
public void addToMap(java.util.Map<DatabaseTable,DatabaseTable> map)
-
get
public DatabaseTable get(DatabaseTable key)
-
haveBeenAddedToStatement
public boolean haveBeenAddedToStatement()
INTERNAL: Answers if the aliases have already been added to a statement. This insures that a subselect will not re-add aliases already in a parent FROM clause. For CR#4223
-
isEmpty
public boolean isEmpty()
isEmpty method comment.
-
keyAtValue
public DatabaseTable keyAtValue(DatabaseTable value)
-
keys
public DatabaseTable[] keys()
-
put
public DatabaseTable put(DatabaseTable key, DatabaseTable value)
put method comment.
-
setHaveBeenAddedToStatement
public void setHaveBeenAddedToStatement(boolean value)
INTERNAL: Called when aliases are added to a statement. This insures that a subselect will not re-add aliases already in a parent FROM clause. For CR#4223
-
size
public int size()
size method comment.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
values
public DatabaseTable[] values()
-
-