com.kuangkie.carbon.record.RelationCorrelation Maven / Gradle / Ivy
The newest version!
package com.kuangkie.carbon.record;
import java.util.Collection;
import java.util.Map;
public interface RelationCorrelation {
public String getRecordCode();
public String getModelCode();
public Collection getRelationTypes();
public Collection getGuestRecordCodes(Long relationType);
/**
* 返回关系类型对应的gusetRecordCode,当对应多个时,返回其中一个
* @methodsName: getGuestRecordCode
*
* @description:
*
* @param relationType
* @return guestRecordCode
*
*/
public String getGuestRecordCode(Long relationType);
//public Collection getRelationByName(String relationTypeName);
public Collection getGuestRecordCodes();
public String toJson();
public Map> getRelationType2GuestsMap();
public Collection getRelations();
public Collection getRelations(Long relationType);
public T getRelation(Long relationType);
boolean contains(Long relationType, String guestRecordCode);
boolean contains(Long relationType);
int containsCount(Long relationType);
}