Modifier and Type | Method and Description |
---|---|
static Location |
createInstance(FilePlanRepository fpRepository)
Creates a
Location instance that
is associated with the given FilePlanRepository . |
static Location |
createInstance(FilePlanRepository fpRepository,
java.lang.String idStr)
Creates a
Location instance that
is associated with the given FilePlanRepository . |
static Location |
fetchInstance(FilePlanRepository fpRepository,
java.lang.String locationId,
RMPropertyFilter filter)
Retrieves a
Location from a file plan repository. |
static Location |
getInstance(FilePlanRepository fpRepository,
java.lang.String locationId)
Constructs a placeholder instance of the specified Location object.
|
public static Location fetchInstance(FilePlanRepository fpRepository, java.lang.String locationId, RMPropertyFilter filter)
Location
from a file plan repository.fpRepository
- the FilePlanRepository
to retrieve from.
This entry cannot be null
.locationId
- the ID String
of the desired location.
This entry cannot be null
or blank.filter
- an optional RMPropertyFilter
defining
which properties to retrieve.
This entry can be null
.Location
instance.public static Location getInstance(FilePlanRepository fpRepository, java.lang.String locationId)
fpRepository
- the FilePlanRepository
that the location is associated with.
This entry cannot be null
.locationId
- the ID String
of the desired location.
This entry cannot be null
or blank.Location
instance.public static Location createInstance(FilePlanRepository fpRepository)
Location
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
.Location
instance.public static Location createInstance(FilePlanRepository fpRepository, java.lang.String idStr)
Location
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.Location
instance.© Copyright IBM Corp. 2010, 2013. All Rights Reserved.