本文整理汇总了Java中com.mysema.query.types.PathMetadata类的典型用法代码示例。如果您正苦于以下问题:Java PathMetadata类的具体用法?Java PathMetadata怎么用?Java PathMetadata使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PathMetadata类属于com.mysema.query.types包,在下文中一共展示了PathMetadata类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: QTestDbObject
import com.mysema.query.types.PathMetadata; //导入依赖的package包/类
public QTestDbObject(PathMetadata<?> metadata) {
super(QTestDbObject.class, metadata, "PUBLIC", "TEST_DB_OBJECT");
}
示例2: getName
import com.mysema.query.types.PathMetadata; //导入依赖的package包/类
private static String getName(Expression<?> expression) {
if (expression instanceof Path<?>) {
@SuppressWarnings("rawtypes")
PathMetadata<?> metadata = ((Path) expression).getMetadata();
if (metadata.getPathType() == PathType.PROPERTY) {
return metadata.getElement().toString();
} else {
throw new MappingException("Unexpected expression " + expression);
}
} else {
throw new MappingException("Unexpected expression " + expression);
}
}
示例3: visit
import com.mysema.query.types.PathMetadata; //导入依赖的package包/类
public Object visit(Path<?> expr, @Nullable Void context) {
PathMetadata<?> metadata = expr.getMetadata();
if (metadata.getPathType() == PathType.PROPERTY) {
Object parent = visit(metadata.getParent(), context);
String name = metadata.getName();
return parent != null ? parent + "." + name : name;
} else {
return null;
}
}
示例4: QTestSmallBenchmarkObject
import com.mysema.query.types.PathMetadata; //导入依赖的package包/类
public QTestSmallBenchmarkObject(PathMetadata<?> metadata) {
super(QTestSmallBenchmarkObject.class, metadata, "null", "TEST_SMALL_BENCHMARK_OBJECT");
addMetadata();
}
示例5: QTestBenchmarkObject16
import com.mysema.query.types.PathMetadata; //导入依赖的package包/类
public QTestBenchmarkObject16(PathMetadata<?> metadata) {
super(QTestBenchmarkObject16.class, metadata, "null", "test_benchmark_object_16");
addMetadata();
}
示例6: QContact
import com.mysema.query.types.PathMetadata; //导入依赖的package包/类
public QContact(PathMetadata<?> metadata) {
super(QContact.class, metadata, "null", "contact");
}
示例7: QI18nMessage
import com.mysema.query.types.PathMetadata; //导入依赖的package包/类
public QI18nMessage(PathMetadata<?> metadata) {
super(I18nMessage.class, metadata, "null", "i18n_message");
addMetadata();
}
示例8: QAsyncProcessFile
import com.mysema.query.types.PathMetadata; //导入依赖的package包/类
public QAsyncProcessFile(PathMetadata<?> metadata) {
super(BAsyncProcessFile.class, metadata, "PUBLIC", "ASYNC_PROCESS_FILE");
addMetadata();
}
示例9: QCompanyConfig
import com.mysema.query.types.PathMetadata; //导入依赖的package包/类
public QCompanyConfig(PathMetadata<?> metadata) {
super(CompanyConfig.class, metadata, "null", "company_config");
addMetadata();
}
示例10: QSysRoleRes
import com.mysema.query.types.PathMetadata; //导入依赖的package包/类
public QSysRoleRes(PathMetadata<?> metadata) {
super(SysRoleRes.class, metadata, "null", "sys_role_res");
addMetadata();
}
示例11: QSysUserProfile
import com.mysema.query.types.PathMetadata; //导入依赖的package包/类
public QSysUserProfile(PathMetadata<?> metadata) {
super(SysUserProfile.class, metadata, "null", "sys_user_profile");
addMetadata();
}
示例12: QSysRole
import com.mysema.query.types.PathMetadata; //导入依赖的package包/类
public QSysRole(PathMetadata<?> metadata) {
super(SysRole.class, metadata, "null", "sys_role");
addMetadata();
}
示例13: QSysMenu
import com.mysema.query.types.PathMetadata; //导入依赖的package包/类
public QSysMenu(PathMetadata<?> metadata) {
super(SysMenu.class, metadata, "null", "sys_menu");
addMetadata();
}
示例14: QSysUserRole
import com.mysema.query.types.PathMetadata; //导入依赖的package包/类
public QSysUserRole(PathMetadata<?> metadata) {
super(SysUserRole.class, metadata, "null", "sys_user_role");
addMetadata();
}
示例15: QSysResource
import com.mysema.query.types.PathMetadata; //导入依赖的package包/类
public QSysResource(PathMetadata<?> metadata) {
super(SysResource.class, metadata, "null", "sys_resource");
addMetadata();
}