@ParametersAreNonnullByDefault public class BootstrapOfBizPropertyEntryStore extends Object implements OfBizPropertyEntryStore
OfBizPropertyEntryStore.PropertyEntry| Constructor and Description |
|---|
BootstrapOfBizPropertyEntryStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(String entityName,
long entityId,
String propertyKey)
Queries whether or not the specified property exists
|
OfBizPropertyEntryStore.PropertyEntry |
getEntry(String entityName,
long entityId,
String propertyKey)
Retrieve the type and value of the specified property.
|
Collection<String> |
getKeys(String entityName,
long entityId)
Retrieve all keys that are stored in the given property set.
|
Collection<String> |
getKeys(String entityName,
long entityId,
int type)
Retrieve all keys that are stored in the given property set and have the specified value type.
|
int |
getType(String entityName,
long entityId,
String propertyKey)
Queries the type of the specified property, if it exists.
|
void |
removeEntry(String entityName,
long entityId,
String propertyKey)
Remove a specific property from a property set.
|
void |
removePropertySet(String entityName,
long entityId)
Remove all properties that belong to a property set.
|
void |
setEntry(String entityName,
long entityId,
String propertyKey,
int type,
Object value)
Stores a new value for the specified property.
|
@Nonnull public Collection<String> getKeys(String entityName, long entityId)
OfBizPropertyEntryStoregetKeys in interface OfBizPropertyEntryStoreentityName - the entity name of the property set's ownerentityId - the entity ID of the property set's owner@Nonnull public Collection<String> getKeys(String entityName, long entityId, int type)
OfBizPropertyEntryStoregetKeys in interface OfBizPropertyEntryStoreentityName - the entity name of the property set's ownerentityId - the entity ID of the property set's ownertype - the value type, as defined by the value constants in the PropertySet interface,
that the keys must have to be returnedpublic boolean exists(String entityName, long entityId, String propertyKey)
OfBizPropertyEntryStoreexists in interface OfBizPropertyEntryStoreentityName - the entity name of the property set's ownerentityId - the entity ID of the property set's ownerpropertyKey - the name of the property to checkpublic int getType(String entityName, long entityId, String propertyKey)
OfBizPropertyEntryStoregetType in interface OfBizPropertyEntryStoreentityName - the entity name of the property set's ownerentityId - the entity ID of the property set's ownerpropertyKey - the name of the property for which to retrieve the type0 if the property does not exist@Nullable public OfBizPropertyEntryStore.PropertyEntry getEntry(String entityName, long entityId, String propertyKey)
OfBizPropertyEntryStoregetEntry in interface OfBizPropertyEntryStoreentityName - the entity name of the property set's ownerentityId - the entity ID of the property set's ownerpropertyKey - the name of the property to loadnull if the property does not exist. Note that even if it does "exist",
the value can itself be null.public void setEntry(String entityName, long entityId, String propertyKey, int type, Object value)
OfBizPropertyEntryStoresetEntry in interface OfBizPropertyEntryStoreentityName - the entity name of the property set's ownerentityId - the entity ID of the property set's ownerpropertyKey - the name of the property to storetype - the value type that is to be stored, as defined by the value constants in the
PropertySet interface.value - the value to be stored. WARNINGSpecifying null may be tolerated
for specific types, but it is generally not supported and can possibly have inconsistent
results. Use OfBizPropertyEntryStore.removeEntry(String, long, String), instead.public void removeEntry(String entityName, long entityId, String propertyKey)
OfBizPropertyEntryStoreremoveEntry in interface OfBizPropertyEntryStoreentityName - the entity name of the property set's ownerentityId - the entity ID of the property set's ownerpropertyKey - the name of the property to removepublic void removePropertySet(String entityName, long entityId)
OfBizPropertyEntryStoreremovePropertySet in interface OfBizPropertyEntryStoreentityName - the entity name of the property set's ownerentityId - the entity ID of the property set's ownerCopyright © 2002-2021 Atlassian. All Rights Reserved.