com.tekann.codegen.pda.db
Interface IDAO

All Known Implementing Classes:
AbstractDAO

public interface IDAO

Interface for DAOs.

Author:
Evandro Rathke.

Method Summary
 void clear()
          Clean the table data.
 int count()
          Count method.
 IDTO createDTO()
          Creates a DefaultDTO
 void createIndex()
          Creates the indices.
 void createTable()
          Creates the table.
 int delete()
          Deletes the table data.
 void dropIndex()
          Removes the indices.
 java.lang.String[] getColumnNames()
          Returns the column names.
 java.lang.String getDBTableName()
          Returns the DB table name.
 java.lang.String getPDATableName()
          Returns the PDA table name.
 java.lang.Object load()
          Load the table.
 void purge()
          Purge table data.
 int save(IDTO dto)
          Saves a new DefaultDTO.
 int update(IDTO dto)
          Updates a DefaultDTO.
 

Method Detail

clear

void clear()
           throws java.lang.Exception
Clean the table data.

Throws:
java.lang.Exception

purge

void purge()
           throws java.lang.Exception
Purge table data.

Throws:
java.lang.Exception

count

int count()
          throws java.lang.Exception
Count method.

Returns:
An integer
Throws:
java.lang.Exception

createDTO

IDTO createDTO()
               throws java.lang.Exception
Creates a DefaultDTO

Returns:
An IDTO
Throws:
java.lang.Exception

createIndex

void createIndex()
                 throws java.lang.Exception
Creates the indices.

Throws:
java.lang.Exception

createTable

void createTable()
                 throws java.lang.Exception
Creates the table.

Throws:
java.lang.Exception

delete

int delete()
           throws java.lang.Exception
Deletes the table data.

Returns:
An integer
Throws:
java.lang.Exception

dropIndex

void dropIndex()
               throws java.lang.Exception
Removes the indices.

Throws:
java.lang.Exception

getColumnNames

java.lang.String[] getColumnNames()
Returns the column names.

Returns:
A String array

getDBTableName

java.lang.String getDBTableName()
Returns the DB table name.

Returns:
A String

getPDATableName

java.lang.String getPDATableName()
Returns the PDA table name.

Returns:
A String

load

java.lang.Object load()
                      throws java.lang.Exception
Load the table.

Returns:
An Object
Throws:
java.lang.Exception

save

int save(IDTO dto)
         throws java.lang.Exception
Saves a new DefaultDTO.

Parameters:
dto -
Returns:
An integer
Throws:
java.lang.Exception

update

int update(IDTO dto)
           throws java.lang.Exception
Updates a DefaultDTO.

Parameters:
dto -
Returns:
An integer
Throws:
java.lang.Exception