Package it.ovunque.bd.ubcasa
Class FormatoDati
java.lang.Object
it.ovunque.bd.ubcasa.FormatoDati
- Direct Known Subclasses:
DB2
,MsSqlServer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte
codificaTipo
(int tipo) protected Object
convertiDaDb
(String valore, int tipo) convertiDaUtente
(String valore, int tipo) byte
errori()
void
errori
(byte tipo) tipo indica su che tipologia di dato si � verificato un errore.void
gestisciErrori
(Statement comando, String nomeTabella) void
impostaGestoreErrori
(GestoreErrori gestore, byte tipo) intermedio
(ResultSet ris, int nCol) intermedio
(ResultSet ris, String nomeCol) final Object
intermedioDaBd
(String valore, int tipo) final Object
intermedioDaUtente
(String valore, int tipo) int
ricavaTipo
(ResultSet ris, int nCol) void
-
Field Details
-
NUMERO
public static final byte NUMERO- See Also:
-
INTERO
public static final byte INTERO- See Also:
-
STRINGA
public static final byte STRINGA- See Also:
-
ALTRO
public static final byte ALTRO- See Also:
-
DATA
public static final byte DATA- See Also:
-
STRINGA_VAR
public static final byte STRINGA_VAR- See Also:
-
NUM_TIPI
public static final byte NUM_TIPI- See Also:
-
-
Constructor Details
-
FormatoDati
public FormatoDati()
-
-
Method Details
-
intermedio
- Throws:
SQLException
-
intermedio
- Throws:
SQLException
-
intermedioDaBd
- Throws:
FormatoSbagliato
-
convertiDaDb
- Throws:
FormatoSbagliato
-
intermedioDaUtente
- Throws:
FormatoSbagliato
-
convertiDaUtente
- Throws:
FormatoSbagliato
-
bd
- Throws:
SQLException
-
bd
- Throws:
SQLException
-
bd
- Throws:
SQLException
-
bd
- Throws:
FormatoSbagliato
-
bd
-
coerenza
- Parameters:
valore
- il valore da controllaretipo
- il tipo del valore
-
utente
- Throws:
SQLException
-
utente
- Throws:
SQLException
-
utente
- Throws:
SQLException
-
utente
- Throws:
FormatoSbagliato
-
utente
-
ricavaTipo
- Throws:
SQLException
-
codificaTipo
public byte codificaTipo(int tipo) -
impostaGestoreErrori
-
togliErrori
public void togliErrori() -
errori
public void errori(byte tipo) tipo indica su che tipologia di dato si � verificato un errore. se tipo >= NUM_TIPI significa nessun errore -
errori
public byte errori() -
gestisciErrori
- Throws:
SQLException
-