public class

DbObj

extends Object
implements SignedObj
java.lang.Object
   ↳ mobisocial.socialkit.musubi.DbObj

Class Overview

A SignedObj implementation that is backed by a database.

Summary

Constants
String COL_APP_ID
String COL_DELETED
String COL_DEVICE_ID
String COL_ENCODED_ID
String COL_FEED_ID
String COL_ID
String COL_IDENTITY_ID
String COL_INT_KEY
String COL_JSON
String COL_LAST_MODIFIED_TIMESTAMP
String COL_PARENT_ID
String COL_RAW
String COL_RENDERABLE
String COL_SHORT_UNIVERSAL_HASH
String COL_STRING_KEY
String COL_TIMESTAMP
String COL_TYPE
String COL_UNIVERSAL_HASH
String TABLE
[Expand]
Inherited Constants
From interface mobisocial.socialkit.Obj
Fields
public static final Uri OBJ_URI
Public Methods
String getAppId()
The application identified with the creation of this Obj.
DbFeed getContainingFeed()
Returns the parent feed that bounds this object.
long getHash()
Returns a hash of the user's signature over this obj.
Integer getIntKey()
(Optional) Integer for this obj.
JSONObject getJson()
(Optional) JSON data associated with this obj.
long getLocalId()
Returns the database's local id for this Obj.
String getName()
byte[] getRaw()
(Optional) binary data associated with this obj.
DbIdentity getSender()
Returns the User who signed this obj.
long getSenderId()
String getStringKey()
(Optional) A name for this obj.
DbFeed getSubfeed()
Returns the subfeed that has this object as its head.
long getTimestamp()
The timestamp of when the obj was sent.
String getType()
(Required) The "type" of this obj.
String getUniversalHashString()
Uri getUri()
static ContentValues toContentValues(Uri feedUri, Long parentObjId, Obj obj)
Prepares ContentValues that can be delivered to Musubi's Content Provider for insertion into a SocialDb feed.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface mobisocial.socialkit.Obj
From interface mobisocial.socialkit.SignedObj

Constants

public static final String COL_APP_ID

Constant Value: "app_id"

public static final String COL_DELETED

Constant Value: "deleted"

public static final String COL_DEVICE_ID

Constant Value: "device_id"

public static final String COL_ENCODED_ID

Constant Value: "encoded_id"

public static final String COL_FEED_ID

Constant Value: "feed_id"

public static final String COL_ID

Constant Value: "_id"

public static final String COL_IDENTITY_ID

Constant Value: "identity_id"

public static final String COL_INT_KEY

Constant Value: "int_key"

public static final String COL_JSON

Constant Value: "json"

public static final String COL_LAST_MODIFIED_TIMESTAMP

Constant Value: "last_modified_timestamp"

public static final String COL_PARENT_ID

Constant Value: "parent_id"

public static final String COL_RAW

Constant Value: "raw"

public static final String COL_RENDERABLE

Constant Value: "renderable"

public static final String COL_SHORT_UNIVERSAL_HASH

Constant Value: "short_universal_hash"

public static final String COL_STRING_KEY

Constant Value: "string_key"

public static final String COL_TIMESTAMP

Constant Value: "timestamp"

public static final String COL_TYPE

Constant Value: "type"

public static final String COL_UNIVERSAL_HASH

Constant Value: "universal_hash"

public static final String TABLE

Constant Value: "objects"

Fields

public static final Uri OBJ_URI

Public Methods

public String getAppId ()

The application identified with the creation of this Obj.

public DbFeed getContainingFeed ()

Returns the parent feed that bounds this object.

public long getHash ()

Returns a hash of the user's signature over this obj.

public Integer getIntKey ()

(Optional) Integer for this obj.

public JSONObject getJson ()

(Optional) JSON data associated with this obj.

public long getLocalId ()

Returns the database's local id for this Obj.

public String getName ()

public byte[] getRaw ()

(Optional) binary data associated with this obj.

public DbIdentity getSender ()

Returns the User who signed this obj.

public long getSenderId ()

public String getStringKey ()

(Optional) A name for this obj.

public DbFeed getSubfeed ()

Returns the subfeed that has this object as its head.

public long getTimestamp ()

The timestamp of when the obj was sent.

public String getType ()

(Required) The "type" of this obj.

public String getUniversalHashString ()

public Uri getUri ()

public static ContentValues toContentValues (Uri feedUri, Long parentObjId, Obj obj)

Prepares ContentValues that can be delivered to Musubi's Content Provider for insertion into a SocialDb feed.

public String toString ()