private static class JdbcDataSource.DatabaseKey
extends java.lang.Object
sources map.
This involves one component (the database instance) if we are not in multi-tenancy mode,
or two components (the database instance and the tenant id) otherwise.| Modifier and Type | Field and Description |
|---|---|
private Database |
db
The database instance to work with.
|
private int |
hashCode
The hash code for the key.
|
private java.lang.String |
tenantId
The tenant id.
|
| Modifier | Constructor and Description |
|---|---|
private |
DatabaseKey(Database db,
java.lang.String tenantId)
Basic constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Test the equality between this instance and another given one.
|
int |
hashCode()
Calculate a hash code for this object.
|
private final Database db
private final java.lang.String tenantId
null if multi-tenancy is not enabled.private final int hashCode
private DatabaseKey(Database db, java.lang.String tenantId)
db - The database instance to work with.tenantId - The id of the tenant.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecttrue if the objects match, false otherwise.