Gets the children of the specified location.
Gets the children of the specified location.
a list of locations that are children of the specified location.
Deletes a location as well as all the group associations and location paths that relate to it.
Deletes a location as well as all the group associations and location paths that relate to it.
true if the operation was successful, false otherwise.
Increments the counter of a location and returns the new counter value
Increments the counter of a location and returns the new counter value
Inserts a location as well as the location paths needed
Inserts a location as well as the location paths needed
the id of the location inserted or none if there was an error
Creates a location type.
Creates a location type.
the newly created location type.
if we can't create the location type.
Gets a location by its id with the specified associations.
Gets a location by its id with the specified associations.
Gets the number of records that correspond to the complex select statement.
Gets the number of records that correspond to the complex select statement.
Gets the number of records that correspond to the complex select statement.
Gets the number of records that correspond to the complex select statement.
Gets a list of com.atomizesoftware.spin.models.LocationType with the requested filters.
Gets a list of com.atomizesoftware.spin.models.LocationType with the requested filters.
Gets a list of com.atomizesoftware.spin.models.LocationType for synchronization with mobile devices.
Gets a list of com.atomizesoftware.spin.models.LocationType for synchronization with mobile devices.
Gets a list of com.atomizesoftware.spin.models.Location with the requested filters.
Gets a list of com.atomizesoftware.spin.models.Location with the requested filters.
Gets a list of com.atomizesoftware.spin.models.Location for synchronization with mobile devices.
Gets a list of com.atomizesoftware.spin.models.Location for synchronization with mobile devices.
Traverses up the tree to find the com.atomizesoftware.spin.models.Location first ascendant that has a prefix defined
Traverses up the tree to find the com.atomizesoftware.spin.models.Location first ascendant that has a prefix defined
Gets the parent location id of a location.
Gets the parent location id of a location.
the Id of the parent location, can be Some(id) or None
Gets the number of records that correspond to the complex select statement.
Gets the number of records that correspond to the complex select statement.
Gets a list of com.atomizesoftware.spin.models.Shape with the requested filters.
Gets a list of com.atomizesoftware.spin.models.Shape with the requested filters.
Gets the top most ancestor of a given location.
Gets the top most ancestor of a given location.
the top most ancestor.
Updates a com.atomizesoftware.spin.models.Location
Updates a com.atomizesoftware.spin.models.Location
Also takes care of updating the closure table if needed.
to update
Updates the associations between a com.atomizesoftware.spin.models.Location and its com.atomizesoftware.spin.models.Groups.
Updates the associations between a com.atomizesoftware.spin.models.Location and its com.atomizesoftware.spin.models.Groups.
Receives a list representing the current groups that are to be associated with the specified location, removes all associations that aren't present in that list and adds those that are.
that we want to update the associations.
Updates a com.atomizesoftware.spin.models.LocationType
to update
Updates a com.atomizesoftware.spin.models.Shape
Updates a com.atomizesoftware.spin.models.Shape
to update
Implements functions related to com.atomizesoftware.spin.models.Location and its references: com.atomizesoftware.spin.models.LocationType and com.atomizesoftware.spin.models.Shape