com.kuangkie.carbon.panel.RecordDiscover Maven / Gradle / Ivy
package com.kuangkie.carbon.panel;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import com.kuangkie.carbon.record.FGRecord;
import com.kuangkie.carbon.record.FGRelationCorrelation;
import com.kuangkie.carbon.record.Relation;
/**
*
* @version: V1.0
*
* @author: wangnq
*
* @className: Discoverer
*
* @packageName: cho.carbon.panel
*
* @description: 查询(发现)数据的入口
*
* @data: 2022年6月16日
*
*
*/
public interface RecordDiscover {
/**
* 访问指定记录对象( recordcode )在当前时刻的数据
*
* @param recordCode 业务记录的唯一标识。
*
* @return 对接实体
*/
public FGRecord getRecord(String recordCode);
public List getRecords(Collection recordCodes);
//public Collection getAllCodes();
//public Collection getCodes(RecordQueryParam recordQueryParam);
public FGRelationCorrelation getRelationCorrelation(String recordCode);
public Map getRelationCorrelation(Collection recordCodes);
public Collection getRelations(String recordCode,Long relationType);
public Collection getRelationGuestCodes(String recordCode,Long relationType);
public boolean existRecord(String recordCode);
/**
*
* @methodsName: getRecordBean
*
* @description: 依次在本地容器和数据库中查询记录对象,并根据clazz信息创建一个java bean对象并返回。
*
* @param
* @param recordCode
* @param clazz
* @return
*
*/
public T getRecordBean(String recordCode, Class clazz);
public byte[] getFileBytes(String fileCode);
public T getRecordBean(String recordCode, Class clazz, int maxDepth);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy