public class MultipleDataSourceSupport extends java.lang.Object
Support methods for Multiple data source handling
Type Params | Return Type | Name and description |
---|---|---|
|
public static java.util.List<java.lang.String> |
getDatasourceNames(PersistentEntity domainClass) |
|
public static java.lang.String |
getDefaultDataSource(PersistentEntity domainClass) 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. |
|
public static boolean |
usesDatasource(PersistentEntity domainClass, java.lang.String dataSourceName) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
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.
domainClass
- the domain class