public class DBGuidMapper extends Object implements GuidMapper
| 构造器和说明 |
|---|
DBGuidMapper() |
public void setGuidMapperDao(GuidMapperDao val)
public GuidMapperDao getGuidMapperDao()
public String getGuid(long id, String type)
GuidMappergetGuid 在接口中 GuidMapperid - 本地实体Id。type - 映射类型。public long getLocalId(String guid, String type)
GuidMappergetLocalId 在接口中 GuidMapperguid - 外部实体Id。type - 映射类型public void map(long id,
String guid,
String type)
throws MapperException
map 在接口中 GuidMapperMapperExceptionpublic void remove(long id,
String guid,
String type)
throws MapperException
remove 在接口中 GuidMapperMapperExceptionpublic Map<Long,String> getAll(String type)
GuidMappergetAll 在接口中 GuidMapperpublic Map<String,Long> getAllGuid(String type)
getAllGuid 在接口中 GuidMapperpublic List<Map<Long,String>> getAllList(String type)
getAllList 在接口中 GuidMapperpublic List<Map<String,Long>> getAllGuidList(String type)
getAllGuidList 在接口中 GuidMapperpublic List<String> getGuids(long id, String type)
GuidMappergetGuids 在接口中 GuidMapperid - 本地实体Id。type - 映射类型。public List<Long> getLocalIds(String guid, String type)
GuidMappergetLocalIds 在接口中 GuidMapperguid - 外部实体Id。type - 映射类型。public String getInsertSQL(CTPGuidMapper pojo) throws MapperException
MapperExceptionpublic String getInsertSQL(long id, long localId, String guid, String type) throws MapperException
MapperExceptionpublic String getUpdateSQL(CTPGuidMapper pojo) throws MapperException
MapperExceptionpublic String getUpdateSQL(long id, long localId, String guid, String type) throws MapperException
MapperExceptionpublic String getDeleteSQL(long id) throws MapperException
MapperExceptionpublic void update(long id,
String guid,
String type)
throws MapperException
update 在接口中 GuidMapperMapperExceptionpublic void updateGuid(long id,
String guid,
String type)
throws MapperException
updateGuid 在接口中 GuidMapperMapperExceptionpublic void removeByGuid(String guid, String type) throws MapperException
removeByGuid 在接口中 GuidMapperMapperExceptionpublic void saveAll(List<CTPGuidMapper> list) throws MapperException
saveAll 在接口中 GuidMapperMapperExceptionpublic void removeByLocalIdAndGuid(long localId,
String guid)
throws MapperException
removeByLocalIdAndGuid 在接口中 GuidMapperMapperExceptionCopyright © 2016–2018. All rights reserved.