作者:爱着你心却痛_534 | 来源:互联网 | 2023-09-12 19:03
本文整理了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
暂无
代码示例
代码示例来源: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())