|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Catalog
Catalog is the core metaobject of this framework. This interface specifies methods of adding and removing data from catalog.
| Method Summary | |
|---|---|
void |
add(Catalog catalog)
Adds data from another catalog. |
CatalogLine |
createCatalogLine(java.lang.String identificator)
Creates new catalog line with the given identificator. |
void |
deleteLine(CatalogLine line)
Removes given line from the catalog. |
CatalogLine |
get(int index)
Returns catalog line with the given index. |
CatalogLine |
get(java.lang.String identificator)
Returns catalog line with the given identificator. |
java.util.List<java.lang.String> |
getColumns()
Returns column names of this catalog. |
java.lang.String |
getIdentificator(int index)
Returns identificator of the line with the given index. |
java.util.List<CatalogLine> |
getLines()
Returns list of all line in the catalog. |
int |
size()
Returns number of lines in this catalog. |
void |
updateLine(java.lang.String identificator,
CatalogLine catalogLine)
Updates line with the given identificator with data stored in the given catalog line. |
| Method Detail |
|---|
void add(Catalog catalog)
throws MetaException
catalog - Source catalog
MetaException - Should be thrown if catalogs have different metadata
CatalogLine createCatalogLine(java.lang.String identificator)
throws MetaException
identificator - Unique identificator of the line
CatalogLine interface
MetaException - Thrown if any error occurs while creating the line
CatalogLine get(int index)
throws MetaException
index - Index of the line
CatalogLine object
MetaException - Thrown if index is out of bounds
CatalogLine get(java.lang.String identificator)
throws MetaException
identificator - Identificator of the line
CatalogLine object
MetaException - Thrown if line with the given identificator is not found
java.lang.String getIdentificator(int index)
throws MetaException
index - Index of the line
MetaException - Thrown if index is out of boundsjava.util.List<java.lang.String> getColumns()
java.util.List<CatalogLine> getLines()
int size()
void updateLine(java.lang.String identificator,
CatalogLine catalogLine)
throws MetaException
identificator - Identificator of the linecatalogLine - Source catalog line
MetaException - Thrown if metadata differs or error occur while setting values
void deleteLine(CatalogLine line)
throws MetaException
line - Line to be removed
MetaException - Thrown if line is not part of this catalog
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||