Class DummyDataRecord
- java.lang.Object
-
- org.silverpeas.core.contribution.content.form.dummy.DummyDataRecord
-
- All Implemented Interfaces:
Serializable
,DataRecord
- Direct Known Subclasses:
DummyFileDataRecord
public class DummyDataRecord extends Object implements DataRecord
A dummy DataRecord .- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DummyDataRecord()
DummyDataRecord(Field field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Field
getField(int fieldIndex)
Returns the field at the index position in the record.Field
getField(String fieldName)
Returns the named field.Field
getField(String fieldName, int occurrence)
String[]
getFieldNames()
String
getId()
Returns the data record id.String
getLanguage()
ResourceReference
getResourceReference()
Map<String,String>
getValues(String language)
boolean
isNew()
Return true if this record has not been inserted in a RecordSet.void
setId(String externalId)
Gives an id to the data record.void
setLanguage(String language)
-
-
-
Constructor Detail
-
DummyDataRecord
public DummyDataRecord()
-
DummyDataRecord
public DummyDataRecord(Field field)
-
-
Method Detail
-
getId
public String getId()
Returns the data record id.- Specified by:
getId
in interfaceDataRecord
-
setId
public void setId(String externalId)
Gives an id to the data record.- Specified by:
setId
in interfaceDataRecord
-
isNew
public boolean isNew()
Return true if this record has not been inserted in a RecordSet.- Specified by:
isNew
in interfaceDataRecord
-
getField
public Field getField(String fieldName)
Returns the named field.- Specified by:
getField
in interfaceDataRecord
-
getField
public Field getField(String fieldName, int occurrence)
- Specified by:
getField
in interfaceDataRecord
-
getField
public Field getField(int fieldIndex)
Returns the field at the index position in the record.- Specified by:
getField
in interfaceDataRecord
-
getFieldNames
public String[] getFieldNames()
- Specified by:
getFieldNames
in interfaceDataRecord
-
getLanguage
public String getLanguage()
- Specified by:
getLanguage
in interfaceDataRecord
-
setLanguage
public void setLanguage(String language)
- Specified by:
setLanguage
in interfaceDataRecord
-
getValues
public Map<String,String> getValues(String language)
- Specified by:
getValues
in interfaceDataRecord
-
getResourceReference
public ResourceReference getResourceReference()
- Specified by:
getResourceReference
in interfaceDataRecord
-
-