br.ufg.integrate.lookup.schema.jdbc
Class Column

java.lang.Object
  extended by br.ufg.integrate.lookup.schema.jdbc.Column
All Implemented Interfaces:
Attribute

public class Column
extends Object
implements Attribute

Version:
0.1 Representa as colunas de uma tabela relacional.
Author:
Rogerio

Constructor Summary
Column()
           
 
Method Summary
 String getDataType()
          Retorna o tipo de dados real do atributo
 String getName()
          Retorna o nome do atributo.
 Ref getRef()
          Referência à entidade e ao atributo estrangeiro.
 int getSize()
          Retorna o tamanho do atributo (opcional).
 String getXMLSchemaType()
          Retorna o tipo de dados XML Schema.
 boolean isId()
          Especifica se este atributo identifica a entidade (se é chave).
 boolean isPermitsNull()
          Se o atributo é obrigatório ou não.
 boolean isPrimaryKey()
           
 boolean isRef()
          Especifica se este atributo referencia outra entidade (se é chave estrangeira).
 void setDataType(String dataType)
           
 void setId(boolean isId)
           
 void setIsRef(boolean isRef)
          Se este atributo referencia outra entidade ou não.
 void setName(String name)
           
 void setPermitsNull(boolean permitsNull)
           
 void setPrimaryKey(boolean isPk)
           
 void setRef(boolean isRef)
           
 void setRef(Ref ref)
          Referência para objeto que representa a entidade e o atributo referenciados.
 void setSize(int size)
           
 void setXMLSchemaType(String aType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Column

public Column()
Method Detail

isId

public boolean isId()
Description copied from interface: Attribute
Especifica se este atributo identifica a entidade (se é chave).

Specified by:
isId in interface Attribute
Returns:
Returns the isPrimaryKey.

isRef

public boolean isRef()
Description copied from interface: Attribute
Especifica se este atributo referencia outra entidade (se é chave estrangeira).

Specified by:
isRef in interface Attribute
Returns:
Returns the isForeignKey.

isPermitsNull

public boolean isPermitsNull()
Description copied from interface: Attribute
Se o atributo é obrigatório ou não.

Specified by:
isPermitsNull in interface Attribute
Returns:
Returns the permitsNull.

isPrimaryKey

public boolean isPrimaryKey()
Returns:
Returns the isForeignKey.

getDataType

public String getDataType()
Description copied from interface: Attribute
Retorna o tipo de dados real do atributo

Specified by:
getDataType in interface Attribute
Returns:
Returns the dataType.

getName

public String getName()
Description copied from interface: Attribute
Retorna o nome do atributo.

Specified by:
getName in interface Attribute
Returns:
Returns the name.

getRef

public Ref getRef()
Description copied from interface: Attribute
Referência à entidade e ao atributo estrangeiro.

Specified by:
getRef in interface Attribute
Returns:
Entidade referenciada

getSize

public int getSize()
Description copied from interface: Attribute
Retorna o tamanho do atributo (opcional). Por exemplo, para tipos numéricos.

Specified by:
getSize in interface Attribute
Returns:
Returns the size.

getXMLSchemaType

public String getXMLSchemaType()
Retorna o tipo de dados XML Schema.

Specified by:
getXMLSchemaType in interface Attribute
Returns:
Tipo de dado XML Schema

setDataType

public void setDataType(String dataType)
Parameters:
dataType - The dataType to set.

setId

public void setId(boolean isId)
Parameters:
isId - The isId to set.

setIsRef

public void setIsRef(boolean isRef)
Description copied from interface: Attribute
Se este atributo referencia outra entidade ou não.

Specified by:
setIsRef in interface Attribute

setRef

public void setRef(boolean isRef)
Parameters:
isRef - The is Foreign Key to set.

setRef

public void setRef(Ref ref)
Description copied from interface: Attribute
Referência para objeto que representa a entidade e o atributo referenciados.

Specified by:
setRef in interface Attribute

setName

public void setName(String name)
Parameters:
name - The name to set.

setPermitsNull

public void setPermitsNull(boolean permitsNull)
Parameters:
permitsNull - The permitsNull to set.

setPrimaryKey

public void setPrimaryKey(boolean isPk)
Parameters:
isPk - The is Primary Key to set.

setSize

public void setSize(int size)
Parameters:
size - The size to set.

setXMLSchemaType

public void setXMLSchemaType(String aType)


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