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