公开SNS社区即时找朋友链的源代码和部署方案(续六)
2012-04-23 00:00
92 查看
Versant数据库的对象查询
Versant数据库可以支持SQL查询和NOSQL查询两种模式,以下为SQL查询的例子:
TransSession session = DistributedDatabaseManager.getInstance()
.createNewSession();
VQLQuery q = new VQLQuery(
session,
DistributedDatabaseManager.getInstance().HPC_DEMO_NETWORK_NAME,
"select selfoid from com.versant.domain.Person where firstName='AAF1' and lastName='AAL1'");
//"select * from com.versant.domain.Person");
System.out.println("About to execute query, and load root object.");
VEnumeration results = q.execute();
// 创建已经走过的朋友路径,避免回环
System.out
.println("--------------------------------------------------------------------------");
Versant数据库可以支持SQL查询和NOSQL查询两种模式,以下为SQL查询的例子:
TransSession session = DistributedDatabaseManager.getInstance()
.createNewSession();
VQLQuery q = new VQLQuery(
session,
DistributedDatabaseManager.getInstance().HPC_DEMO_NETWORK_NAME,
"select selfoid from com.versant.domain.Person where firstName='AAF1' and lastName='AAL1'");
//"select * from com.versant.domain.Person");
System.out.println("About to execute query, and load root object.");
VEnumeration results = q.execute();
// 创建已经走过的朋友路径,避免回环
System.out
.println("--------------------------------------------------------------------------");
相关文章推荐
- 公开SNS社区即时找朋友链的源代码和部署方案(续五)
- 公开SNS社区即时找朋友链的源代码和部署方案(续四)
- 公开SNS社区即时找朋友链的源代码和部署方案(续三)
- 公开SNS社区即时找朋友链的源代码和部署方案(续五)
- 公开SNS社区即时找朋友链的源代码和部署方案(续六)
- 公开SNS社区即时找朋友链的源代码和部署方案(续七)
- 公开SNS社区即时找朋友链的源代码和部署方案(续七)
- 公开SNS社区即时找朋友链的源代码和部署方案(续二)
- 公开SNS社区即时找朋友链的源代码和部署方案(续一)
- 公开SNS社区即时找朋友链的源代码和部署方案(续二)
- 公开SNS社区即时找朋友链的源代码和部署方案(续三)
- 公开SNS社区即时找朋友链的源代码和部署方案(续四)
- 公开分布式高性能查询的源代码和部署方案.(二)
- 公开分布式高性能查询的源代码和部署方案(三)
- 公开分布式高性能查询的源代码和部署方案(三)
- 公开分布式高性能查询的源代码和部署方案.(二)
- 公开分布式高性能查询的源代码和部署方案(一)
- 公开分布式高性能查询的源代码和部署方案(一)
- PLC 上位机 算法 源代码 方案 品牌 历经十年升级改造 数代更新 梯形图算法全部公开 梯形图转指令表的算法源代码
- GIT+Gitosis+Repo 整套部署方案