|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--canguru.descriptor.Filtered
Field Summary | |
private Descriptor |
descriptor
|
private java.util.Map |
elements
|
private java.util.Set |
filter
|
Constructor Summary | |
(package private) |
Filtered(Descriptor descriptor)
|
Method Summary | |
void |
addElement(java.lang.Long id)
Adiciona um elemento |
void |
addFilter(java.lang.String attributeName,
java.lang.Object attributeValue)
Insere filtro por atributo |
AttributeType |
getAttributeType(java.lang.String attributeName)
Retorna o tipo de um atributo |
Element |
getElement(java.lang.Long id)
Retorna o elemento com o id informado |
java.util.Map |
getElements()
Retorna o Map com os elementos filtrados no formato (idElemento, elemento) |
java.util.Map |
getEntityDefinition()
Retorna o Map com a definição dos atributos filtrados no formato (nomeAtributo, tipoAtributo) |
java.lang.String |
getEntityName()
Retorna o nome da entidade a ser tratada |
java.util.Set |
getFilter()
Retorna o Set com os atributos a serem usados para filtro |
void |
load()
Carrega todos os elementos no banco de dados no Map de elementos |
void |
removeAllElements()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Set filter
private Descriptor descriptor
private java.util.Map elements
Constructor Detail |
Filtered(Descriptor descriptor)
descriptor
- Method Detail |
public void addElement(java.lang.Long id) throws ElementNotFoundException
ElementNotFoundException
public void addFilter(java.lang.String attributeName, java.lang.Object attributeValue) throws AttributeDefinitionNotFoundException, InvalidNameException, InvalidAttributeException
attributeName
- nome do atributoattributeValue
- valor que o atributo deve ter
AttributeDefinitionNotFoundException
InvalidNameException
InvalidAttributeException
public AttributeType getAttributeType(java.lang.String attributeName) throws AttributeNotFoundException
attributeName
- Nome do atributo
AttributeNotFoundException
public Element getElement(java.lang.Long id) throws ElementNotFoundException
ElementNotFoundException
public java.util.Map getElements()
Map
com os elementos filtrados no formato (idElemento, elemento)
public java.util.Map getEntityDefinition()
Map
com a definição dos atributos filtrados no formato (nomeAtributo, tipoAtributo)
public java.lang.String getEntityName()
public java.util.Set getFilter()
Set
com os atributos a serem usados para filtro
public void load() throws java.lang.ClassNotFoundException, java.io.IOException, java.sql.SQLException, ElementNotFoundException
Map
de elementos
java.lang.ClassNotFoundException
java.io.IOException
java.sql.SQLException
ElementNotFoundException
public void removeAllElements()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |