File
����Դ��
@author Michael Zhou
FileResources
are files or directories on local filesystem. The files and directories are served through URI:s to the client terminal and thus must be registered to an URI context before they can be used. The resource is automatically registered to the application when it is created.
@author Vaadin Ltd.
@since 3.0
FileResources
are files or directories on local filesystem. The files and directories are served through URI:s to the client terminal and thus must be registered to an URI context before they can be used. The resource is automatically registered to the application when it is created.
@author IT Mill Ltd.
@version 6.7.1
@since 3.0
A file resource is identified by the pair (name,generationId). Name is an arbitrary String supplied by the caller. GenerationId is a non-repeating sequence number constructed by the database. Within a database a (name,generationId) pair uniquely identifies a version of a file resource for all time. Newer generation numbers reflect newer versions of the file.
A database supports the concept of a designated current version of a fileResource. The management of the current version is transactional. The following rules apply
For the benefit of replication, a database optionally retains historic versions of stored files. These old versions are useful when processing old transactions in the stage.
IntegrationEntity
. The resource is file-like in that it can be read from and written to (including use in serialization and deserialization), and deleted, but it does not necessarily have to be stored in a file on disk. The data stored in a FileResource
is always characters. If binary data is to be stored in a FileResource
it must first be converted to characters, e.g. by Base-64 encoding the data. A FileResource
has a defined lifespan, that coincides with either the life of the corresponding IntegrationEntity
, meaning that the resource will be deleted when the entity is deleted from the project, or with the life of the current client session, meaning that the resource will be deleted when the client is closed.
@author Torgil Zethson
@since 2.1.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|