|
18 | 18 |
|
19 | 19 | package com.backendless.persistence; |
20 | 20 |
|
| 21 | +import android.support.annotation.NonNull; |
| 22 | + |
21 | 23 | import com.backendless.Backendless; |
22 | 24 | import com.backendless.IDataStore; |
23 | 25 | import com.backendless.Invoker; |
@@ -758,84 +760,84 @@ public void deleteRelation( Map parent, String relationColumnName, String whereC |
758 | 760 | } |
759 | 761 |
|
760 | 762 | @Override |
761 | | - public <R> int addRelation( String parentObjectId, String relationColumnName, Collection<String> childrenObjectIds ) |
| 763 | + public <R> int addRelation(@NonNull String parentObjectId, @NonNull String relationColumnName, @NonNull Collection<String> childrenObjectIds ) |
762 | 764 | { |
763 | 765 | Object[] args = new Object[] { tableName, relationColumnName, parentObjectId, childrenObjectIds }; |
764 | 766 | return Invoker.invokeSync( Persistence.PERSISTENCE_MANAGER_SERVER_ALIAS, "addRelation", args ); |
765 | 767 | } |
766 | 768 |
|
767 | 769 | @Override |
768 | | - public <R> void addRelation( String parentObjectId, String relationColumnName, Collection<String> childrenObjectIds, AsyncCallback<Integer> callback ) |
| 770 | + public <R> void addRelation(@NonNull String parentObjectId, @NonNull String relationColumnName, @NonNull Collection<String> childrenObjectIds, AsyncCallback<Integer> callback ) |
769 | 771 | { |
770 | 772 | Object[] args = new Object[] { tableName, relationColumnName, parentObjectId, childrenObjectIds }; |
771 | 773 | Invoker.invokeAsync( Persistence.PERSISTENCE_MANAGER_SERVER_ALIAS, "addRelation", args, callback ); |
772 | 774 | } |
773 | 775 |
|
774 | 776 | @Override |
775 | | - public int addRelation( String parentObjectId, String relationColumnName, String whereClause ) |
| 777 | + public int addRelation(@NonNull String parentObjectId, @NonNull String relationColumnName, @NonNull String whereClause ) |
776 | 778 | { |
777 | 779 | Object[] args = new Object[] { tableName, relationColumnName, parentObjectId, whereClause }; |
778 | 780 | return Invoker.invokeSync( Persistence.PERSISTENCE_MANAGER_SERVER_ALIAS, "addRelation", args ); |
779 | 781 | } |
780 | 782 |
|
781 | 783 | @Override |
782 | | - public void addRelation( String parentObjectId, String relationColumnName, String whereClause, AsyncCallback<Integer> callback ) |
| 784 | + public void addRelation(@NonNull String parentObjectId, @NonNull String relationColumnName, @NonNull String whereClause, AsyncCallback<Integer> callback ) |
783 | 785 | { |
784 | 786 | Object[] args = new Object[] { tableName, relationColumnName, parentObjectId, whereClause }; |
785 | 787 | Invoker.invokeAsync( Persistence.PERSISTENCE_MANAGER_SERVER_ALIAS, "addRelation", args, callback ); |
786 | 788 | } |
787 | 789 |
|
788 | 790 | @Override |
789 | | - public <R> int setRelation( String parentObjectId, String relationColumnName, Collection<String> childrenObjectIds ) |
| 791 | + public <R> int setRelation(@NonNull String parentObjectId, @NonNull String relationColumnName, @NonNull Collection<String> childrenObjectIds ) |
790 | 792 | { |
791 | 793 | Object[] args = new Object[] { tableName, relationColumnName, parentObjectId, childrenObjectIds }; |
792 | 794 | return Invoker.invokeSync( Persistence.PERSISTENCE_MANAGER_SERVER_ALIAS, "setRelation", args ); |
793 | 795 | } |
794 | 796 |
|
795 | 797 | @Override |
796 | | - public <R> void setRelation( String parentObjectId, String relationColumnName, Collection<String> childrenObjectIds, AsyncCallback<Integer> callback ) |
| 798 | + public <R> void setRelation(@NonNull String parentObjectId, @NonNull String relationColumnName, @NonNull Collection<String> childrenObjectIds, AsyncCallback<Integer> callback ) |
797 | 799 | { |
798 | 800 | Object[] args = new Object[] { tableName, relationColumnName, parentObjectId, childrenObjectIds }; |
799 | 801 | Invoker.invokeAsync( Persistence.PERSISTENCE_MANAGER_SERVER_ALIAS, "setRelation", args, callback ); |
800 | 802 | } |
801 | 803 |
|
802 | 804 | @Override |
803 | | - public int setRelation( String parentObjectId, String relationColumnName, String whereClause ) |
| 805 | + public int setRelation(@NonNull String parentObjectId, @NonNull String relationColumnName, @NonNull String whereClause ) |
804 | 806 | { |
805 | 807 | Object[] args = new Object[] { tableName, relationColumnName, parentObjectId, whereClause }; |
806 | 808 | return Invoker.invokeSync( Persistence.PERSISTENCE_MANAGER_SERVER_ALIAS, "setRelation", args ); |
807 | 809 | } |
808 | 810 |
|
809 | 811 | @Override |
810 | | - public void setRelation( String parentObjectId, String relationColumnName, String whereClause, AsyncCallback<Integer> callback ) |
| 812 | + public void setRelation(@NonNull String parentObjectId, @NonNull String relationColumnName, @NonNull String whereClause, AsyncCallback<Integer> callback ) |
811 | 813 | { |
812 | 814 | Object[] args = new Object[] { tableName, relationColumnName, parentObjectId, whereClause }; |
813 | 815 | Invoker.invokeAsync( Persistence.PERSISTENCE_MANAGER_SERVER_ALIAS, "setRelation", args, callback ); |
814 | 816 | } |
815 | 817 |
|
816 | 818 | @Override |
817 | | - public <R> int deleteRelation( String parentObjectId, String relationColumnName, Collection<String> childrenObjectIds ) |
| 819 | + public <R> int deleteRelation(@NonNull String parentObjectId, @NonNull String relationColumnName, @NonNull Collection<String> childrenObjectIds ) |
818 | 820 | { |
819 | 821 | Object[] args = new Object[] { tableName, relationColumnName, parentObjectId, childrenObjectIds }; |
820 | 822 | return Invoker.invokeSync( Persistence.PERSISTENCE_MANAGER_SERVER_ALIAS, "deleteRelation", args ); |
821 | 823 | } |
822 | 824 |
|
823 | 825 | @Override |
824 | | - public <R> void deleteRelation( String parentObjectId, String relationColumnName, Collection<String> childrenObjectIds, AsyncCallback<Integer> callback ) |
| 826 | + public <R> void deleteRelation(@NonNull String parentObjectId, @NonNull String relationColumnName, @NonNull Collection<String> childrenObjectIds, AsyncCallback<Integer> callback ) |
825 | 827 | { |
826 | 828 | Object[] args = new Object[] { tableName, relationColumnName, parentObjectId, childrenObjectIds }; |
827 | 829 | Invoker.invokeAsync( Persistence.PERSISTENCE_MANAGER_SERVER_ALIAS, "deleteRelation", args, callback ); |
828 | 830 | } |
829 | 831 |
|
830 | 832 | @Override |
831 | | - public int deleteRelation( String parentObjectId, String relationColumnName, String whereClause ) |
| 833 | + public int deleteRelation(@NonNull String parentObjectId, @NonNull String relationColumnName, @NonNull String whereClause ) |
832 | 834 | { |
833 | 835 | Object[] args = new Object[] { tableName, relationColumnName, parentObjectId, whereClause }; |
834 | 836 | return Invoker.invokeSync( Persistence.PERSISTENCE_MANAGER_SERVER_ALIAS, "deleteRelation", args ); |
835 | 837 | } |
836 | 838 |
|
837 | 839 | @Override |
838 | | - public void deleteRelation( String parentObjectId, String relationColumnName, String whereClause, AsyncCallback<Integer> callback ) |
| 840 | + public void deleteRelation(@NonNull String parentObjectId, @NonNull String relationColumnName, @NonNull String whereClause, AsyncCallback<Integer> callback ) |
839 | 841 | { |
840 | 842 | Object[] args = new Object[] { tableName, relationColumnName, parentObjectId, whereClause }; |
841 | 843 | Invoker.invokeAsync( Persistence.PERSISTENCE_MANAGER_SERVER_ALIAS, "deleteRelation", args, callback ); |
|
0 commit comments