- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中pl.edu.icm.yadda.service2.YaddaObjectID.getId()
方法的一些代码示例,展示了YaddaObjectID.getId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YaddaObjectID.getId()
方法的具体详情如下:
包路径:pl.edu.icm.yadda.service2.YaddaObjectID
类名称:YaddaObjectID
方法名:getId
暂无
代码示例来源:origin: pl.edu.icm.yadda/yadda-content
private String notNull(final YaddaObjectID id) {
if (id != null && id.getId() != null) {
return id.getId();
} else {
return "";
}
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-services2
/**
* Returns an URI of the object
*
* @return
*/
public String encode() {
// TODO support versioning
String uri = URI_SCHEME + "://" + rootId.getId();
for (int i = 0; i < path.length; i++) {
uri = uri + "/" + path[i];
}
return uri;
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-process
protected void readNext() {
while (it.hasNext() && next == null) {
CatalogObjectMeta com = it.next();
next = com.getId().getId();
}
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-analysis-impl
@Override
public String getId(CatalogObject<String> element) {
return element.getId().getId();
}
};
代码示例来源:origin: pl.edu.icm.yadda/yadda-services2
public List<String> getUnversionedChildrenIds() {
List<YaddaObjectID> ids = getChildrenIds();
List<String> unversionedIds = new ArrayList<String>();
for (YaddaObjectID id : ids) {
unversionedIds.add(id.getId());
}
return unversionedIds;
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-process
protected void readNext() {
while (it.hasNext() && next == null) {
CatalogObjectMeta com = it.next();
try {
next = readObject(com.getId().getId(), false);
} catch (CatalogException e) {
log2.error("Error occured while getting record from catalog", e);
} catch (YaddaException e) {
log2.error("Error occured while parsing BWMETA1 object",e);
}
if (next==null)
log2.warn("CatalogObject is null for id=["+com.getId()+"]");
}
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-services2
/**
* Copy constructor
*
* @param id the id to copy
*/
public YaddaObjectID(YaddaObjectID id) {
this.id = id.getId();
this.branch = id.getBranch();
this.version = id.getVersion();
this.displayName = id.getDisplayName();
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-process
@Override
protected Chunk doProcessChunk(Chunk data,
Map<String, Serializable> context,
IProcessListener processListener, ProcessingStats stats)
throws Exception {
for (WriteStatusRequest ce : data.getWriteStatusRequests()) {
String serializedElementStatus = xStream.toXML(ce.getNewStatus());
YaddaObjectID id = new YaddaObjectID(ce.getExtId().getId());
if (!data.getObjectsToWrite().containsKey(ce.getExtId().getId())) {
data.getObjectsToWrite().put(ce.getExtId().getId(), new CatalogObject<String>(id));
}
CatalogObjectPart<String> elementStatusPart = new CatalogObjectPart<String>(
CatalogParamConstants.TYPE_ELEMENT_PROCESSING_STATUS, serializedElementStatus);
data.getObjectsToWrite().get(ce.getExtId().getId()).addPart(elementStatusPart);
}
return data;
}
代码示例来源:origin: pl.edu.icm.yadda/recorddb-editor
@Override
public List<CatalogObject<String>> produce(int limit) {
List<CatalogObject<String>> cos = new ArrayList<CatalogObject<String>>();
while (current < ids.length && limit > 0) {
YaddaObjectID oid = ids[current];
try {
CatalogObject<String> object =
oid.getVersion() == null ?
curdao.findObject(oid.getId(), request.getType()) :
curdao.findObject(oid, request.getType());
if (object != null) cos.add(object);
} catch (RuntimeException e) {
log.error("Exception caught", e);
throw e;
}
limit -= 1;
current += 1;
}
return cos;
}
@Override
代码示例来源:origin: pl.edu.icm.yadda/recorddb-editor
@Override
protected DbObjectMeta findMetaNoPTs(YaddaObjectID oid) throws DataAccessException {
DbObjectMeta meta = jdbc.queryForObject(
"SELECT * FROM "+tablePrefix+METAS_TABLE_NAME+
" WHERE "+META_ID+"=? AND "+META_BRANCH+"=? AND "+META_VERSION+"=?"+
(history?"":" AND "+META_HISTORY+"="+sqlSelectBoolFalse),
metaRowMapper,
oid.getId(), oid.getBranch(), oid.getVersion()
);
meta.setTags(findTags(meta));
return meta;
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-content
public void importMetadata() throws MetadataIndexException {
try {
final CountingIterator<CatalogObjectMeta> ci = catalogFacade.iterateObjects(null, null, null, null, false);
while (ci.hasNext()) {
final CatalogObjectMeta meta = ci.next();
final String extId = meta.getId().getId();
importMetadata(meta, extId);
}
} catch (final CatalogException e) {
throw new MetadataIndexException(e);
}
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-content
public void matchMetadata() throws MetadataIndexException {
try {
final CountingIterator<CatalogObjectMeta> ci = catalogFacade.iterateObjects(null, null, null, new String[] { MetadataIndexConstants.C_IMPORTED }, false);
while (ci.hasNext()) {
final CatalogObjectMeta meta = ci.next();
final String extId = meta.getId().getId();
matchMetadata(meta, extId);
}
} catch (final CatalogException e) {
throw new MetadataIndexException(e);
}
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-content
public void cleanMetadata() throws MetadataIndexException {
try {
final CountingIterator<CatalogObjectMeta> ci = catalogFacade.iterateObjects(null, null, null, null, false);
while (ci.hasNext()) {
final CatalogObjectMeta meta = ci.next();
final String extId = meta.getId().getId();
cleanMetadata(meta, extId);
}
} catch (final CatalogException e) {
throw new MetadataIndexException(e);
}
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-aal
/**
* Initializes memory copy of users directory
*/
protected void fetchUsers() throws CatalogException {
List<CatalogObjectMeta> userObjects =
catalogFacade.listObjects(new String[]{PART_TYPE_USER}, null, null, null, false);
for (CatalogObjectMeta item : userObjects) {
if (!item.getStatus().isDeleted()) {
CatalogObjectPart<String> part =
catalogFacade.getPart(item.getId(), PART_TYPE_USER, null);
User user = (User)serializer.toObject(item.getId().getId(), part.getData());
usersByLogin.put(user.getLogin(), user);
usersById.put(user.getExtId(), user);
}
}
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-user
public void init() {
try {
//fetch all
CountingIterator<CatalogObjectMeta> i =
catalog.iterateObjects(new String[]{partType}, null, null,
null, false);
while (i.hasNext()) {
String id = i.next().getId().getId();
NamedObject no =
loadObject(idMapper.getName(id), idMapper.getType(id));
addRelations(no);
}
} catch (CatalogException ex) {
log.error(
"Failed to read/process some objects during initialization.",
ex);
}
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-aal
/**
* Initializes memory copy of roles directory
* @throws CatalogException
*/
protected void fetchRoles() throws CatalogException {
List<CatalogObjectMeta> roleObjects =
catalogFacade.listObjects(new String[]{PART_TYPE_ROLE}, null, null, null, false);
for (CatalogObjectMeta item : roleObjects) {
if (!item.getStatus().isDeleted()) {
CatalogObjectPart<String> part =
catalogFacade.getPart(item.getId(), PART_TYPE_ROLE, null);
Role role = (Role)serializer.toObject(item.getId().getId(), part.getData());
roles.put(role.getExtId(), role);
}
}
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-content
@Override
public void matchInternal(final Date from, final Date until, String[] tags) throws MetadataIndexException {
try {
if (tags == null) {
tags = new String[] {};
}
final CountingIterator<CatalogObjectMeta> ci = catalogFacade.iterateObjects(
new String[] { MetadataIndexConstants.T_REFMETA }, from, until, tags, false);
while (ci.hasNext()) {
final CatalogObjectMeta meta = ci.next();
final String extId = meta.getId().getId();
matchMetadata(meta, extId);
}
} catch (final CatalogException e) {
throw new MetadataIndexException(e);
}
}
代码示例来源:origin: pl.edu.icm.yadda/recorddb-editor
@Override
public GetPartResponse<String> getPart(GetPartRequest request) {
GetPartResponse<String> resp = new GetPartResponse<String>();
try {
CatalogObjectPart<String> part;
YaddaObjectID oid = request.getObject();
String type = request.getType();
if (oid.getVersion() == null)
part = curdao.findPart(oid.getId(), type);
else
part = curdao.findPart(oid, type);
resp.setPart(part);
} catch (Exception e) {
log.error("Exception caught", e);
resp.setError(new YaddaError(ERROR_CODE, "exception caught", e));
}
return resp;
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-content
@Override
public int delete(String tag) throws MetadataIndexException {
try {
tag = MetadataIndexConstants.C_DATA_PREFIX + sanitizeTag(tag);
final CountingIterator<CatalogObjectMeta> iterator = catalogFacade.iterateObjects(
new String[] { MetadataIndexConstants.T_REFMETA }, null, null, new String[] { tag }, false);
final ISessionFacade<IndexDocument> session = indexFacade.connect(indexName);
int count = 0;
while (iterator.hasNext()) {
final YaddaObjectID yid = iterator.next().getId();
final DocId id = new DocId(MetadataIndexConstants.D_EXTID, yid.getId());
final Set<DocId> toRemove = checkExisting(Arrays.asList(new DocId[] { id }));
for (final DocId docId : toRemove) {
count += delete(session, docId, true);
}
}
session.commit();
return count;
} catch (final ServiceException e) {
throw new MetadataIndexException(e);
}
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-process
@Override
protected void processElement(Element<CatalogObjectMeta> element)
throws Exception {
if (!element.getData().isHistorical()) {
CatalogObjectMeta meta = targetCatalog.getObjectMetadata(new YaddaObjectID(element.getData().getId().getId()));
ObjectHistory.Ancestor relation = resolveRelation(element.getData(), meta);
if (relation == ObjectHistory.Ancestor.SAME || relation == ObjectHistory.Ancestor.MY_FIRST) {
//Do nothing
} else {
ObjectHistory resolvedObject = new ObjectHistory(element.getData(), meta, relation);
target.process(resolvedObject);
}
}
}
这个问题不太可能帮助任何 future 的访问者;它只与一个小的地理区域、一个特定的时间点或一个非常狭窄的情况有关,这些情况并不普遍适用于互联网的全局受众。为了帮助使这个问题更广泛地适用,visit
我正在处理一位离职顾问的一些代码。我试图了解传递给方法的 session 变量与 req.getSession() 返回的变量之间是否存在差异 当我在调试器中检查它们时,它们看起来是一样的。是否有理由
我在android中实现了一个媒体播放器,它可以在不同按钮的帮助下播放不同的文件。 public class MainActivity extends AppCompatActivity { Medi
当我使用 magentoshop 访问页面时;我收到此错误消息: 在第 85 行的/xxxxx/app/code/core/Mage/Catalog/Model/Product/Type/Config
我现在无法解决这个问题,所以任何帮助都会很棒.. for(EdgeOf e: gra.getEachVertex()) { System.out.println(e.getId()); }
Thread thbus = new Thread(bus); bus.setName("Bus"+ thbus.getId()); Thread thmechanics = new Thread(b
对于我的 Android 项目,我使用 getID() 方法来检索 View 的数值并将该值存储在我的数据库中。我相信针对特定 View 的此 getID() 方法将始终在生产环境中的多次执行以及多年
我记得在 JPA 或 hibernate 中有一个注释告诉 hibernate 使用 getId/setId 方法而不是属性(我们注释我们的属性)。如果没有此设置,getId 会导致访问数据库并填充该
我不确定这是否是导致我的问题的真正原因,但也许有人会知道。当我使用 Laravel Socialite 并执行以下操作时: $social_user = Socialite::driver($prov
这个问题已经有答案了: How to get Resource Name from Resource id (5 个回答) 已关闭 4 年前。 我的主要 Activity 中有一系列按钮,当我单击其中
我正在尝试实现一个 getter 方法来获取对象的 id:该方法应声明为“public int getId()”。 问题是对象类扩展了 Thread 类,该类已经具有“int getId()”方法。
嗨,我正在 Spring boot MongoDB 示例上做简单的应用程序。 我在运行 sprint boot 主类时收到此错误: BookController.java Error:(26, 54)
所以我使用了 view.getId() 来实现改变我所拥有的,就像这样: public void changeLinear(View view) { layoutPrimer.setVisib
HttpSession.getId() 返回的值是否保证在整个时间段内是唯一的——或者仅在所有 Activity session 中是唯一的? 换句话说,我可以将它用作 session 日志条目的 k
为什么,例如,Thread.currentThread().getId() 返回一个 long? 这真的需要 64 位吗?就像我要让一台机器运行那么多线程一样! 说真的,这有点痛苦,因为我正在写一些东
如果多个 Java 应用程序在一个系统上运行,每个线程 ID 相对于所有其他 Java 线程是否是唯一的,无论它们在哪个应用程序中运行? Java 应用程序应该相对于其他 Java 应用程序是沙盒的,
我是 android 编程的新手。我想更新 recyclerview 的卡片 View 布局中的项目。这是 recyclerview 的 ListRowViewHolder public static
本文整理了Java中java.time.ZoneOffset.getId()方法的一些代码示例,展示了ZoneOffset.getId()的具体用法。这些代码示例主要来源于Github/Stackov
本文整理了Java中java.time.ZoneId.getId()方法的一些代码示例,展示了ZoneId.getId()的具体用法。这些代码示例主要来源于Github/Stackoverflow/M
本文整理了Java中libcore.util.ZoneInfo.getID()方法的一些代码示例,展示了ZoneInfo.getID()的具体用法。这些代码示例主要来源于Github/Stackove
我是一名优秀的程序员,十分优秀!