ContainerParent
/**
* @brief Describe a file belonged to a certain folder.
*/
Inherit from ContainerParentDO
Primary key: child_hash_id: int
schema ContainerParent extends ContainerParentDO {
@primary child_hash_id: int,
parent_hash_id: int
}
ContainerParent::getParentHashId
/**
* @brief gets the parent hash id of this element.
* @return int
*/
- Parameter
self
:ContainerParent
- Return
int
pub fn getParentHashId(self: ContainerParent) -> int;
ContainerParent::__all__
Data constraint method.
- Parameter
db
:JavaDB
- Return
*ContainerParent
pub fn __all__(db: JavaDB) -> *ContainerParent;
ContainerParent::getBelongedFolder
/**
* @brief gets the folder which contains the file, if any.
* @return Folder
*/
- Parameter
self
:ContainerParent
- Return
Folder
pub fn getBelongedFolder(self: ContainerParent) -> Folder;