use of com.varsql.core.db.MetaControlBean in project varsql by varsqlinfo.
the class ExportServiceImpl method selectExportTableInfo.
/**
* @Method Name : selectExportTableInfo
* @Method 설명 : table export list
* @작성자 : ytkim
* @작성일 : 2019. 4. 29.
* @변경이력 :
* @param preferencesInfo
* @return
* @throws Exception
*/
public ResponseResult selectExportTableInfo(PreferencesRequestDTO preferencesInfo) throws Exception {
MetaControlBean dbMetaEnum = MetaControlFactory.getDbInstanceFactory(preferencesInfo.getDbType());
ResponseResult result = new ResponseResult();
result.setItemList(dbMetaEnum.getDBObjectList(ObjectType.TABLE.getObjectTypeId(), preferencesInfo));
return result;
}
use of com.varsql.core.db.MetaControlBean in project varsql by varsqlinfo.
the class DatabaseServiceImpl method createDDL.
/**
* @Method Name : createDDL
* @Method 설명 : 생성 스크립트.
* @작성자 : ytkim
* @작성일 : 2017. 11. 16.
* @변경이력 :
* @param databaseParamInfo
* @return
*/
public ResponseResult createDDL(DatabaseParamInfo databaseParamInfo) {
MetaControlBean dbMetaEnum = MetaControlFactory.getDbInstanceFactory(databaseParamInfo.getDbType());
ResponseResult result = new ResponseResult();
try {
result.setItemOne(dbMetaEnum.getDDLScript(ObjectType.getDBObjectType(databaseParamInfo.getObjectType()).getObjectTypeId(), databaseParamInfo, databaseParamInfo.getObjectName()));
} catch (Exception e) {
logger.error("createDDL : ", e);
}
return result;
}
use of com.varsql.core.db.MetaControlBean in project varsql by varsqlinfo.
the class DatabaseServiceImpl method serviceMenu.
/**
* @Method Name : serviceMenu
* @Method 설명 : 메뉴 정보보기
* @작성자 : ytkim
* @작성일 : 2015. 4. 10.
* @변경이력 :
* @param databaseParamInfo
* @return
* @throws Exception
*/
public ResponseResult serviceMenu(DatabaseParamInfo databaseParamInfo) {
ResponseResult result = new ResponseResult();
MetaControlBean dbMetaEnum = MetaControlFactory.getDbInstanceFactory(databaseParamInfo.getDbType());
result.setItemList(dbMetaEnum.getServiceMenu());
return result;
}
use of com.varsql.core.db.MetaControlBean in project varsql by varsqlinfo.
the class DatabaseServiceImpl method schemas.
/**
* @Method Name : schemas
* @Method 설명 : 스키마 정보보기
* @작성일 : 2015. 4. 10.
* @작성자 : ytkim
* @변경이력 :
* @param databaseParamInfo
* @return
* @throws SQLException
* @throws Exception
*/
public Map schemas(DatabaseParamInfo databaseParamInfo) throws SQLException {
Map json = new HashMap();
DatabaseInfo dbinfo = SecurityUtil.userDBInfo(databaseParamInfo.getConuid());
MetaControlBean dbMetaEnum = MetaControlFactory.getDbInstanceFactory(dbinfo.getType());
json.put("schema", dbinfo.getSchema());
json.put("conuid", dbinfo.getConnUUID());
json.put("type", dbinfo.getType());
json.put("lazyload", dbinfo.isLazyLoad());
json.put("schemaList", dbMetaEnum.getSchemas(databaseParamInfo));
json.put("serviceObject", dbMetaEnum.getServiceMenu());
return json;
}
use of com.varsql.core.db.MetaControlBean in project varsql by varsqlinfo.
the class DatabaseServiceImpl method dbObjectMetadataList.
/**
* @Method Name : dbObjectMetadataList
* @Method 설명 : meta 정보 보기.
* @작성자 : ytkim
* @작성일 : 2017. 11. 16.
* @변경이력 :
* @param databaseParamInfo
* @return
*/
public ResponseResult dbObjectMetadataList(DatabaseParamInfo databaseParamInfo) {
MetaControlBean dbMetaEnum = MetaControlFactory.getDbInstanceFactory(databaseParamInfo.getDbType());
ResponseResult result = new ResponseResult();
try {
result.setItemList(dbMetaEnum.getDBObjectMeta(ObjectType.getDBObjectType(databaseParamInfo.getObjectType()).getObjectTypeId(), databaseParamInfo, databaseParamInfo.getObjectName()));
} catch (Exception e) {
logger.error("dbObjectMetadataList : {} ", e.getMessage(), e);
}
return result;
}
Aggregations