Description Sets the default storage method and path for a McDBType in a McDBDatabase used by future store operations.
-
Return Type
-
A Boolean value.
-
Syntax
-
object.SetStorageMethod (sDatabase, sDatabaseType, eNewStorageMethod, sFSNewPath)
The SetStorageMethod Method syntax has these parts: |
| object | An expression evaluating to an object of type McDataManager. | | sDatabase | Required. A String value. The McDBDatabase.Name of database containing the McDBType to modify. | | sDatabaseType | Required. A String value. The McDBType.Name of database containing the McDBType to modify. | | eNewStorageMethod | Required. A mcDataNodeStorageMethods enumeration, as described in settings. The value specifing the the new storage mode for the specified object type in the specified database. | | sFSNewPath | Required. A String value. The fully qualified filesystem folder path to be used for a storage location of McDBNode Data content. This value is ignored unless mcdatnsm_StoreCopyFileName is specified for eNewStorageMethod. | Settings The settings for eNewStorageMethod are:
 | mcdatnsm_NotSpecified | 0 |
No Value. Use default value specified to the database type.
|
 | mcdatnsm_StoreFilepath | 65536 |
Store the filename of a file (file must be already saved)
|
 | mcdatnsm_StoreFileData | 131072 |
Save the data in the database
|
 | mcdatnsm_StoreCopyFileName | 262144 |
Save to a database managed file and store filename in database
|
 | mcdatnsm_All | 458752 |
Not a valid value. Use for bit mask of possible values.
|
Remarks These values are only used for future operations. Existing objects in the database are left unchanged.
## REMARKS Notes:
## REMARKS Permutations:
## REMARKS Path Method Description
## REMARKS Null FileRef Node.Data stores fully qualified path to the file
## REMARKS Null Data Node.Data stores the object (no file)
## REMARKS Path FileRef Node.Data stores a non-qualified file name (relative to Path and using a tempfile name)
## REMARKS Path Data Not a valid combination
## REMARKS
## REMARKS Change behaviour (conversion): CONVERSION IS NOT SUPPORTED YET! ALTHOUGH MODE SHOULD BE STORED ON THE NODE?
## REMARKS
## REMARKS D path D Method Modifies Description
## REMARKS Path -> NullPath FileRef->Data D Database Import (old files left)
## REMARKS NullPath -> Path Data->FileRef DF Database Export (database data replaced with file ref)
## REMARKS Path -> NullPath FileRef->FileRef D store fully qualified path in node?, and the next Children will Not use the database path
## REMARKS NullPath -> Path FileRef->FileRef DF Copy file from location specified in node to database Path
## REMARKS Path -> Path FileRef->FileRef DF Copy file old database path to new database Path (Children path is relative to database path)
|