Search in sources :

Example 1 with DalDirectClient

use of com.ctrip.platform.dal.dao.client.DalDirectClient in project dal by ctripcorp.

the class DalClientFactory method getClient.

public static DalClient getClient(String logicDbName) {
    if (logicDbName == null)
        throw new NullPointerException("Database Set name can not be null");
    DalConfigure config = getDalConfigure();
    // Verify if it is existed
    config.getDatabaseSet(logicDbName);
    return new DalDirectClient(config, logicDbName);
}
Also used : DalConfigure(com.ctrip.platform.dal.dao.configure.DalConfigure) DalDirectClient(com.ctrip.platform.dal.dao.client.DalDirectClient)

Aggregations

DalDirectClient (com.ctrip.platform.dal.dao.client.DalDirectClient)1 DalConfigure (com.ctrip.platform.dal.dao.configure.DalConfigure)1