org.oropuro.circe.db
Class DbDataItem
java.lang.Object
org.jfree.data.xy.OHLCDataItem
org.oropuro.circe.db.DbDataItem
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable, DbPersister
public class DbDataItem
- extends org.jfree.data.xy.OHLCDataItem
- implements DbPersister
- See Also:
- Serialized Form
|
Constructor Summary |
DbDataItem(java.util.Date arg0,
double arg1,
double arg2,
double arg3,
double arg4,
double arg5)
|
|
Method Summary |
void |
DbCloseRs()
|
java.lang.Object |
DbGet(int i)
Funzione di inserimento di un nuovo record |
java.lang.Object |
DbGet(int id,
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 |
DbRemPrev(java.util.Date date)
|
int |
DbSelect(java.lang.String query,
java.util.Vector params)
|
double |
getAdjclose()
|
int |
getId()
|
void |
setAdjclose(double adjclose)
|
void |
setId(int id)
|
| Methods inherited from class org.jfree.data.xy.OHLCDataItem |
compareTo, equals, getClose, getDate, getHigh, getLow, getOpen, getVolume |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DbDataItem
public DbDataItem(java.util.Date arg0,
double arg1,
double arg2,
double arg3,
double arg4,
double arg5)
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 id,
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:
id - l'ID del record da ricercare
- Returns:
- il nuovo oggetto contenente il record trovato
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
DbRemPrev
public int DbRemPrev(java.util.Date date)
getAdjclose
public double getAdjclose()
setAdjclose
public void setAdjclose(double adjclose)
getId
public int getId()
setId
public void setId(int id)
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:
DbRemove
public int DbRemove(int i)
- Specified by:
DbRemove in interface DbPersister
DbCloseRs
public void DbCloseRs()
- Specified by:
DbCloseRs in interface DbPersister