org.openmrs.report
Class ReportSchemaXml

java.lang.Object
  extended by org.openmrs.BaseOpenmrsObject
      extended by org.openmrs.report.ReportSchemaXml
All Implemented Interfaces:
OpenmrsObject

Deprecated. see reportingcompatibility module

@Deprecated
public class ReportSchemaXml
extends BaseOpenmrsObject

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

ReportSchemaXml

public ReportSchemaXml()
Deprecated. 
Default constructor


ReportSchemaXml

public ReportSchemaXml(java.lang.Integer reportschemaId)
Deprecated. 
Convenience constructor taking in a primary key report schema id

Parameters:
reportschemaId -

ReportSchemaXml

public ReportSchemaXml(ReportSchema schema)
                throws java.lang.Exception
Deprecated. 
Convenience constructor to allow a user to create this shlub of a class from a full ReportSchema object

Parameters:
schema - the ReportSchema to serialize and store with this tiny class
Throws:
java.lang.Exception - if serialization fails
Method Detail

setReportSchemaId

public void setReportSchemaId(java.lang.Integer reportSchemaId)
Deprecated. 
Set the Report Schema Id

Parameters:
reportSchemaId -

getReportSchemaId

public java.lang.Integer getReportSchemaId()
Deprecated. 
Returns the ReportSchema Id

Returns:
the Integer Report Schema Id

getName

public java.lang.String getName()
Deprecated. 
Returns:
the name

setName

public void setName(java.lang.String name)
Deprecated. 
Parameters:
name - the name to set

getDescription

public java.lang.String getDescription()
Deprecated. 
Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Deprecated. 
Parameters:
description - the description to set

setXml

public void setXml(java.lang.String xml)
Deprecated. 
Set the xml content for the ReportSchemaXml

Parameters:
xml - serialized content

getXml

public java.lang.String getXml()
Deprecated. 
Returns the xml of the ReportSchemaXml

Returns:
current xml serialization

populateFromReportSchema

public void populateFromReportSchema(ReportSchema reportSchema)
Deprecated. 
Convenience helper method to set the attributes on this ReportSchemaXML object with what is in the report schema object

Parameters:
reportSchema - ReportSchema from which to pull values

updateXmlFromAttributes

public void updateXmlFromAttributes()
                             throws java.lang.Exception
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

Throws:
java.lang.Exception

getId

public java.lang.Integer getId()
Deprecated. 
Returns:
id - The unique Identifier for the object
Since:
1.5
See Also:
OpenmrsObject.getId()

setId

public void setId(java.lang.Integer id)
Deprecated. 
Parameters:
id - - The unique Identifier for the object
Since:
1.5
See Also:
OpenmrsObject.setId(java.lang.Integer)

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change