Public Member Functions | |
virtual bool | Connect (CDbCacheClient2ConnectParameter ¶m, ErrorInfoPtr &outError)=0 |
virtual bool | Connect (CDbCacheClient2ConnectParameter ¶m)=0 |
virtual void | Disconnect ()=0 |
virtual void | RequestExclusiveLoadData (String rootTableName, String fieldName, CVariant cmpValue, intptr_t tag, const ByteArray &message=ByteArray())=0 |
virtual void | RequestExclusiveLoadDataByGuid (String rootTableName, Guid rootUUID, intptr_t tag, const ByteArray &message=ByteArray())=0 |
virtual void | RequestExclusiveLoadDataByQuery (String rootTableName, String queryString, intptr_t tag, const ByteArray &message=ByteArray())=0 |
virtual void | RequestExclusiveLoadNewData (String rootTableName, CPropNodePtr addData, intptr_t tag, bool transaction=false)=0 |
virtual bool | RequestAddData (Guid rootUUID, Guid ownerUUID, CPropNodePtr addData, intptr_t tag)=0 |
virtual bool | RequestUpdateData (CPropNodePtr updateData, intptr_t tag)=0 |
virtual bool | RequestRemoveData (Guid rootUUID, Guid removeUUID, intptr_t tag)=0 |
virtual bool | RequestRecursiveUpdateData (CLoadedData2Ptr loadedData, intptr_t tag, bool transactional=false)=0 |
virtual bool | BlockedAddData (Guid rootUUID, Guid ownerUUID, CPropNodePtr addData, uint32_t timeOutTime=30000, ErrorInfoPtr outError=ErrorInfoPtr())=0 |
virtual bool | BlockedUpdateData (CPropNodePtr updateData, uint32_t timeOutTime=30000, ErrorInfoPtr outError=ErrorInfoPtr())=0 |
virtual bool | BlockedRemoveData (Guid rootUUID, Guid removeUUID, uint32_t timeOutTime=30000, ErrorInfoPtr outError=ErrorInfoPtr())=0 |
virtual bool | BlockedRecursiveUpdateData (CLoadedData2Ptr loadedData, bool transactional=false, uint32_t timeOutTime=30000, ErrorInfoPtr outError=ErrorInfoPtr())=0 |
virtual bool | UnilateralAddData (Guid rootUUID, Guid ownerUUID, CPropNodePtr addData, bool writeDbmsImmediately=true)=0 |
virtual bool | UnilateralUpdateData (CPropNodePtr updateData, bool writeDbmsImmediately=true)=0 |
virtual bool | UnilateralMoveData (String rootTableName, Guid rootUUID, Guid nodeUUID, Guid destRootUUID, Guid destNodeUUID, bool writeDbmsImmediately=true)=0 |
virtual bool | UnilateralRemoveData (Guid rootUUID, Guid removeUUID, bool writeDbmsImmediately=true)=0 |
virtual bool | UnilateralRecursiveUpdateData (CLoadedData2Ptr loadedData, bool transactional=false, bool writeDbmsImmediately=true)=0 |
virtual bool | UnloadDataBySessionGuid (Guid sessionGuid, const ByteArray &messageToNextLoader=ByteArray())=0 |
virtual void | DenyUnloadData (Guid sessionGuid, const ByteArray &messageToRequester=ByteArray())=0 |
virtual void | ForceCompleteUnload (Guid rootUUID)=0 |
virtual void | RequestNonExclusiveSnapshotData (String rootTableName, String fieldName, CVariant cmpValue, intptr_t tag)=0 |
virtual void | RequestNonExclusiveSnapshotDataByGuid (String rootTableName, Guid rootUUID, intptr_t tag)=0 |
virtual void | RequestNonExclusiveSnapshotDataByQuery (String rootTableName, String searchString, intptr_t tag)=0 |
virtual void | RequestNonExclusiveAddData (String rootTableName, Guid rootUUID, Guid ownerUUID, CPropNodePtr addData, intptr_t tag, const ByteArray &messageToLoader=ByteArray())=0 |
virtual void | RequestNonExclusiveRemoveData (String rootTableName, Guid rootUUID, Guid removeUUID, intptr_t tag, const ByteArray &messageToLoader=ByteArray())=0 |
virtual void | RequestNonExclusiveSetValueIf (String rootTableName, Guid rootUUID, Guid nodeUUID, String propertyName, CVariant newValue, ValueCompareType compareType, CVariant compareValue, intptr_t tag, const ByteArray &messageToLoader=ByteArray())=0 |
virtual void | RequestNonExclusiveModifyValue (String rootTableName, Guid rootUUID, Guid nodeUUID, String propertyName, ValueOperType operType, CVariant value, intptr_t tag, const ByteArray &messageToLoader=ByteArray())=0 |
virtual bool | RequestIsolateData (Guid rootUUID, String rootTableName, Guid &outSessionGuid)=0 |
virtual bool | RequestDeisolateData (Guid rootUUID, String filterText, Guid &outSessionGuid)=0 |
virtual CLoadedData2Ptr | GetClonedLoadedDataBySessionGuid (Guid sessionGuid)=0 |
virtual CLoadedData2Ptr | GetClonedLoadedDataByUUID (Guid rootUUID)=0 |
virtual HostID | GetLocalHostID ()=0 |
virtual bool | IsLoggedOn ()=0 |
Static Public Member Functions | |
static PROUDSRV_API CDbCacheClient2 * | New () |
|
pure virtual |
Block type method.
rootUUID | rootUUID of additional data |
ownerUUID | ownerUUID of additional data |
addData | additional data |
timeOutTime | Waiting time to prevent unlimited roop. default 30sec |
outError | Error type |
|
pure virtual |
Instead BlockedUpdateData(CPropNodePtr,...), it process add, update, remove, etc to search all under node that LoadedData owned.
loadedData | LoadedData to save changes |
transactional | Do transaction as request whether or not |
timeOutTime | Waiting time to prevent unlimited roop. default 30sec |
outError | Error type |
|
pure virtual |
Refer to BlockedNonCacheAddData
rootUUID | rootUUID of the data to be added |
removeUUID | to be deleted |
The | time waiting for the return to avoid falling into an infinite loop. Default is 30 seconds. |
outError | type |
|
pure virtual |
For a detailed explanation, refer to BlockedNonCacheAddData
updateData | Node to be updated. |
timeOutTime | The time waiting for the return to avoid falling into an infinite loop. Default is 30 seconds. |
outError | Error type |
|
pure virtual |
Attempts to connect to DB cache server2
|
pure virtual |
It does not admit Unload
sessionGuid | It is a session Guid of the exclusive data. |
messageToRequester | It is a user random message that is sent to the exclusive right requester. The requester may check the relevant message through args.m_loadResults[index].m_message of IDbCacheClientDelegate2.OnExclusiveLoadDataFailed. |
|
pure virtual |
Disconnect from DB cache server2 and sweep all data
|
pure virtual |
Data tree is completely uploaded from DB cache. It must be uploaded in DB cache client and DB cache server.
If you want to deal with data tree that DB cache is using by direct DB access, you need to use DB directly has access to data that DB cache deals with function instead of this function.
rootUUID | this is root UUID of data tree that is going to be unloaded. |
|
pure virtual |
Gets the latest status value of data
sessionGuid | Session guid obtained from RequestExclusiveLoadData or RequestExclusiveLoadNewData |
|
pure virtual |
TODO:translate needed. It’s the same function as the above GetClonedLoadedDataBySessionGuid, but it is searched with rootUUID. Check out GetClonedLoadedDataBySessionGuid. For a detailed explanation, refer to GetClonedLoadedDataBySessionGuid data object. Since this is a copy, it is not updated in the real DB even though you transform the value of the obtained object. If you want to update it in the actual DB, you have to transmit the object through the UpdateData function.
|
pure virtual |
Obtain HostID of this client
|
pure virtual |
Find out DB cache client2 has got authentication from DB cache server2 whether or not.
|
static |
Creates DB cache client2 instance
|
pure virtual |
Request response type method
rootUUID | rootUUID of additional data |
ownerUUID | ownerUUID of additional data |
addData | additional data |
tag | Verifying value about request that user need to put in. When you callback, it go throuth m_tag in CCallbackArg. |
|
pure virtual |
DB directly has access to data that DB cache deals with function. Request for deisolating data tree that has been isolated.
If deisolating request is successful, DB cache will be ready to be loaded & saved.
rootUUID | It is root UUID of data tree that is going to be deisolated. | |
rootTableName | It is root table name of data tree that is going to be deisolated. | |
[out] | outSessionGuid | session identifier. |
|
pure virtual |
Exclusive Load request method.
rootTbaleName | root table name of additional data |
fieldName | fieldName that will search |
cmpValue | coparable value |
tag | It is a user random data that returns when IDbCacheClientDelegate2.OnExclusiveLoadDataComplete is responded. This value returns through parameter args.m_tag. |
message | It is a user random data that is sent to the existing sole owner in case of requesting exclusive data (loaded exclusively). This message is sent to the existing sole owner through parameter args.m_loadResults[index].m_message of IDbCacheClientDelegate2.OnDataUnloadRequested. |
|
pure virtual |
Exclusive Load it is a request method.
rootTableName | it is a root table name of data that needs to be added. |
rootUUID | it is rootUUID that needs to be found. |
tag | It is a user random data that returns when IDbCacheClientDelegate2.OnExclusiveLoadDataComplete is responded. This value returns through parameter args.m_tag. |
message | It is a user random data that is sent to the existing sole owner in case of requesting exclusive data (loaded exclusively). This message is sent to the existing sole owner through parameter args.m_loadResults[index].m_message of IDbCacheClientDelegate2.OnDataUnloadRequested. |
|
pure virtual |
Exclusive Load it is a request method.
rootTableName | it is a root table name of data that needs to be added. |
queryString | send the query like "select RootUUID from %s where %s" to find RootUUID. The first parameter is rootTableName and it is a string that is going to be inserted into a field after where. It must be written in accordance with SQL syntax. |
tag | It is a user random data that returns when IDbCacheClientDelegate2.OnExclusiveLoadDataComplete is responded. This value returns through parameter args.m_tag. |
message | It is a user random data that is sent to the existing sole owner in case of requesting exclusive data (loaded exclusively). This message is sent to the existing sole owner through parameter args.m_loadResults[index].m_message of IDbCacheClientDelegate2.OnDataUnloadRequested. |
|
pure virtual |
Function use for add data to RootTable and use it immediately.
rootTbaleName | root table name of additional data |
addData | Additional data |
tag | It is a user random data that returns when IDbCacheClientDelegate2.OnExclusiveLoadDataComplete is responded. This value returns through parameter args.m_tag. |
transaction | Do transaction as request whether or not |
|
pure virtual |
DB directly has access to data that DB cache deals with function. It requests access to data tree that DB cache is using by direct DB access. DB cache unloads data tree that is the process of caching for user’s safe access.
If isolate request is successful, DB cache will never have access to data tree. After calling this function, a user has access to data directly. Once works are done, a user must inform DB cache by calling RequestDeisolateData that works have been done.
rootUUID | It is root UUID of data tree that is going to be isolated. | |
rootTableName | It is root table name of data tree that is going to be isolated. | |
[out] | outSessionGuid | session identifier. |
|
pure virtual |
Accessing non-exclusive data function. Callback:
Exclusive DB Cache Client Callback:
rootTableName | it is name of root table. |
rootUUID | it is UUID of root. |
ownerUUID | it is UUID of owner. |
addData | it is data of node that is going to be added. |
tag | Verifying value about request that user need to put in. When you callback, it go throuth m_tag in CCallbackArg. |
messageToLoader | It is a user random message that is sent to a sole owner of the relevant data. The sole owner has this through args.m_loadResults[index].m_message of IDbCacheClientDelegate2::OnSomeoneAddData. |
|
pure virtual |
Accessing non-exclusive data function.
Callback:
Exclusive DB Cache Client Callback:
rootTableName | it is name of root table. |
rootUUID | it is UUID of root. |
nodeUUID | it is UUID of node. |
propertyName | it is name of attribute that sets values. |
operType | it is the type of calculation. |
value | it is value that is going to be applied. |
tag | Verifying value about request that user need to put in. When you callback, it go throuth m_tag in CCallbackArg. |
messageToLoader | It is a user random message that is sent to a sole owner of the relevant data. The sole owner has this through args.m_loadResults[index].m_message of IDbCacheClientDelegate2::OnSomeoneAddData. |
|
pure virtual |
Accessing non-exclusive data function.
Callback:
Exclusive DB Cache Client Callback:
rootTableName | it is name of root table. |
rootUUID | it is UUID of root. |
removeUUID | it is UUID that is going to be eliminated. |
tag | Verifying value about request that user need to put in. When you callback, it go throuth m_tag in CCallbackArg. |
messageToLoader | It is a user random message that is sent to a sole owner of the relevant data. The sole owner has this through args.m_loadResults[index].m_message of IDbCacheClientDelegate2::OnSomeoneAddData. |
|
pure virtual |
Accessing non-exclusive data function. It is changed to newValue if the conditions are satisfied, after comparing the existing value that has been loaded at DBCacheServer and compareValue.
Callback:
Exclusive DB Cache Client Callback:
rootTableName | it is name of root. |
rootUUID | it is UUID of root. |
nodeUUID | it is UUID of node. |
propertyName | it is name of attribute that sets values. |
newValue | It is a value that will be substituted in case relation condition is satisfied. |
compareType | it is the type of relation condition. |
compareValue | It is a value that will be compared with the existing value. |
tag | Verifying value about request that user need to put in. When you callback, it go throuth m_tag in CCallbackArg. |
messageToLoader | It is a user random message that is sent to a sole owner of the relevant data. The sole owner has this through args.m_loadResults[index].m_message of IDbCacheClientDelegate2::OnSomeoneAddData. |
|
pure virtual |
Gets the latest status value as non-exclusively. Accessing non-exclusive data function.
rootTableName | Name of root table |
fieldName | |
cmpValue | |
tag | Verifying value about request that user need to put in. When you callback, it go throuth m_tag in CCallbackArg. |
|
pure virtual |
Gets the latest status value as non-exclusively. Accessing non-exclusive data function.
rootTableName | Name of root table |
rootUUID | |
tag | Verifying value about request that user need to put in. When you callback, it go throuth m_tag in CCallbackArg. |
|
pure virtual |
Gets the latest status value as non-exclusively. Accessing non-exclusive data function. Callback:
rootTableName | Name of root table |
searchString | Query for data searching( For after "where") |
tag | Verifying value about request that user need to put in. When you callback, it go throuth m_tag in CCallbackArg. |
|
pure virtual |
Instead RequestUpdateData(CPropNodePtr,Guid&), it process add, update, remove, etc to search all under node that LoadedData owned.
loadedData | LoadedData to save changes |
tag | Verifying value about request that user need to put in. When you callback, it go throuth m_tag in CCallbackArg. |
transactional | Do transaction as request whether or not |
|
pure virtual |
TODO:translate needed. Refer to RequestAddData
|
pure virtual |
Refer to RequestAddData
updateData | |
tag |
|
pure virtual |
Unilateral method
rootUUID | rootUUID of additional data |
ownerUUID | ownerUUID of additional data |
addData | additional data |
writeDbmsImmediately | If it is true, it write information of added item to DBMS as soon as possible. |
|
pure virtual |
Unilateral method
rootUUID | rootUUID of move node |
ownerUUID | ownerUUID of move node |
destRootUUID | destNodeUUID of attach node |
writeDbmsImmediately | If it is true, it write information of added item to DBMS as soon as possible. |
|
pure virtual |
TODO:translate needed. For a detailed explanation, refer to UnilateralAddData
loadedData | Data Loaded data |
transactional | Whether to use the transaction feature |
writeDbmsImmediately | If true, execute record as fast as possible in DBMS. |
|
pure virtual |
TODO:translate needed. For a detailed explanation, refer to UnilateralAddData
rootUUID | UUID of the root |
removeUUID | UUID to be deleted |
writeDbmsImmediately | If true, execute record as fast as possible in DBMS. |
|
pure virtual |
TODO:translate needed. For a detailed explanation, refer to UnilateralAddData
update | Node data to be updated |
writeDbmsImmediately | If true, execute record as fast as possible in DBMS. |
|
pure virtual |
sessionGuid | It is a session Guid of data that needs to be unloaded. |
messageToNextLoader | It is a user random message that is sent to the exclusive right requester. The requester may check the relevant message through args.m_loadResults[index].m_message of IDbCacheClientDelegate2.OnExclusiveLoadDataSuccess. |