org.oropuro.circe.db
Class DbSymbElab
java.lang.Object
org.oropuro.circe.db.DbSymbElab
- All Implemented Interfaces:
- DbPersister
- Direct Known Subclasses:
- DbSymbElabNN
public class DbSymbElab
- extends java.lang.Object
- implements DbPersister
|
Field Summary |
protected java.sql.PreparedStatement |
insert
|
protected java.sql.PreparedStatement |
removeAll
|
|
Method Summary |
void |
DbCloseRs()
|
java.lang.Object |
DbGet(int i)
Funzione di inserimento di un nuovo record |
java.lang.Object |
DbGet(int i,
java.util.Date date)
funzione di singleton selection di un record. |
java.lang.Object |
DbGet(java.lang.Object o)
funzione di singleton selection di un record. |
java.lang.Object |
DbNext()
|
int |
DbPut()
|
int |
DbRemove()
|
int |
DbRemove(int i)
|
int |
DbRemove(int i,
java.util.Date date)
|
int |
DbSelect(java.lang.String query,
java.util.Vector params)
|
int |
getEid()
|
int |
getSid()
|
double |
getValue(int i)
|
void |
setEid(int eid)
|
void |
setSid(int sid)
|
void |
setValue(int i,
double val)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
removeAll
protected java.sql.PreparedStatement removeAll
insert
protected java.sql.PreparedStatement insert
DbSymbElab
public DbSymbElab(int s)
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
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
getEid
public int getEid()
setEid
public void setEid(int eid)
getSid
public int getSid()
setSid
public void setSid(int sid)
getValue
public double getValue(int i)
setValue
public void setValue(int i,
double val)