package org.jboss.test.managed.factory.support.mcf;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import org.jboss.managed.api.annotation.ManagementObject;

/**
 * A DBMSMetaData.
 * 
 * @author <a href="weston.price@jboss.org">Weston M. Price</a>
 * @version $Revision: 1.1 $
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name="metadata")
@ManagementObject()
public class DBMSMetaData implements Serializable
{
   private static final long serialVersionUID = -5511233258559770711L;
   
   @XmlElement(name="type-mapping")
   @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
   private String typeMapping;

   public String getTypeMapping()
   {
      return typeMapping;
   }

   public void setTypeMapping(String typeMapping)
   {
      this.typeMapping = typeMapping;
   }

}
