|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.BaseOpenmrsObject org.openmrs.report.ReportSchemaXml
@Deprecated public class ReportSchemaXml
This represents a very simplified saving technique for ReportSchemas. The "xml" attribute is assumed to be a serialized ReportSchema object.
Constructor Summary | |
---|---|
ReportSchemaXml()
Deprecated. Default constructor |
|
ReportSchemaXml(java.lang.Integer reportschemaId)
Deprecated. Convenience constructor taking in a primary key report schema id |
|
ReportSchemaXml(ReportSchema schema)
Deprecated. Convenience constructor to allow a user to create this shlub of a class from a full ReportSchema object |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Deprecated. |
java.lang.Integer |
getId()
Deprecated. |
java.lang.String |
getName()
Deprecated. |
java.lang.Integer |
getReportSchemaId()
Deprecated. Returns the ReportSchema Id |
java.lang.String |
getXml()
Deprecated. Returns the xml of the ReportSchemaXml |
void |
populateFromReportSchema(ReportSchema reportSchema)
Deprecated. Convenience helper method to set the attributes on this ReportSchemaXML object with what is in the report schema object |
void |
setDescription(java.lang.String description)
Deprecated. |
void |
setId(java.lang.Integer id)
Deprecated. |
void |
setName(java.lang.String name)
Deprecated. |
void |
setReportSchemaId(java.lang.Integer reportSchemaId)
Deprecated. Set the Report Schema Id |
void |
setXml(java.lang.String xml)
Deprecated. Set the xml content for the ReportSchemaXml |
void |
updateXmlFromAttributes()
Deprecated. Convenience helper method that will deserialize the "xml" string to a ReportSchema, update that report schema with the id/name/desc attributes that are on this ReportSchemaXml object, and then re serialize that ReportSchema object into the "xml" string |
Methods inherited from class org.openmrs.BaseOpenmrsObject |
---|
getUuid, setUuid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReportSchemaXml()
public ReportSchemaXml(java.lang.Integer reportschemaId)
reportschemaId
- public ReportSchemaXml(ReportSchema schema) throws java.lang.Exception
schema
- the ReportSchema to serialize and store with this tiny class
java.lang.Exception
- if serialization failsMethod Detail |
---|
public void setReportSchemaId(java.lang.Integer reportSchemaId)
reportSchemaId
- public java.lang.Integer getReportSchemaId()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name to setpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description to setpublic void setXml(java.lang.String xml)
xml
- serialized contentpublic java.lang.String getXml()
public void populateFromReportSchema(ReportSchema reportSchema)
reportSchema
- ReportSchema from which to pull valuespublic void updateXmlFromAttributes() throws java.lang.Exception
java.lang.Exception
public java.lang.Integer getId()
OpenmrsObject.getId()
public void setId(java.lang.Integer id)
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |