当前位置: 首页>>代码示例>>Java>>正文


Java ObjectIdGenerator.IdKey方法代码示例

本文整理汇总了Java中com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey方法的典型用法代码示例。如果您正苦于以下问题:Java ObjectIdGenerator.IdKey方法的具体用法?Java ObjectIdGenerator.IdKey怎么用?Java ObjectIdGenerator.IdKey使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.fasterxml.jackson.annotation.ObjectIdGenerator的用法示例。


在下文中一共展示了ObjectIdGenerator.IdKey方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: resolveId

import com.fasterxml.jackson.annotation.ObjectIdGenerator; //导入方法依赖的package包/类
@Override
public Object resolveId(final ObjectIdGenerator.IdKey id) {
    Object entity = repository.findOne((Long) id.key);

    if (entity == null) {
        throw new BusinessException(ErrorConstants.ERR_NOTFOUND, "Can not resolve XmEntity by ID: " + id.key);
    }

    return entity;
}
 
开发者ID:xm-online,项目名称:xm-ms-entity,代码行数:11,代码来源:XmEntityObjectIdResolver.java

示例2: findObjectId

import com.fasterxml.jackson.annotation.ObjectIdGenerator; //导入方法依赖的package包/类
public ReadableObjectId findObjectId(Object paramObject, ObjectIdGenerator<?> paramObjectIdGenerator)
{
  ObjectIdGenerator.IdKey localIdKey = paramObjectIdGenerator.key(paramObject);
  if (this._objectIds == null)
  {
    this._objectIds = new LinkedHashMap();
  }
  else
  {
    ReadableObjectId localReadableObjectId1 = (ReadableObjectId)this._objectIds.get(localIdKey);
    if (localReadableObjectId1 != null)
      return localReadableObjectId1;
  }
  ReadableObjectId localReadableObjectId2 = new ReadableObjectId(paramObject);
  this._objectIds.put(localIdKey, localReadableObjectId2);
  return localReadableObjectId2;
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:18,代码来源:DefaultDeserializationContext.java

示例3: resolveId

import com.fasterxml.jackson.annotation.ObjectIdGenerator; //导入方法依赖的package包/类
@Override
public Object resolveId(final ObjectIdGenerator.IdKey id) {
    Object entity = repository.findOne((Long) id.key);

    if (entity == null) {
        throw new BusinessException(ErrorConstants.ERR_NOTFOUND, "Can not resolve Calendar by ID: " + id.key);
    }

    return entity;
}
 
开发者ID:xm-online,项目名称:xm-ms-entity,代码行数:11,代码来源:CalendarObjectIdResolver.java

示例4: bindItem

import com.fasterxml.jackson.annotation.ObjectIdGenerator; //导入方法依赖的package包/类
@Override
public void bindItem(ObjectIdGenerator.IdKey id, Object pojo) {
}
 
开发者ID:requery,项目名称:requery,代码行数:4,代码来源:EntityStoreResolver.java

示例5: resolveId

import com.fasterxml.jackson.annotation.ObjectIdGenerator; //导入方法依赖的package包/类
@Override
public Object resolveId(ObjectIdGenerator.IdKey id) {
    return store == null ? null : store.findByKey(id.scope, id.key);
}
 
开发者ID:requery,项目名称:requery,代码行数:5,代码来源:EntityStoreResolver.java

示例6: key

import com.fasterxml.jackson.annotation.ObjectIdGenerator; //导入方法依赖的package包/类
public ObjectIdGenerator.IdKey key(Object paramObject)
{
  return new ObjectIdGenerator.IdKey(getClass(), this._scope, paramObject);
}
 
开发者ID:mmmsplay10,项目名称:QuizUpWinner,代码行数:5,代码来源:PropertyBasedObjectIdGenerator.java

示例7: addObjectId

import com.fasterxml.jackson.annotation.ObjectIdGenerator; //导入方法依赖的package包/类
void addObjectId(ObjectIdGenerator.IdKey id, Object instance); 
开发者ID:vegegoku,项目名称:gwt-jackson-apt,代码行数:2,代码来源:JsonDeserializationContext.java

示例8: getObjectWithId

import com.fasterxml.jackson.annotation.ObjectIdGenerator; //导入方法依赖的package包/类
Object getObjectWithId(ObjectIdGenerator.IdKey id); 
开发者ID:vegegoku,项目名称:gwt-jackson-apt,代码行数:2,代码来源:JsonDeserializationContext.java


注:本文中的com.fasterxml.jackson.annotation.ObjectIdGenerator.IdKey方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。