Android Open Source - ExpertAndroid Parse Object Wrapper Old1

From Project

Back to project page ExpertAndroid.


The source code is released under:

MIT License

If you think the Android project ExpertAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.androidbook.parse;
/*  www . j  av a2  s .c o m*/

import com.parse.ParseObject;
import com.parse.ParseUser;

public class ParseObjectWrapperOld1 
  public static String f_createdAt = "createdAt";
  public static String f_createdBy = "createdBy";
  public static String f_updatedAt = "updatedAt";
  public static String f_updatedBy = "updatedBy";
  public ParseObject po;
  public ParseObjectWrapperOld1(String tablename)
    po = new ParseObject(tablename);
    po.put(f_createdBy, ParseUser.getCurrentUser());
  public ParseObjectWrapperOld1(ParseObject in)
    po = in;
  public ParseObject getParseObject() { return po; }
  String getTablename()
    return po.getClassName();
  public ParseUser getCreatedBy()
    return po.getParseUser(f_createdBy);
  public void setCreatedBy(ParseUser in)
    po.put(f_createdBy, in);
  public void setUpdatedBy()
    po.put(f_updatedBy, ParseUser.getCurrentUser());
  public ParseUser getLastUpdatedBy()
    return (ParseUser)po.getParseObject(f_updatedBy);

Java Source Code List