UbiCollab / UbiCollabSDK

One jar file to rule them all.
1 stars 0 forks source link

DELETE and DIRTY: string or integer? #29

Closed JacquelineFloch closed 11 years ago

JacquelineFloch commented 11 years ago

Javadoc tells that DELETE and DIRTY are String. Is that correct?

(I wonder since sharing does not work...)

KatoStoelen commented 11 years ago

The constants defining the name of the columns are strings. The fields themself are integer.

There is currently a bug with the synchronization of communities. I will fix this issue before monday.

JacquelineFloch commented 11 years ago

It is confusing... javadoc does not mention any type... So I guess fields like _ID_OWNER are also integer?

I am a bit uncertain how I should access/set them

I have only used string values. Before syncAdapter was introduced, all work perfectly, Now it is only chaos...

Note there may be sevral entriesin Sharing for the same user (with different types, e.g recommended, shared). I also have entries with community_id set to 0, and not account name in order to register services installed. This infor should not be synchronised.

BabakFarshchian commented 11 years ago

All the fields in SocialContract are documented with Type in DB that tells whether they should be text or integer etc. The constants are of course all of type public static final String but this is not related to what you will give as value. When you want to see what type a specific parameter should have go to the definition of the parameter and see Type in DB.