org.jplate.tabular
Interface RepoIfc

All Known Implementing Classes:
DefaultRepo

public interface RepoIfc

Defines the concept of a repo. A repo is a collection of TableIfc's.

Modifications:
    $Date: 2008-12-02 12:32:45 -0500 (Tue, 02 Dec 2008) $
    $Revision: 479 $
    $Author: sfloess $
    $HeadURL: https://jplate.svn.sourceforge.net/svnroot/jplate/trunk/src/dev/java/org/jplate/tabular/RepoIfc.java $
    


Method Summary
 void addTable(TableIfc table)
          Add table.
 void close()
          This method will close a repo.
 TableIfc createTable()
           
 java.lang.String getRepoName()
          Return the repo name,
 java.util.List<TableIfc> getTables()
          Return the collection of tables.
 void open()
          This method will open an existing repo.
 boolean removeTable(TableIfc table)
          Remove table.
 void removeTables()
          This method will force the removal of all tables.
 

Method Detail

createTable

TableIfc createTable()

getRepoName

java.lang.String getRepoName()
Return the repo name,

Returns:
The repo name.

open

void open()
          throws OpenException
This method will open an existing repo.

Throws:
OpenException - If a problem arose opening the repo.

close

void close()
           throws CloseException
This method will close a repo.

Throws:
CloseException - If a problem arose closing the repo.

addTable

void addTable(TableIfc table)
              throws AddException
Add table.

Parameters:
table - The table to Add.
Throws:
AddException - if any issues arise adding table.

removeTables

void removeTables()
                  throws RemoveException
This method will force the removal of all tables.

Throws:
RemoveException - if a problem arose removing all tables.

removeTable

boolean removeTable(TableIfc table)
                    throws RemoveException
Remove table.

Parameters:
table - The table to remove.
Returns:
true if successful or false if not.
Throws:
RemoveException - if any issues arise removing table.

getTables

java.util.List<TableIfc> getTables()
Return the collection of tables.

Returns:
the collection of tables.