|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.form.record.GenericRecordSet
public class GenericRecordSet
The GenericRecordSet manage DataRecord built on a RecordTemplate and saved by the GenericRecordSetManager.
DataRecord
,
Serialized FormConstructor Summary | |
---|---|
GenericRecordSet(IdentifiedRecordTemplate recordTemplate)
The generic record set is built upon a RecordTemplate. |
Method Summary | |
---|---|
void |
clone(String originalExternalId,
String originalComponentId,
String cloneExternalId,
String cloneComponentId,
Map<String,String> attachmentIds)
Clones the given DataRecord. |
void |
copy(ForeignPK fromPK,
ForeignPK toPK,
RecordTemplate toRecordTemplate,
Map<String,String> oldAndNewFileIds)
|
void |
delete(DataRecord record)
Deletes the given DataRecord and set to null its id. |
void |
delete(String objectId)
|
DataRecord |
getEmptyRecord()
Returns an empty DataRecord built on the RecordTemplate. |
protected GenericRecordSetManager |
getGenericRecordSetManager()
Gets an instance of a GenericRecordSet objects manager. |
DataRecord |
getRecord(String objectId)
Returns the DataRecord with the given id. |
DataRecord |
getRecord(String objectId,
String language)
Returns the DataRecord with the given id. |
RecordTemplate |
getRecordTemplate()
Returns the RecordTemplate shared by all the DataRecord of this RecordSet. |
void |
indexRecord(String recordId,
String formName,
FullIndexEntry indexEntry)
Index the given DataRecord into the indexEntry. formName looks like allFields (ie template filename allFields.xml without extension) |
void |
merge(String fromExternalId,
String fromComponentId,
String toExternalId,
String toComponentId,
Map<String,String> attachmentIds)
|
void |
move(ForeignPK fromPK,
ForeignPK toPK,
RecordTemplate toRecordTemplate)
|
void |
save(DataRecord record)
Save the given DataRecord. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericRecordSet(IdentifiedRecordTemplate recordTemplate)
Method Detail |
---|
public RecordTemplate getRecordTemplate()
getRecordTemplate
in interface RecordSet
public DataRecord getEmptyRecord() throws FormException
getEmptyRecord
in interface RecordSet
FormException
public DataRecord getRecord(String objectId) throws FormException
getRecord
in interface RecordSet
objectId
-
FormException
- when the id is unknown.public DataRecord getRecord(String objectId, String language) throws FormException
getRecord
in interface RecordSet
objectId
- language
-
FormException
- when the id is unknown.public void save(DataRecord record) throws FormException
save
in interface RecordSet
record
-
FormException
- when the record doesn't have the required , when the record has an
unknown id, when the insert or update fail.public void indexRecord(String recordId, String formName, FullIndexEntry indexEntry) throws FormException
RecordSet
indexRecord
in interface RecordSet
FormException
public void delete(DataRecord record) throws FormException
delete
in interface RecordSet
record
-
FormException
- when the record doesn't have the required template., when the record has
an unknown id, when the delete fail.public void delete(String objectId) throws FormException
delete
in interface RecordSet
FormException
public void move(ForeignPK fromPK, ForeignPK toPK, RecordTemplate toRecordTemplate) throws FormException
move
in interface RecordSet
FormException
public void copy(ForeignPK fromPK, ForeignPK toPK, RecordTemplate toRecordTemplate, Map<String,String> oldAndNewFileIds) throws FormException
copy
in interface RecordSet
FormException
public void clone(String originalExternalId, String originalComponentId, String cloneExternalId, String cloneComponentId, Map<String,String> attachmentIds) throws FormException
RecordSet
clone
in interface RecordSet
FormException
public void merge(String fromExternalId, String fromComponentId, String toExternalId, String toComponentId, Map<String,String> attachmentIds) throws FormException
merge
in interface RecordSet
FormException
protected GenericRecordSetManager getGenericRecordSetManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |