Package com.syzygy.events.database
Class DatabaseInstance.PropertyField.NullInstance
java.lang.Object
com.syzygy.events.database.DatabaseInstance<DatabaseInstance.PropertyField.NullInstance>
com.syzygy.events.database.DatabaseInstance.PropertyField.NullInstance
- All Implemented Interfaces:
Database.Dissolvable
,Database.UpdateListener
- Enclosing class:
- DatabaseInstance.PropertyField<V,
W extends DatabaseInstance<W>>
public static class DatabaseInstance.PropertyField.NullInstance
extends DatabaseInstance<DatabaseInstance.PropertyField.NullInstance>
This class exists to fulfill the wildcard for PropertyWrappers
-
Nested Class Summary
Nested classes/interfaces inherited from class com.syzygy.events.database.DatabaseInstance
DatabaseInstance.DeletionType, DatabaseInstance.InstancePropertyWrapper<W extends DatabaseInstance<W>>, DatabaseInstance.PropertyField<V,
W extends DatabaseInstance<W>>, DatabaseInstance.PropertyWrapper<V, W extends DatabaseInstance<W>> Nested classes/interfaces inherited from interface com.syzygy.events.database.Database.UpdateListener
Database.UpdateListener.Type
-
Field Summary
Fields inherited from class com.syzygy.events.database.DatabaseInstance
db, iproperties, properties
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
NullInstance
(Database db, String documentID, Database.Collections collection, DatabaseInstance.PropertyField<?, ?>[] properties) -
Method Summary
Modifier and TypeMethodDescriptioncast()
Gets this instance casted to the generic typeprotected List<android.util.Pair<com.google.firebase.firestore.Query,
Database.Collections>> Methods inherited from class com.syzygy.events.database.DatabaseInstance
addInitializationListener, addListener, assertNotIllegalState, deleteInstance, dereferenceInstance, dissolve, dissolve, doesPropertyLoadInstance, fetch, fetch, fullDissolve, getAssociatedImage, getAssociatedImageLocName, getCollection, getCollectionReference, getData, getDatabaseID, getDocumentID, getDocumentReference, getFields, getPropertyInstance, getPropertyInstanceI, getPropertyValue, getPropertyValueI, initializeData, isDataValid, isDataValid, isLegalState, isPropertyEditable, isPropertyValid, isPropertyValid, isReferenced, modifyData, notifyUpdate, onUpdate, processUpdate, removeListener, requiredFirstDelete, setAssociatedImage, setPropertyInstance, setPropertyValue, subDereferenceInstance, subInitialize, toString, updateDataFromDatabase, updateDataFromMap, updateDataFromMap
-
Constructor Details
-
NullInstance
private NullInstance(Database db, String documentID, Database.Collections collection, @NonNull DatabaseInstance.PropertyField<?, ?>[] properties) throws ClassCastException, IllegalArgumentException
-
-
Method Details
-
cast
Description copied from class:DatabaseInstance
Gets this instance casted to the generic type- Specified by:
cast
in classDatabaseInstance<DatabaseInstance.PropertyField.NullInstance>
- Returns:
- This as the generic type
-
subInstanceCascadeDeleteQuery
protected List<android.util.Pair<com.google.firebase.firestore.Query,Database.Collections>> subInstanceCascadeDeleteQuery()- Specified by:
subInstanceCascadeDeleteQuery
in classDatabaseInstance<DatabaseInstance.PropertyField.NullInstance>
- Returns:
- A list of all querries that should be run whose instances will be deleted when this instance is deleted
-