Top Description Fields Constructors Methods
org.eclipse.persistence.internal.expressions

public Class TableAliasLookup

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.*, java.util.Map, org.eclipse.persistence.internal.helper.*

INTERNAL: 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).

Field Summary

Modifier and TypeField and Description
protected boolean
protected DatabaseTable[]
protected int
protected DatabaseTable[]

Constructor Summary

AccessConstructor and Description
public
TableAliasLookup()

TableAliasLookup constructor comment.

public
TableAliasLookup(int initialSize)

TableAliasLookup constructor comment.

Method Summary

Modifier and TypeMethod and Description
public void
public DatabaseTable
private void
grow()

public boolean
haveBeenAddedToStatement()

INTERNAL: Answers if the aliases have already been added to a statement.

public boolean
isEmpty()

isEmpty method comment.

public DatabaseTable
public DatabaseTable[]
keys()

private int
private int
public DatabaseTable
put(DatabaseTable key, DatabaseTable value)

put method comment.

public void
setHaveBeenAddedToStatement(boolean value)

INTERNAL: Called when aliases are added to a statement.

public int
size()

size method comment.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public DatabaseTable[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

haveBeenAddedToStatementback to summary
protected boolean haveBeenAddedToStatement
keysback to summary
protected DatabaseTable[] keys
lastUsedback to summary
protected int lastUsed
valuesback to summary
protected DatabaseTable[] values

Constructor Detail

TableAliasLookupback to summary
public TableAliasLookup()

TableAliasLookup constructor comment.

TableAliasLookupback to summary
public TableAliasLookup(int initialSize)

TableAliasLookup constructor comment.

Method Detail

addToMapback to summary
public void addToMap(Map<DatabaseTable, DatabaseTable> map)
getback to summary
public DatabaseTable get(DatabaseTable key)
growback to summary
private void grow()
haveBeenAddedToStatementback to summary
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

isEmptyback to summary
public boolean isEmpty()

isEmpty method comment.

keyAtValueback to summary
public DatabaseTable keyAtValue(DatabaseTable value)
keysback to summary
public DatabaseTable[] keys()
lookupIndexOfback to summary
private int lookupIndexOf(DatabaseTable table)
lookupValueIndexOfback to summary
private int lookupValueIndexOf(DatabaseTable table)
putback to summary
public DatabaseTable put(DatabaseTable key, DatabaseTable value)

put method comment.

setHaveBeenAddedToStatementback to summary
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

sizeback to summary
public int size()

size method comment.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
valuesback to summary
public DatabaseTable[] values()