java.lang.Object | |
↳ | com.atlassian.jira.appconsistency.db.LockedDatabaseOfBizDelegator |
Copyright All Rights Reserved. Created: christo 15/09/2006 12:19:02
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.ofbiz.OfBizDelegator
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This can be used to perform an update on the entityName of all the rows
identified by AND criteria of the fields specified by the criteria map.
| |||||||||||
Finds GenericValue records by the specified field value.
| |||||||||||
Finds GenericValue records by the specified field value.
| |||||||||||
Find a Generic Entity by its numeric ID.
| |||||||||||
Find a Generic Entity by its single numeric Primary Key.
| |||||||||||
Returns a new OfBizListIterator.
| |||||||||||
Ensure that there is a view-entity defined in entitymodel.xml (and entitygroup.xml) for the entity
you are calling this method with, and that the view-entity is named correctly!
The view-entity must be named the name of the normal entity with 'Count' appended.
| |||||||||||
Returns a model reader that can be used to retrieve all the different entitynames configured in the
entitymodel.
| |||||||||||
Creates an Entity in the form of a GenericValue without persisting it.
| |||||||||||
Creates an Entity in the form of a GenericValue without persisting it.
| |||||||||||
Refreshes the sequencer that is used to retrieve unique IDs in the database.
| |||||||||||
Remove the given entity from the DB.
| |||||||||||
Remove all the entities related to the passed generic value via the passed relationship name.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.ofbiz.OfBizDelegator
|
This can be used to perform an update on the entityName of all the rows identified by AND criteria of the fields specified by the criteria map.
entityName | table na,e |
---|---|
updateColumns | map of update to - update from columns |
criteria | map of column names and their values that will create WHERE clause |
DataAccessException |
---|
Finds GenericValue records by the specified field value.
entityName | The Name of the Entity as defined in the entity XML file |
---|---|
fieldName | The field to do filtering by. |
fieldValue | The desired value for the filtering field. |
orderBy | Single field to order by. |
Finds GenericValue records by the specified field value.
entityName | The Name of the Entity as defined in the entity XML file |
---|---|
fieldName | The field to do filtering by. |
fieldValue | The desired value for the filtering field. |
Find a Generic Entity by its numeric ID.
This method is a synonym for findByPrimaryKey(String, Long)
entityName | The Name of the Entity as defined in the entity XML file |
---|---|
id | The numeric "id" field value that is the primary key of this entity. |
DataAccessException |
---|
DataAccessException |
---|
Find a Generic Entity by its single numeric Primary Key.
This method is a convenience for entities with a numeric primary key on single field called "id". This is the case for most JIRA entities.
s | The Name of the Entity as defined in the entity XML file |
---|---|
id | The numeric "id" field value that is the primary key of this entity. |
Returns a new OfBizListIterator.
IMPORTANT: the returned iterator needs to be propery closed in afinally
block to avoid connection
leaks.
Ensure that there is a view-entity defined in entitymodel.xml (and entitygroup.xml) for the entity you are calling this method with, and that the view-entity is named correctly! The view-entity must be named the name of the normal entity with 'Count' appended. For example for the 'Issue' entity the view-entity must be called 'IssueCount'. Otherwise an exception will be thrown.
entityName | entity name |
---|
DataAccessException |
---|
Returns a model reader that can be used to retrieve all the different entitynames configured in the entitymodel.
Creates an Entity in the form of a GenericValue without persisting it.
entityName | the entity name. |
---|---|
fields | initial field values |
Creates an Entity in the form of a GenericValue without persisting it.
entity | the entity name. |
---|
Refreshes the sequencer that is used to retrieve unique IDs in the database.
Remove the given entity from the DB.
entityName | the entity type (ie TABLE) |
---|---|
id | the id of the row to delete. |
Remove all the entities related to the passed generic value via the passed relationship name.
relationName | the name of the relationship. |
---|---|
schemeGv | the gv at the start of the relationship. |