|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object persistance.wSql.Sql
public class Sql
Sql est un objet path que tous les composants connaissent
il est le noeud principal de l'appli
Cet objet est un requeteur sql, il s'appuie sur le mappage des tables et par les appels d'interface,
calcule les requètes et met des "Records" à disposition des "Vue"
Sql gére deux types de SGBDR sql : un type embarqué (SqlLite) et un type adressable (Mysql)
__________________________________________________________________________________
A_doc
Licence
.
Field Summary | |
---|---|
String |
baseTable
|
static int |
CHOICEPRINTER
|
String |
clauseFilter
|
String |
clauseGroupBy
|
static String |
CONCAT
|
(package private) java.sql.Connection |
cx
|
java.util.ArrayList<Object[]> |
datas
|
boolean |
debugF2
|
boolean |
debugPrint
|
static int |
DEFPRINTER
|
static String |
FIELDENTER
|
java.util.ArrayList<Field> |
fields
|
int |
g_choicePrinter
|
int |
g_nbList
|
String |
g_optionRupture
|
int |
g_orientation
|
int |
g_rupture
|
(package private) Gp |
gp
|
String |
inferieur
|
java.util.ArrayList<FieldsJoin> |
joins
|
static String |
JoinTableName
|
static int |
LANDSCAPE
|
static int |
MODE
|
static int |
MODE_APPEND
|
static int |
MODE_APPENDUPDATED
|
static int |
MODE_MOVABLE
|
static int |
MODE_SAUVE
|
static int |
MODE_UPDATED
|
static int |
PORTRAIT
|
java.util.ArrayList<Field> |
prints
|
AbstractFieldsDef |
printsFilter
|
java.sql.ResultSet |
rs
|
(package private) java.sql.ResultSet |
rsTmp
|
static int |
RUPTURE_DETAIL
|
static int |
RUPTURE_TOTAL
|
static int |
RUPTURE_TOUS
|
java.util.ArrayList<Field> |
ruptures
|
static int |
SQL_ERROR_HARD
|
static int |
SQL_ERROR_SOFT
|
(package private) boolean |
sqlconcat
|
(package private) String |
sqlPipe
|
Sql |
sqlTwin
|
(package private) java.sql.Statement |
statTmp
|
static int |
STR_BUILD
|
String |
superieur
|
int |
t_AccesMode
|
static int |
t_AccesModeIndex
|
static int |
t_AccesModeRecno
|
static String |
t_bottom
|
boolean |
t_debugQuery
|
boolean |
t_eof
|
JTextDbF2 |
t_F2
|
String |
t_F2Debut
|
static int |
t_F2DebutFin
|
String |
t_F2fieldLibe
|
String |
t_F2Fin
|
JPopup |
t_F2Popup
|
String[] |
t_filtre
|
int |
t_FirstFieldInSelectForRsGet
|
int |
t_height
|
String[] |
t_index
|
int[] |
t_indexOrder
|
static String |
t_insert
|
static int |
t_LoadAllField
|
static int |
t_LoadRowid
|
String |
t_moduleIdAide
|
String |
t_moduleIdF2Color
|
int |
t_nbFieldWithRowidForData
|
int |
t_nbLigne
|
JPlageTimes |
t_PLAGETIMES
|
String |
t_Recno
|
int |
t_recnoCol
|
boolean |
t_saveRecno
|
String |
t_seek
|
(package private) String |
t_select
|
boolean |
t_showSearch
|
java.sql.Statement |
t_stat
|
String |
t_table
|
boolean |
t_TmpEof
|
String |
t_TmpRecno
|
static String |
t_top
|
VueIAcces |
taParent
|
VueIAcces |
taThis
|
VueIAcces |
taTwin
|
int |
UPDATED
|
String[] |
v_filtre
|
String |
v_index
|
String |
v_TmpIndex
|
Vue |
vue
|
Constructor Summary | |
---|---|
Sql(Gp gp)
Connexion à la base |
|
Sql(Sql sql)
Création du statement d'une table On conserve le statement ouvert |
|
Sql(Sql sql,
String t_table)
Création du statement d'une table |
|
Sql(Sql sql,
String t_seek,
Vue vue)
Création du statement d'une table |
Method Summary | |
---|---|
void |
addJoin(FieldsJoin join)
|
void |
alterNewTableField()
|
void |
alterNewTableField(boolean confirm)
|
void |
applyPreferences(String user)
|
void |
clearMainFrame(boolean enable)
|
void |
closeCx()
On libere la connexion |
void |
closeT_stat()
On libere les tables |
void |
createTable()
|
void |
createTable(boolean confirm)
|
void |
createTemporarySinceTable()
|
void |
createTemporaryTable(boolean confirm)
|
void |
dBBottomByIndex()
|
boolean |
dBDeleteByRecno()
|
void |
dBExecuteQuerryClose(java.sql.ResultSet rs)
|
java.sql.ResultSet |
dBExecuteQueryOpen(String query)
|
java.sql.ResultSet |
dBExecuteQueryTmp(String query)
|
boolean |
dBExecuteSeekEof(String query)
|
boolean |
dBExecuteUpdate(String query)
|
void |
dBGoRecnoByRecno(String recno)
|
boolean |
dBInsert()
|
boolean |
dBInsert(String[] v_champ)
|
void |
dBMessNotDelete(int type,
String mess)
|
void |
dBMessNotInsert(int type,
String mess)
|
void |
dBMessNotUpdate(int type,
String mess)
|
void |
dBNextPageByIndex()
|
void |
dBSeekByIndex(String v_seek)
|
void |
dbSetDebutFinByIndex()
|
void |
dBSkapresByIndex()
|
void |
dBSkavantByIndex()
|
void |
dBSoftSeekByIndex(String v_seek)
|
void |
dBTopByIndex()
|
void |
dBTruncate()
|
boolean |
dBUpdateByRecno(String[] v_champ)
|
void |
dBUpPageByIndex()
|
void |
debugDatas()
|
String |
debugSql()
|
void |
dispose()
|
void |
dropTable()
|
void |
dropTable(boolean confirm)
|
void |
dropTemporaryTable()
|
void |
dropTemporaryTable(boolean confirm)
|
protected void |
finalize()
|
AbstractDefaultParam |
getAppliParam()
|
Ms1204 |
getCbMS1204(int num)
|
String |
getCodeFiche()
|
double |
getDataDouble(String sfield)
|
int |
getDataInt(String sfield)
|
String |
getDataString(String sfield)
|
String |
getdecah(String decamehex)
|
String |
getField(int numField)
|
String |
getField(String t_field)
|
Field |
getFieldDef(int field)
|
Field |
getFieldDef(String nameField)
|
Gp |
getGp()
|
Gp |
getGpAbc()
|
String |
geth()
|
Image |
getImage(String name,
boolean transp)
|
String |
getLibeF2()
|
String |
getMenu()
|
JFrame |
getMf()
|
JPanel |
getMjpc()
|
int |
getNumField(String sfield)
|
String |
getOpt2()
|
String |
getOpt3()
|
String |
getOption()
|
String |
getOptionText()
|
JPanel |
getPanelTitleMenuOptionText()
|
String |
getQueryGroupOrderby()
|
String |
getQueryWhereCurrentRowid()
|
String |
getReverseSubstDate(String table,
String date)
|
Sql |
getSql()
|
Sql |
getSqlAbc()
|
String |
getUser()
|
Icon |
ImageIcon(Image img,
int coef)
|
void |
initData()
|
void |
initFields()
|
void |
insertFromTemporaryTable(String where)
|
void |
insertTemporarySinceTable(String where)
|
boolean |
isCodeBarre(int num)
|
boolean |
isCtrlMask()
|
boolean |
isDevFile()
|
boolean |
isEmptyV_indexUpdated(int row)
|
boolean |
isFieldInIndex(int numfield)
|
boolean |
isImpDot(int num)
|
boolean |
isModeAppend()
|
boolean |
isModeAppendUpdated()
|
boolean |
isModeMovable()
|
boolean |
isModeSauve()
|
boolean |
isModeUpdated()
|
boolean |
isNewTableField()
|
boolean |
isRs()
|
boolean |
isShiftMask()
|
boolean |
isTable(String name)
|
boolean |
isTableExist()
|
boolean |
isTcetorp()
|
boolean |
isV_indexUpdated(int row)
|
void |
loadMenu()
|
int |
notify(String titre,
String mess,
Object[] option,
String nameImage,
int defOption)
|
boolean |
readBooleanValue(String table,
String where,
String index,
String value)
|
double |
readDoubleValue(String table,
String where,
String index,
String value)
|
boolean |
readFBooleanValue(String table,
String where,
String index,
String filter,
String value)
|
double |
readFDoubleValue(String table,
String where,
String index,
String filter,
String value)
|
int |
readFIntValue(String table,
String where,
String index,
String filter,
String value)
|
boolean |
readFOBooleanValue(String table,
String where,
String index,
String filter,
String order,
String value)
|
double |
readFODoubleValue(String table,
String where,
String index,
String filter,
String order,
String value)
|
int |
readFOIntValue(String table,
String where,
String index,
String filter,
String order,
String value)
|
boolean |
readFOSeek(String table,
String where,
String index,
String filter,
String order)
|
String |
readFOStringValue(String table,
String where,
String index,
String filter,
String order,
String value)
|
boolean |
readFSeek(String table,
String where,
String index,
String filter)
|
String |
readFStringValue(String table,
String where,
String index,
String filter,
String value)
|
int |
readIntValue(String table,
String where,
String index,
String value)
|
boolean |
readOBooleanValue(String table,
String where,
String index,
String order,
String value)
|
double |
readODoubleValue(String table,
String where,
String index,
String order,
String value)
|
int |
readOIntValue(String table,
String where,
String index,
String order,
String value)
|
boolean |
readOSeek(String table,
String where,
String index,
String order)
|
String |
readOStringValue(String table,
String where,
String index,
String order,
String value)
|
boolean |
readSeek(String table,
String where,
String index)
|
String |
readStringValue(String table,
String where,
String index,
String value)
|
void |
removeDbVue(boolean enable)
|
void |
renameTable(String name)
|
void |
renameTable(String name,
boolean confirm)
|
String |
restoreLastUserFromSystem()
|
boolean |
restoreRecno()
|
void |
rsLoadRecno()
|
String |
rsReadIndexByIndex(boolean close)
|
void |
rsSeekByLike()
|
boolean |
rsSetDatas()
|
boolean |
rsSetDatas(int lastSelectRow)
|
void |
rsSkip(boolean close)
|
void |
rsSoftSeek()
|
String |
rsSoftSeekIndex(String index)
|
void |
saveRecno()
|
void |
setCursorWait(boolean enabled)
|
void |
setDataDouble(String sfield,
double value)
|
void |
setDataInt(String sfield,
int value)
|
void |
setDataString(String sfield,
String value)
|
void |
setDebugQuery(boolean enable)
|
void |
setDesc(boolean desc)
|
void |
setIcon(AbstractJDialogDb abstractJDialogDb)
|
void |
setMode(int mode)
|
String |
setQuerydoubleCote(String string)
|
void |
setTable(String t_table)
|
void |
setTcetorp()
|
void |
setTextStatus(String west,
String center,
String east)
|
void |
setTextStatusFiche(String west,
String east)
|
void |
setTextStatusFicheEdit(String txt)
|
void |
setUser(String m_user)
|
void |
updateTemporarySinceTable(String values,
String where)
|
boolean |
v_indexEqualData(int row)
|
void |
writeValue(String table,
String values,
String where)
|
void |
writeValueAll(String table,
String values)
|
Methods inherited from class Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Gp gp
java.sql.Connection cx
public java.sql.ResultSet rs
java.sql.ResultSet rsTmp
java.sql.Statement statTmp
String sqlPipe
String t_select
boolean sqlconcat
public static final String CONCAT
public static final int STR_BUILD
public static final int SQL_ERROR_HARD
public static final int SQL_ERROR_SOFT
public VueIAcces taThis
public VueIAcces taTwin
public VueIAcces taParent
public Sql sqlTwin
public java.sql.Statement t_stat
public String t_table
public String baseTable
public String t_moduleIdAide
public java.util.ArrayList<Field> fields
public java.util.ArrayList<Object[]> datas
public java.util.ArrayList<Field> prints
public java.util.ArrayList<Field> ruptures
public static final String JoinTableName
public java.util.ArrayList<FieldsJoin> joins
public String[] v_filtre
public String[] t_filtre
public String clauseFilter
public String clauseGroupBy
public int[] t_indexOrder
public String[] t_index
public String v_index
public String t_seek
public String superieur
public String inferieur
public boolean t_showSearch
public static String t_bottom
public static String t_top
public String t_Recno
public int t_nbFieldWithRowidForData
public int t_recnoCol
public boolean t_eof
public int t_FirstFieldInSelectForRsGet
public int t_nbLigne
public String t_TmpRecno
public boolean t_TmpEof
public String v_TmpIndex
public boolean t_saveRecno
public JTextDbF2 t_F2
public JPlageTimes t_PLAGETIMES
public JPopup t_F2Popup
public String t_F2fieldLibe
public String t_F2Debut
public String t_F2Fin
public String t_moduleIdF2Color
public static final int t_F2DebutFin
public static final int t_LoadAllField
public static final int t_LoadRowid
public static String FIELDENTER
public int t_height
public int UPDATED
public static int MODE
public static int MODE_MOVABLE
public static int MODE_UPDATED
public static int MODE_APPEND
public static int MODE_APPENDUPDATED
public static int MODE_SAUVE
public int t_AccesMode
public static int t_AccesModeIndex
public static int t_AccesModeRecno
public static String t_insert
public Vue vue
public int g_nbList
public int g_orientation
public int g_choicePrinter
public static int DEFPRINTER
public static int CHOICEPRINTER
public AbstractFieldsDef printsFilter
public static int LANDSCAPE
public static int PORTRAIT
public String g_optionRupture
public int g_rupture
public static final int RUPTURE_TOUS
public static final int RUPTURE_DETAIL
public static final int RUPTURE_TOTAL
public boolean debugPrint
public boolean debugF2
public boolean t_debugQuery
Constructor Detail |
---|
public Sql(Gp gp)
public Sql(Sql sql)
sql
- une connexionpublic Sql(Sql sql, String t_seek, Vue vue)
sql
- une connexiont_seek
- fiche par défautvue
- type de vuepublic Sql(Sql sql, String t_table)
sql
- une connexiont_table
- nom de la tableMethod Detail |
---|
public void closeCx()
public void closeT_stat()
public void addJoin(FieldsJoin join)
public void initFields()
public void initData()
public String getDataString(String sfield)
public double getDataDouble(String sfield)
public int getDataInt(String sfield)
public void setDataString(String sfield, String value)
public void setDataDouble(String sfield, double value)
public void setDataInt(String sfield, int value)
public int getNumField(String sfield)
public Field getFieldDef(String nameField)
public Field getFieldDef(int field)
public java.sql.ResultSet dBExecuteQueryOpen(String query)
public java.sql.ResultSet dBExecuteQueryTmp(String query)
public void dBExecuteQuerryClose(java.sql.ResultSet rs)
public void saveRecno()
public boolean restoreRecno()
public boolean v_indexEqualData(int row)
public boolean isV_indexUpdated(int row)
public boolean isEmptyV_indexUpdated(int row)
public String getLibeF2()
public boolean isFieldInIndex(int numfield)
public String getField(int numField)
public String getField(String t_field)
public void setMode(int mode)
public boolean isModeUpdated()
public boolean isModeAppend()
public boolean isModeAppendUpdated()
public boolean isModeMovable()
public boolean isModeSauve()
public String getQueryWhereCurrentRowid()
public String getQueryGroupOrderby()
public void setDesc(boolean desc)
public String getReverseSubstDate(String table, String date)
public String setQuerydoubleCote(String string)
public void dbSetDebutFinByIndex()
public void dBTopByIndex()
public void dBBottomByIndex()
public void dBSkapresByIndex()
public void dBSkavantByIndex()
public void dBGoRecnoByRecno(String recno)
public void dBSeekByIndex(String v_seek)
public void dBSoftSeekByIndex(String v_seek)
public void dBUpPageByIndex()
public void dBNextPageByIndex()
public void rsSkip(boolean close)
public String rsReadIndexByIndex(boolean close)
public boolean isRs()
public String rsSoftSeekIndex(String index)
public void rsSoftSeek()
public void rsLoadRecno()
public void rsSeekByLike()
public boolean rsSetDatas()
public boolean rsSetDatas(int lastSelectRow)
public boolean dBInsert()
public boolean dBInsert(String[] v_champ)
public boolean dBUpdateByRecno(String[] v_champ)
public boolean dBDeleteByRecno()
public void dBMessNotInsert(int type, String mess)
public void dBMessNotUpdate(int type, String mess)
public void dBMessNotDelete(int type, String mess)
public boolean dBExecuteUpdate(String query)
public boolean dBExecuteSeekEof(String query)
public String readFOStringValue(String table, String where, String index, String filter, String order, String value)
public String readFStringValue(String table, String where, String index, String filter, String value)
public String readOStringValue(String table, String where, String index, String order, String value)
public String readStringValue(String table, String where, String index, String value)
public int readFOIntValue(String table, String where, String index, String filter, String order, String value)
public int readFIntValue(String table, String where, String index, String filter, String value)
public int readOIntValue(String table, String where, String index, String order, String value)
public int readIntValue(String table, String where, String index, String value)
public double readFODoubleValue(String table, String where, String index, String filter, String order, String value)
public double readFDoubleValue(String table, String where, String index, String filter, String value)
public double readODoubleValue(String table, String where, String index, String order, String value)
public double readDoubleValue(String table, String where, String index, String value)
public boolean readFOBooleanValue(String table, String where, String index, String filter, String order, String value)
public boolean readFBooleanValue(String table, String where, String index, String filter, String value)
public boolean readOBooleanValue(String table, String where, String index, String order, String value)
public boolean readBooleanValue(String table, String where, String index, String value)
public boolean readFOSeek(String table, String where, String index, String filter, String order)
public boolean readFSeek(String table, String where, String index, String filter)
public boolean readOSeek(String table, String where, String index, String order)
public boolean readSeek(String table, String where, String index)
public void writeValue(String table, String values, String where)
public void writeValueAll(String table, String values)
public boolean isTableExist()
public boolean isTable(String name)
public void createTable()
public void createTable(boolean confirm)
public void createTemporarySinceTable()
public void createTemporaryTable(boolean confirm)
public void dropTemporaryTable()
public void dropTemporaryTable(boolean confirm)
public void insertTemporarySinceTable(String where)
public void insertFromTemporaryTable(String where)
public void updateTemporarySinceTable(String values, String where)
public boolean isNewTableField()
public void alterNewTableField()
public void alterNewTableField(boolean confirm)
public void dropTable()
public void dropTable(boolean confirm)
public void renameTable(String name)
public void renameTable(String name, boolean confirm)
public void dBTruncate()
public String getCodeFiche()
public String debugSql()
public void setDebugQuery(boolean enable)
public void dispose()
protected void finalize()
finalize
in class Object
public void debugDatas()
public Gp getGp()
public Gp getGpAbc()
public JFrame getMf()
public boolean isDevFile()
public Sql getSqlAbc()
public String getUser()
public String getOption()
public String getOptionText()
public String getMenu()
public void setUser(String m_user)
public void setCursorWait(boolean enabled)
public void setTextStatusFiche(String west, String east)
public void setTextStatusFicheEdit(String txt)
public void setTextStatus(String west, String center, String east)
public void setIcon(AbstractJDialogDb abstractJDialogDb)
public void clearMainFrame(boolean enable)
public void loadMenu()
public void applyPreferences(String user)
public AbstractDefaultParam getAppliParam()
public boolean isTcetorp()
public Image getImage(String name, boolean transp)
public Icon ImageIcon(Image img, int coef)
public int notify(String titre, String mess, Object[] option, String nameImage, int defOption)
public void removeDbVue(boolean enable)
public JPanel getPanelTitleMenuOptionText()
public String restoreLastUserFromSystem()
public Sql getSql()
public String geth()
public String getdecah(String decamehex)
public void setTcetorp()
public JPanel getMjpc()
public String getOpt2()
public String getOpt3()
public boolean isCodeBarre(int num)
public Ms1204 getCbMS1204(int num)
public boolean isImpDot(int num)
public boolean isCtrlMask()
public boolean isShiftMask()
public void setTable(String t_table)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |