Utility methods for ConnectionSource handling
Modifiers | Name | Description |
---|---|---|
static java.util.List<java.lang.String> |
DEFAULT_CONNECTION_SOURCE_NAMES |
Type Params | Return Type | Name and description |
---|---|---|
|
static java.util.List<java.lang.String> |
getConnectionSourceNames(PersistentEntity entity) Obtain all of the ConnectionSource names for the given entity |
|
static java.lang.String |
getDefaultConnectionSourceName(PersistentEntity entity) If a domain class uses more than one datasource, we need to know which one to use when calling a method without a namespace qualifier. |
|
protected static boolean |
isMultiTenant(java.lang.Class[] interfaces) |
|
static boolean |
usesConnectionSource(PersistentEntity entity, java.lang.String connectionSourceName) Returns whether the given entity uses the give connection source name or not |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Obtain all of the ConnectionSource names for the given entity
entity
- The entityIf a domain class uses more than one datasource, we need to know which one to use when calling a method without a namespace qualifier.
entity
- the domain classReturns whether the given entity uses the give connection source name or not
entity
- The name of the entityconnectionSourceName
- The connection source name