热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.datanucleus.metadata.AbstractClassMetaData.getValueForExtension()方法的使用及代码示例

本文整理了Java中org.datanucleus.metadata.AbstractClassMetaData.getValueForExtension()方法的一些

本文整理了Java中org.datanucleus.metadata.AbstractClassMetaData.getValueForExtension()方法的一些代码示例,展示了AbstractClassMetaData.getValueForExtension()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AbstractClassMetaData.getValueForExtension()方法的具体详情如下:
包路径:org.datanucleus.metadata.AbstractClassMetaData
类名称:AbstractClassMetaData
方法名:getValueForExtension

AbstractClassMetaData.getValueForExtension介绍

暂无

代码示例

代码示例来源:origin: org.datanucleus/datanucleus-json

public String getURLPathForQuery(AbstractClassMetaData acmd)
{
String url = acmd.getValueForExtension("url");
if (url == null)
{
url = acmd.getFullClassName();
}
if (!url.endsWith("/"))
{
url += "/";
}
return url;
}

代码示例来源:origin: org.datanucleus/datanucleus-json

/**
* URL path for querying in the cloud storage. it lists all entries for the bucket+a prefix
*/
public String getURLPathForQuery(AbstractClassMetaData acmd)
{
String url = acmd.getValueForExtension("url");
if (url == null)
{
url = acmd.getFullClassName();
}
url = "?prefix="+url;
return url;
}

代码示例来源:origin: org.datanucleus/datanucleus-json

protected String getURLPath(AbstractClassMetaData acmd)
{
String url = acmd.getValueForExtension("url");
if (url == null)
{
url = acmd.getFullClassName();
}
if (!url.endsWith("/"))
{
url += "/";
}
return url;
}

代码示例来源:origin: org.datanucleus/datanucleus-neo4j

/**
* Return whether a class should be persisted as a Relationship rather than Node.
* If a class is marked as an "attributed relation" then it needs to have 2 PC references, one for source
* and one for target with both of those stored as Nodes.
* @param cmd Metadata for the class to check
* @return Whether it is to be stored as a Relationship
*/
public static boolean classIsAttributedRelation(AbstractClassMetaData cmd)
{
if (cmd.hasExtension(Neo4jStoreManager.METADATA_ATTRIBUTED_RELATION))
{
if (cmd.getValueForExtension(Neo4jStoreManager.METADATA_ATTRIBUTED_RELATION).equalsIgnoreCase("TRUE"))
{
return true;
}
}
return false;
}
}

代码示例来源:origin: org.datanucleus/datanucleus-xml

if (acmd.hasExtension("namespace"))
value = acmd.getValueForExtension("namespace");
if (acmd.hasExtension("name"))
value = acmd.getValueForExtension("name");
return acmd.getValueForExtension("propOrder").split(",");
if (acmd.hasExtension("factoryMethod"))
value = acmd.getValueForExtension("factoryMethod");
return Class.forName(acmd.getValueForExtension("factoryClass"));

代码示例来源:origin: org.datanucleus/datanucleus-xml

if (acmd.hasExtension("namespace"))
value = acmd.getValueForExtension("namespace");
if (acmd.hasExtension("name"))
value = acmd.getValueForExtension("name");

代码示例来源:origin: org.datanucleus/datanucleus-ldap

if (cmd != null && cmd.hasExtension("dn"))
raw = cmd.getValueForExtension("dn");

代码示例来源:origin: com.google.appengine.orm/datanucleus-appengine

/**
* Method to add a filter to restrict any multitenancy discriminator to a valid value.
* @param qd QueryData
*/
private void addMultitenancyDiscriminator(QueryData qd) {
if (getStoreManager().getStringProperty(PropertyNames.PROPERTY_TENANT_ID) != null) {
if ("true".equalsIgnoreCase(qd.acmd.getValueForExtension("multitenancy-disable"))) {
} else {
// Restrict to the current tenant
String multitenantPropName = getStoreManager().getNamingFactory().getColumnName(qd.acmd, ColumnType.MULTITENANCY_COLUMN);
qd.primaryDatastoreQuery.addFilter(multitenantPropName, Query.FilterOperator.EQUAL,
getStoreManager().getStringProperty(PropertyNames.PROPERTY_TENANT_ID));
}
}
}

代码示例来源:origin: org.datanucleus/datanucleus-xml

return cmd.getValueForExtension("name");

代码示例来源:origin: org.datanucleus/datanucleus-xml

return cmd.getValueForExtension("xpath");

代码示例来源:origin: com.google.appengine.orm/datanucleus-appengine

if ("true".equalsIgnoreCase(cmd.getValueForExtension("multitenancy-disable"))) {

代码示例来源:origin: com.google.appengine.orm/datanucleus-appengine

if ("true".equalsIgnoreCase(op.getClassMetaData().getValueForExtension("multitenancy-disable"))) {
} else {

代码示例来源:origin: org.datanucleus/datanucleus-mongodb

Long size = Long.valueOf(cmd.getValueForExtension(MongoDBStoreManager.CAPPED_SIZE_EXTENSION_NAME));
options.put("size", size);
if (NucleusLogger.DATASTORE_SCHEMA.isDebugEnabled())

推荐阅读
author-avatar
爱着你心却痛_534
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有