Class: AppEngine::Datastore::Text

Inherits:
String
  • Object
show all
Defined in:
lib/appengine-apis/datastore_types.rb

Overview

A long string type.

Strings of any length can be stored in the datastore using this type.

Not indexed.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new_from_java(text) ⇒ Object



79
80
81
# File 'lib/appengine-apis/datastore_types.rb', line 79

def self.new_from_java(text)
  self.new(text.getValue)
end

Instance Method Details

#to_javaObject



75
76
77
# File 'lib/appengine-apis/datastore_types.rb', line 75

def to_java
  JavaDatastore::Text.new(java.lang.String.new(self))
end