public class MultipleDataSourceSupport extends Object
Support methods for Multiple data source handling
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static List<String> |
getDatasourceNames(PersistentEntity domainClass) |
|
public static 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, String dataSourceName) |
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