本文整理汇总了Java中javax.persistence.metamodel.SingularAttribute.getName方法的典型用法代码示例。如果您正苦于以下问题:Java SingularAttribute.getName方法的具体用法?Java SingularAttribute.getName怎么用?Java SingularAttribute.getName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.persistence.metamodel.SingularAttribute
的用法示例。
在下文中一共展示了SingularAttribute.getName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SearchFilter
import javax.persistence.metamodel.SingularAttribute; //导入方法依赖的package包/类
public SearchFilter(SingularAttribute<?, ?> attribute, OP op, Object value) {
this(attribute.getName(), op, value, JoinType.DEFAULT);
}
示例2: getMethodNameForColumn
import javax.persistence.metamodel.SingularAttribute; //导入方法依赖的package包/类
@Override
public String getMethodNameForColumn(schemacrawler.schema.Column column) {
String tableName = column.getParent().getName();
SingularAttribute singularAttribute = singularAttributesByColumnName.get(new QualifiedColumnName(tableName, column.getName()));
return singularAttribute != null ? singularAttribute.getName() : fallbackNameProvider.getMethodNameForColumn(column);
}
示例3: getMethodNameForReference
import javax.persistence.metamodel.SingularAttribute; //导入方法依赖的package包/类
@Override
public String getMethodNameForReference(ForeignKey foreignKey) {
ForeignKeyRelation foreignKeyRelation = toForeignKeyRelation(foreignKey);
SingularAttribute singularAttribute = singularAttributesByForeignKeyRelation.get(foreignKeyRelation);
return singularAttribute != null ? singularAttribute.getName() : fallbackNameProvider.getMethodNameForReference(foreignKey);
}
示例4: OrderBy
import javax.persistence.metamodel.SingularAttribute; //导入方法依赖的package包/类
public OrderBy(SingularAttribute<? extends Identifiable<? extends Serializable>, ? extends Serializable> attribute, OrderByDirection direction) {
Validate.notNull(attribute);
Validate.notNull(direction);
this.columnOrProperty = attribute.getName();
this.direction = direction;
}