|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.silverpeas.form.record.IdentifiedRecordTemplate
public class IdentifiedRecordTemplate
An Identified RecordTemplate adds a database id and an external id to a RecordTemplate.
Constructor Summary | |
---|---|
IdentifiedRecordTemplate(RecordTemplate wrappedTemplate)
A IdentifiedRecordTemplate is built upon a wrapped template. |
Method Summary | |
---|---|
boolean |
checkDataRecord(DataRecord record)
Returns true if the data record is built on this template and all the constraints are ok. |
DataRecord |
getEmptyRecord()
Returns an empty DataRecord built on this template. |
String |
getExternalId()
Returns the external template id. |
int |
getFieldIndex(String fieldName)
Returns the field index of the named field. |
String[] |
getFieldNames()
Returns all the field names of the DataRecord built on this template. |
FieldTemplate |
getFieldTemplate(String fieldName)
Returns the FieldTemplate of the named field. |
FieldTemplate[] |
getFieldTemplates()
Returns all the field templates. |
String |
getInstanceId()
|
int |
getInternalId()
Gets the internal id. |
String |
getTemplateName()
|
RecordTemplate |
getWrappedTemplate()
Returns the wrapped template. |
boolean |
isEncrypted()
|
void |
setEncrypted(boolean encrypted)
|
void |
setExternalId(String externalId)
Gives an external id to the template. |
void |
setInternalId(int id)
Sets the internal id. |
void |
setTemplateName(String templateName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IdentifiedRecordTemplate(RecordTemplate wrappedTemplate)
Method Detail |
---|
public RecordTemplate getWrappedTemplate()
public String[] getFieldNames()
getFieldNames
in interface RecordTemplate
public FieldTemplate[] getFieldTemplates() throws FormException
getFieldTemplates
in interface RecordTemplate
FormException
public FieldTemplate getFieldTemplate(String fieldName) throws FormException
getFieldTemplate
in interface RecordTemplate
FormException
public int getFieldIndex(String fieldName) throws FormException
getFieldIndex
in interface RecordTemplate
FormException
public DataRecord getEmptyRecord() throws FormException
getEmptyRecord
in interface RecordTemplate
FormException
public boolean checkDataRecord(DataRecord record)
checkDataRecord
in interface RecordTemplate
public String getExternalId()
public void setExternalId(String externalId)
public int getInternalId()
public void setInternalId(int id)
public String getTemplateName()
public void setTemplateName(String templateName)
public void setEncrypted(boolean encrypted)
public boolean isEncrypted()
public String getInstanceId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |