Creates a new instance of the
ObjectStore class based on the specified
parameters. Before calling the
Save method, you must also set additional
properties for the object store. DisplayName, SymbolicName, JNDIDataSource,
and JNDIXADataSource are required at a minimum. Use property
accessor methods (for example,
Set_DisplayName) to set the property
values. The
ObjectStore object is created when the returned instance is saved.
This form of the CreateInstance method allows you to submit a custom schema script that
the server will use during object store creation. Typical modifications to the script include the
distribution of the various tables, indexes, and Large Object (LOB) columns across different tablespaces.
However, note that making changes to the names and structures of the tables, indexes, and columns is not
supported; such changes will lead to system failures.
Note: Provide values for the admins and users parameters.
Otherwise, the Content Engine will derive default values based on permissions on the P8 Domain, and these values might not be correct for your environment.
See Object store access rights.
Namespace:
FileNet.Api.Core
Assembly:
FileNet.Api (in FileNet.Api.dll)
Visual Basic (Declaration) |
---|
Public Shared Function CreateInstance ( _
domain As IDomain, _
admins As String(), _
users As String(), _
schemaScript As String _
) As IObjectStore |
C# |
---|
public static IObjectStore CreateInstance(
IDomain domain,
string[] admins,
string[] users,
string schemaScript
) |
Visual C++ |
---|
public:
static IObjectStore^ CreateInstance(
IDomain^ domain,
array<String^>^ admins,
array<String^>^ users,
String^ schemaScript
) |
JavaScript |
---|
FileNet.Api.Core.ObjectStore.createInstance = function(domain, admins, users, schemaScript); |
Parameters
- domain
- Type: FileNet.Api.Core..::.IDomain
The FileNet P8 domain for which this instance is scoped.
- admins
- Type: array<
System..::.String
>[]()[]
An array of Strings representing the administrative
users and/or groups who can access this object store; for example, "Domain Admins".
- users
- Type: array<
System..::.String
>[]()[]
An array of Strings representing the security principal
names of the users and/or groups who can access this object store; for example,
"Domain Users".
- schemaScript
- Type: System..::.String
A String containing a customized schema script
specifying the object store's database schema. This script should be derived from
the appropriate Domain.ObjectStoreSchemaXXX property, where XXX is the
database type (DB2, MSSQL, or Oracle), and must contain the correct
version number information.
Return Value
An
ObjectStore.