org.oropuro.circe.db
Class DbPortfolio
java.lang.Object
org.oropuro.circe.db.DbPortfolio
- All Implemented Interfaces:
- DbPersister
public class DbPortfolio
- extends java.lang.Object
- implements DbPersister
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DbPortfolio
public DbPortfolio()
DbGet
public java.lang.Object DbGet(java.lang.Object o)
- Description copied from interface:
DbPersister
- funzione di singleton selection di un record.
la funzione crea un nuovo oggetto in base a quello passato in input e lo ritorna.
- Specified by:
DbGet in interface DbPersister
- Parameters:
o - il record da ricercare
- Returns:
- il record trovato o null se non ha trovato
DbGet
public java.lang.Object DbGet(int i,
java.util.Date date)
- Description copied from interface:
DbPersister
- funzione di singleton selection di un record.
la selezione è fatta in base all ID del record
la funzione crea un nuovo oggetto GENERICO e lo ritorna.
- Specified by:
DbGet in interface DbPersister
- Parameters:
i - l'ID del record da ricercare
- Returns:
- il nuovo oggetto contenente il record trovato
DbGet
public java.lang.Object DbGet(int i)
- Description copied from interface:
DbPersister
- Funzione di inserimento di un nuovo record
- Specified by:
DbGet in interface DbPersister
- Returns:
DbPut
public int DbPut()
- Specified by:
DbPut in interface DbPersister
DbUpd
public int DbUpd()
DbSelect
public int DbSelect(java.lang.String query,
java.util.Vector params)
- Specified by:
DbSelect in interface DbPersister
- Returns:
DbNext
public java.lang.Object DbNext()
- Specified by:
DbNext in interface DbPersister
DbRemove
public int DbRemove()
- Specified by:
DbRemove in interface DbPersister
DbRemove
public int DbRemove(int i,
java.util.Date date)
- Specified by:
DbRemove in interface DbPersister
DbRemove
public int DbRemove(int i)
- Specified by:
DbRemove in interface DbPersister
DbCloseRs
public void DbCloseRs()
- Specified by:
DbCloseRs in interface DbPersister
assign
public int assign(DbSymbol dbs)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
remove
public int remove(DbSymbol dbs)
scratch
public int scratch(DbSymbol dbs)
listAssociated
public java.util.Vector listAssociated()
getDesc
public java.lang.String getDesc()
setDesc
public void setDesc(java.lang.String desc)
getId
public int getId()
setId
public void setId(int id)
getParent
public int getParent()
setParent
public void setParent(int parent)
getRefer
public int getRefer()
setRefer
public void setRefer(int refer)
getSize
public int getSize()
setSize
public void setSize(int size)
getType
public java.lang.String getType()
setType
public void setType(java.lang.String ty)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object