Skip to content

Commit

Permalink
v1beta2-rev1-2.0.0
Browse files Browse the repository at this point in the history
------------------
- API changes:
  - `BlindWrite` method merged into `Commit`.
  - Added `list_value` to `Value` and changed `value` to a non-repeated field in `Property`.
  - In JSON API, string constants are now uppercase and underscore-separated instead of camel-cased (e.g. `LESS_THAN_OR_EQUAL` instead of `lessThanOrEqual`).
- GQL changes:
  - New synthetic literals: `BLOB`, `BLOBKEY`, `DATETIME`, `KEY`.
  - Support for `IS NULL`.
  - Fixed partition ID handling for binding arguments.
- Documentation changes:
  - All documentation has been updated to the v1beta2 API.
  - Getting started guide for Node.js now uses v0.4.5 of google-api-nodejs-client.
- Fixed partition ID handling for query requests that include an explicit partition ID.
- Fixed scopes in discovery document.
  - #9
- Fixed an issue where command line tool didn't work for some locales.
  - #12
  • Loading branch information
eddavisson committed Sep 24, 2013
1 parent 636a5b2 commit dd64c02
Show file tree
Hide file tree
Showing 25 changed files with 584 additions and 527 deletions.
19 changes: 19 additions & 0 deletions RELEASE_NOTES.md
@@ -1,6 +1,25 @@
RELEASE NOTES
=============

v1beta2-rev1-2.0.0
------------------
- API changes:
- `BlindWrite` method merged into `Commit`.
- Added `list_value` to `Value` and changed `value` to a non-repeated field in `Property`.
- In JSON API, string constants are now uppercase and underscore-separated instead of camel-cased (e.g. `LESS_THAN_OR_EQUAL` instead of `lessThanOrEqual`).
- GQL changes:
- New synthetic literals: `BLOB`, `BLOBKEY`, `DATETIME`, `KEY`.
- Support for `IS NULL`.
- Fixed partition ID handling for binding arguments.
- Documentation changes:
- All documentation has been updated to the v1beta2 API.
- Getting started guide for Node.js now uses v0.4.5 of google-api-nodejs-client.
- Fixed partition ID handling for query requests that include an explicit partition ID.
- Fixed scopes in discovery document.
- https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/9
- Fixed an issue where command line tool didn't work for some locales.
- https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues/12

v1beta1-rev2-1.0.1
------------------
- GQL support.
Expand Down
31 changes: 2 additions & 29 deletions java/datastore-shade/pom.xml
Expand Up @@ -10,51 +10,24 @@
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-datastore-protobuf</artifactId>
<version>v1beta1-rev2-1.0.1</version>
<version>v1beta2-rev1-2.0.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createSourcesJar>true</createSourcesJar>
<artifactSet>
<excludes>
<exclude>com.google.code.findbugs:jsr305</exclude>
<exclude>xpp3:xpp3</exclude>
</excludes>
</artifactSet>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.ning.maven.plugins</groupId>
<artifactId>maven-duplicate-finder-plugin</artifactId>
<version>1.0.4</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<parent>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-datastore-protobuf-parent</artifactId>
<version>v1beta1-rev2-1.0.1</version>
<version>v1beta2-rev1-2.0.0</version>
</parent>
</project>
45 changes: 1 addition & 44 deletions java/datastore/pom.xml
Expand Up @@ -43,23 +43,10 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>com.github.igor-petruk.protobuf</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.3</version>
<executions>
<execution>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<configuration>
<inputDirectories>
<param>../../proto</param>
Expand All @@ -69,50 +56,20 @@
<plugin>
<groupId>com.ning.maven.plugins</groupId>
<artifactId>maven-duplicate-finder-plugin</artifactId>
<version>1.0.4</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9</version>
<configuration>
<show>protected</show>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<parent>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-datastore-protobuf-parent</artifactId>
<version>v1beta1-rev2-1.0.1</version>
<version>v1beta2-rev1-2.0.0</version>
</parent>
</project>
Expand Up @@ -20,8 +20,6 @@
import com.google.api.services.datastore.DatastoreV1.AllocateIdsResponse;
import com.google.api.services.datastore.DatastoreV1.BeginTransactionRequest;
import com.google.api.services.datastore.DatastoreV1.BeginTransactionResponse;
import com.google.api.services.datastore.DatastoreV1.BlindWriteRequest;
import com.google.api.services.datastore.DatastoreV1.BlindWriteResponse;
import com.google.api.services.datastore.DatastoreV1.CommitRequest;
import com.google.api.services.datastore.DatastoreV1.CommitResponse;
import com.google.api.services.datastore.DatastoreV1.LookupRequest;
Expand Down Expand Up @@ -113,12 +111,4 @@ public RunQueryResponse runQuery(RunQueryRequest request) throws DatastoreExcept
throw invalidResponseException("runQuery", exception);
}
}

public BlindWriteResponse blindWrite(BlindWriteRequest request) throws DatastoreException {
try {
return BlindWriteResponse.parseFrom(remoteRpc.call("blindWrite", request));
} catch (IOException exception) {
throw invalidResponseException("blindWrite", exception);
}
}
}
Expand Up @@ -20,8 +20,22 @@
*
*/
public class DatastoreException extends Exception {
public final String methodName;
public final int code;
private final String methodName;
private final int code;

/**
* @return the HTTP response code
*/
public int getCode() {
return code;
}

/**
* @return the datastore method name
*/
public String getMethodName() {
return methodName;
}

public DatastoreException(String methodName, int code, String message, Throwable cause) {
super(message, cause);
Expand Down
Expand Up @@ -39,7 +39,7 @@ public class DatastoreFactory {

/** Singleton factory instance. */
private static final DatastoreFactory INSTANCE = new DatastoreFactory();
private static final String VERSION = "v1beta1";
private static final String VERSION = "v1beta2";

// Lazy load this because we might be running inside App Engine and this
// class isn't on the whitelist.
Expand Down

0 comments on commit dd64c02

Please sign in to comment.