public abstract class FirebaseRepository<T extends com.jdroid.java.domain.Entity>
extends java.lang.Object
implements com.jdroid.java.repository.Repository<T>
| Constructor and Description |
|---|
FirebaseRepository() |
FirebaseRepository(FirebaseAuthenticationStrategy firebaseAuthenticationStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T item) |
void |
addAll(java.util.Collection<T> items) |
java.util.List<T> |
findByField(java.lang.String fieldName,
java.lang.Object... values) |
T |
get(java.lang.String id) |
java.util.List<T> |
getAll() |
java.util.List<T> |
getAll(java.util.List<java.lang.String> ids) |
protected abstract java.lang.Class<T> |
getEntityClass() |
protected abstract java.lang.String |
getFirebaseUrl() |
protected abstract java.lang.String |
getPath() |
java.lang.Long |
getSize() |
T |
getUniqueInstance() |
java.lang.Boolean |
isEmpty() |
void |
remove(java.lang.String id) |
void |
remove(T item) |
void |
removeAll() |
void |
removeAll(java.util.Collection<T> items) |
void |
replaceAll(java.util.Collection<T> items) |
void |
update(T item) |
public FirebaseRepository(FirebaseAuthenticationStrategy firebaseAuthenticationStrategy)
public FirebaseRepository()
protected abstract java.lang.String getFirebaseUrl()
protected abstract java.lang.String getPath()
protected abstract java.lang.Class<T> getEntityClass()
public T get(java.lang.String id)
get in interface com.jdroid.java.repository.Repository<T extends com.jdroid.java.domain.Entity>public void add(T item)
add in interface com.jdroid.java.repository.Repository<T extends com.jdroid.java.domain.Entity>public void addAll(java.util.Collection<T> items)
addAll in interface com.jdroid.java.repository.Repository<T extends com.jdroid.java.domain.Entity>public void update(T item)
update in interface com.jdroid.java.repository.Repository<T extends com.jdroid.java.domain.Entity>public java.util.List<T> findByField(java.lang.String fieldName, java.lang.Object... values)
findByField in interface com.jdroid.java.repository.Repository<T extends com.jdroid.java.domain.Entity>public java.util.List<T> getAll()
getAll in interface com.jdroid.java.repository.Repository<T extends com.jdroid.java.domain.Entity>public java.util.List<T> getAll(java.util.List<java.lang.String> ids)
getAll in interface com.jdroid.java.repository.Repository<T extends com.jdroid.java.domain.Entity>public void remove(T item)
remove in interface com.jdroid.java.repository.Repository<T extends com.jdroid.java.domain.Entity>public void removeAll()
removeAll in interface com.jdroid.java.repository.Repository<T extends com.jdroid.java.domain.Entity>public void removeAll(java.util.Collection<T> items)
removeAll in interface com.jdroid.java.repository.Repository<T extends com.jdroid.java.domain.Entity>public void remove(java.lang.String id)
remove in interface com.jdroid.java.repository.Repository<T extends com.jdroid.java.domain.Entity>public java.lang.Boolean isEmpty()
isEmpty in interface com.jdroid.java.repository.Repository<T extends com.jdroid.java.domain.Entity>public java.lang.Long getSize()
getSize in interface com.jdroid.java.repository.Repository<T extends com.jdroid.java.domain.Entity>public void replaceAll(java.util.Collection<T> items)
replaceAll in interface com.jdroid.java.repository.Repository<T extends com.jdroid.java.domain.Entity>