Search in sources :

Example 11 with Application

use of com.qlangtech.tis.manage.biz.dal.pojo.Application in project tis by qlangtech.

the class ApplicationDAOImpl method loadFromWriteDB.

public Application loadFromWriteDB(Integer appId) {
    Application key = new Application();
    key.setAppId(appId);
    Application record = this.loadFromWriterDB("application.ibatorgenerated_selectByPrimaryKey", key);
    return record;
}
Also used : Application(com.qlangtech.tis.manage.biz.dal.pojo.Application)

Example 12 with Application

use of com.qlangtech.tis.manage.biz.dal.pojo.Application in project tis by qlangtech.

the class ApplicationDAOImpl method selectByPrimaryKey.

public Application selectByPrimaryKey(Integer appId) {
    Application key = new Application();
    key.setAppId(appId);
    Application record = this.load("application.ibatorgenerated_selectByPrimaryKey", key);
    return record;
}
Also used : Application(com.qlangtech.tis.manage.biz.dal.pojo.Application)

Example 13 with Application

use of com.qlangtech.tis.manage.biz.dal.pojo.Application in project tis by qlangtech.

the class ApplicationDAOImpl method selectByName.

@Override
public Application selectByName(String name) {
    if (StringUtils.isBlank(name)) {
        throw new IllegalArgumentException("param name can not be null");
    }
    Application key = new Application();
    key.setProjectName(name);
    return this.load("application.ibatorgenerated_selectByName", key);
// return record;
}
Also used : Application(com.qlangtech.tis.manage.biz.dal.pojo.Application)

Example 14 with Application

use of com.qlangtech.tis.manage.biz.dal.pojo.Application in project plugins by qlangtech.

the class DefaultDataxProcessor method buildApp.

@Override
public Application buildApp() {
    Application app = new Application();
    app.setProjectName(this.name);
    app.setDptId(Integer.parseInt(this.dptId));
    app.setRecept(this.recept);
    app.setAppType(AppType.DataXPipe.getType());
    return app;
}
Also used : Application(com.qlangtech.tis.manage.biz.dal.pojo.Application)

Example 15 with Application

use of com.qlangtech.tis.manage.biz.dal.pojo.Application in project tis by qlangtech.

the class CollectionAction method doFullbuild.

/**
 * 触发全量构建
 *
 * @param context
 * @throws Exception
 */
public void doFullbuild(Context context) throws Exception {
    this.getIndexWithPost();
    Application app = this.getApplicationDAO().selectByName(this.indexName.getCollectionName());
    WorkFlow wf = this.loadDF(app.getWorkFlowId());
    this.setBizResult(context, CoreAction.triggerFullIndexSwape(this, context, app, 1));
}
Also used : Application(com.qlangtech.tis.manage.biz.dal.pojo.Application)

Aggregations

Application (com.qlangtech.tis.manage.biz.dal.pojo.Application)26 ApplicationCriteria (com.qlangtech.tis.manage.biz.dal.pojo.ApplicationCriteria)7 Func (com.qlangtech.tis.manage.spring.aop.Func)5 Department (com.qlangtech.tis.manage.biz.dal.pojo.Department)2 Nullable (com.qlangtech.tis.pubhook.common.Nullable)2 SchemaAction (com.qlangtech.tis.runtime.module.action.SchemaAction)2 File (java.io.File)2 MalformedURLException (java.net.MalformedURLException)2 URL (java.net.URL)2 JSONArray (org.json.JSONArray)2 JSONObject (org.json.JSONObject)2 JSONTokener (org.json.JSONTokener)2 JSONObject (com.alibaba.fastjson.JSONObject)1 Pager (com.koubei.web.tag.pager.Pager)1 FullbuildPhase (com.qlangtech.tis.assemble.FullbuildPhase)1 TriggerType (com.qlangtech.tis.assemble.TriggerType)1 DBConfigSuit (com.qlangtech.tis.db.parser.DBConfigSuit)1 GitUser (com.qlangtech.tis.git.GitUtils.GitUser)1 Criteria (com.qlangtech.tis.manage.biz.dal.pojo.ApplicationCriteria.Criteria)1 ServerGroup (com.qlangtech.tis.manage.biz.dal.pojo.ServerGroup)1