简体   繁体   English

GQL仅适用于Python项目而不适用于Java?

[英]GQL only for Python projects and not for java?

In Google App Engine, GQL(an SQL-like query mechanism foe datastore) is available only for Python Projects and not for java projects. 在Google App Engine中,GQL(类似SQL的数据存储查询机制)仅适用于Python项目,不适用于Java项目。 Why is it so? 为什么会这样?

Also it there anyway to overcome this and use GQL in java projects also ? 还有它在那里克服这个并在Java项目中也使用GQL吗?

GQL isn't in the Java implementation and as a replacement you would use the Query object to build datastore queries. GQL不在Java实现中,作为替代,您将使用Query对象来构建数据存储区查询。

If you're looking for a GQL implementation for Java, gql4j works well enough. 如果您正在寻找Java的GQL实现,gql4j运行良好。 I tested it out on a small data set to make sure it works but I haven't used it in a project otherwise. 我在一个小数据集上测试它以确保它可以工作,但我还没有在项目中使用它。

http://code.google.com/p/gql4j/ http://code.google.com/p/gql4j/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM