public static class RMFactory.RecordType
extends java.lang.Object
RecordType
instances.Modifier and Type | Method and Description |
---|---|
static RecordType |
createInstance(FilePlanRepository fpRepository)
Creates a
RecordType instance that
is associated with the given FilePlanRepository . |
static RecordType |
createInstance(FilePlanRepository fpRepository,
java.lang.String idStr)
Creates a
RecordType instance that
is associated with the given FilePlanRepository . |
static RecordType |
fetchInstance(FilePlanRepository fpRepository,
java.lang.String recordTypeId,
RMPropertyFilter filter)
Retrieves a
RecordType from a file plan repository. |
static RecordType |
getInstance(FilePlanRepository fpRepository,
java.lang.String recordTypeId)
Constructs a placeholder instance of the specified record type object.
|
public static RecordType fetchInstance(FilePlanRepository fpRepository, java.lang.String recordTypeId, RMPropertyFilter filter)
RecordType
from a file plan repository.fpRepository
- the FilePlanRepository
to retrieve from.
This entry cannot be null
.recordTypeId
- ID String
of the desired record type.
This entry cannot be null
or blank.filter
- An optional RMPropertyFilter
defining
which properties to retrieve.
This entry can be null
.RecordType
instance.public static RecordType getInstance(FilePlanRepository fpRepository, java.lang.String recordTypeId)
fpRepository
- the FilePlanRepository
that the record type is associated with.
This entry cannot be null
.recordTypeId
- ID String
of the desired record type.
This entry cannot be null
or blank.RecordType
instance.public static RecordType createInstance(FilePlanRepository fpRepository)
RecordType
instance that
is associated with the given FilePlanRepository
.
This new instance can then be further defined using its RMProperties
collection and saved using its save
method.
For this createInstance
method version, an Id value will be
automatically generated for the new instance.
fpRepository
- the FilePlanRepository
to associate
the new instance with and eventually save to.
This entry cannot be null
.RecordType
instance.public static RecordType createInstance(FilePlanRepository fpRepository, java.lang.String idStr)
RecordType
instance that
is associated with the given FilePlanRepository
.
This new instance can then be further defined using its RMProperties
collection and saved using its save
method.
This createInstance
method version allows the caller to optionally
specify an Id value to assign the the new instance.
fpRepository
- the FilePlanRepository
to associate
the new instance with and eventually save to.
This entry cannot be null
.idStr
- a String
Id value to be assigned to the new instance.
This parameter can be null
in which case an Id value
will be automatically generated for the new instance.RecordType
instance.© Copyright IBM Corp. 2010, 2013. All Rights Reserved.