br.ufg.integrate.xml.bean
Class DataSource

java.lang.Object
  extended by br.ufg.integrate.xml.bean.DataSource
All Implemented Interfaces:
Serializable

public class DataSource
extends Object
implements Serializable

Version:
0.1 JavaBean que representa uma fonte de dados e as características definidas no arquivo 'integrate-datasources.xml'. Algumas destas características são opcionais (ver arquivo 'datasources.xsd', que valida este arquivo).
Author:
Rogerio
See Also:
Serialized Form

Constructor Summary
DataSource()
           
 
Method Summary
 String getDriver()
           
 String getId()
           
 String getLookup()
           
 String getPassword()
           
 String getSchema()
           
 String getType()
           
 String getTypeConfClass()
           
 String getTypeConfFile()
           
 List<Map<String,String>> getTypes()
           
 String getUrl()
           
 String getUser()
           
 String getWrapper()
           
 void loadTypes()
          Carrega as conversões de tipos de dadosda fonte de dados real para os tipos de dados definidos para XML Schema.
 void setDriver(String driver)
           
 void setId(String id)
           
 void setLookup(String aLookup)
           
 void setPassword(String password)
           
 void setSchema(String schema)
           
 void setType(String aType)
           
 void setTypeConfClass(String aTypeConfClass)
           
 void setTypeConfFile(String aTypeConfFile)
           
 void setUrl(String url)
           
 void setUser(String user)
           
 void setWrapper(String aWrapper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSource

public DataSource()
Method Detail

getDriver

public String getDriver()
Returns:
Returns the driver.

getId

public String getId()
Returns:
Returns the id.

getLookup

public String getLookup()
Returns:
Implementação da interface Lookup.

getPassword

public String getPassword()
Returns:
Returns the password.

getSchema

public String getSchema()
Returns:
Returns the schema.

getType

public String getType()
Returns:
Tipo do esquema.

getTypeConfClass

public String getTypeConfClass()
Returns:
Implementação da interface TypeConf.

getTypeConfFile

public String getTypeConfFile()
Returns:
Arquivo de configuração dos tipos.

getTypes

public List<Map<String,String>> getTypes()
                                  throws WrapperException
Returns:
Mapeamento entre os tipos da fonte de dados para os tipos XML Schema.
Throws:
WrapperException - Coleção de tipos não carregada (ver loadTypes()).

getWrapper

public String getWrapper()

getUrl

public String getUrl()
Returns:
Returns the url.

getUser

public String getUser()
Returns:
Returns the user.

loadTypes

public void loadTypes()
               throws WrapperException,
                      XMLException
Carrega as conversões de tipos de dadosda fonte de dados real para os tipos de dados definidos para XML Schema.

Throws:
WrapperException - Erro no acesso ao arquivo de tipos de dados. Verifique se a classe que faz o parse do arquivo de tipos de dados está no classpath e se está corretamente definida na tag do arquivo 'integrate-datasources.xml'. Verifique se o arquivo definido na tag existe e se não está mal-definido.
XMLException - Erro no arquivo de configuração dos tipos de dados.

setDriver

public void setDriver(String driver)
Parameters:
driver - The driver to set.

setId

public void setId(String id)
Parameters:
id - The id to set.

setLookup

public void setLookup(String aLookup)

setPassword

public void setPassword(String password)
Parameters:
password - The password to set.

setSchema

public void setSchema(String schema)
Parameters:
schema - The schema to set.

setType

public void setType(String aType)
Parameters:
aType - Tipo da fonte de dados.

setTypeConfClass

public void setTypeConfClass(String aTypeConfClass)
Parameters:
aTypeConfClass - Implementação da interface TypeConf.

setTypeConfFile

public void setTypeConfFile(String aTypeConfFile)
Parameters:
aTypeConfFile - Arquivo de configuração.

setWrapper

public void setWrapper(String aWrapper)

setUrl

public void setUrl(String url)
Parameters:
url - The url to set.

setUser

public void setUser(String user)
Parameters:
user - The user to set.


Copyright © 2008 Rogério Arantes Gaioso. All Rights Reserved.