本文整理匯總了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;
}