public class DbMultipleMonitor extends AbstractDbDataDao<MultipleMonitor>
Modifier and Type | Class and Description |
---|---|
static class |
DbMultipleMonitor.Columns |
AbstractDbData.UpdatedInfo
Modifier and Type | Field and Description |
---|---|
static int[] |
dbTypes |
protected static String |
insertAllValues |
static int |
NBPRKEY |
protected static String |
selectAllFields |
static String |
table |
protected static String |
updateAllFields |
JSON_MODEL, pojo
allFields, dbSession, isSaved, otherFields, primaryKey
Constructor and Description |
---|
DbMultipleMonitor(String hostid) |
DbMultipleMonitor(String hostid,
int cc,
int ch,
int cr) |
Modifier and Type | Method and Description |
---|---|
void |
changeUpdatedInfo(AbstractDbData.UpdatedInfo info)
Change UpdatedInfo status
|
boolean |
checkUpdateConfig()
On Commander side
|
boolean |
checkUpdateHost()
On Commander side
|
boolean |
checkUpdateRule()
On Commander side
|
int |
getCountConfig() |
int |
getCountHost() |
int |
getCountRule() |
protected AbstractDAO<MultipleMonitor> |
getDao() |
static DbMultipleMonitor |
getFromStatement(DbPreparedStatement preparedStatement)
For instance from Commander when getting updated information
|
protected String |
getPrimaryField() |
protected String |
getPrimaryKey() |
protected String |
getTable() |
static DbPreparedStatement |
getUpdatedPrepareStament(DbSession session) |
protected void |
initObject()
To setup primaryKey, otherFields, allFields.
|
protected void |
setFromJson(String field,
com.fasterxml.jackson.databind.JsonNode value) |
String |
toString()
return the String representation
|
asJson, delete, exist, getInsertAllValues, getJson, getSelectAllFields, getUpdateAllFields, getValues, getWherePrimaryKey, insert, select, setFromArray, setFromJson, setPrimaryKey, setToArray, toJson, update
get, getAllFields, getTrueValue, getValue, setTrueValue, setValue, setValues
public static final int[] dbTypes
public static final String table
public static final int NBPRKEY
protected static final String selectAllFields
protected static final String updateAllFields
protected static final String insertAllValues
public DbMultipleMonitor(String hostid, int cc, int ch, int cr)
hostid
- cc
- count for Configch
- count for Hostcr
- count for Rulepublic DbMultipleMonitor(String hostid) throws WaarpDatabaseException
hostid
- WaarpDatabaseException
protected void initObject()
AbstractDbData
initObject
in class AbstractDbDataDao<MultipleMonitor>
protected String getTable()
getTable
in class AbstractDbDataDao<MultipleMonitor>
protected AbstractDAO<MultipleMonitor> getDao() throws DAOConnectionException
getDao
in class AbstractDbDataDao<MultipleMonitor>
DAOConnectionException
protected String getPrimaryKey()
getPrimaryKey
in class AbstractDbDataDao<MultipleMonitor>
protected String getPrimaryField()
getPrimaryField
in class AbstractDbDataDao<MultipleMonitor>
protected void setFromJson(String field, com.fasterxml.jackson.databind.JsonNode value)
setFromJson
in class AbstractDbDataDao<MultipleMonitor>
public static DbMultipleMonitor getFromStatement(DbPreparedStatement preparedStatement) throws WaarpDatabaseNoConnectionException, WaarpDatabaseSqlException
preparedStatement
- WaarpDatabaseNoConnectionException
WaarpDatabaseSqlException
public static DbPreparedStatement getUpdatedPrepareStament(DbSession session) throws WaarpDatabaseNoConnectionException, WaarpDatabaseSqlException
WaarpDatabaseNoConnectionException
WaarpDatabaseSqlException
public boolean checkUpdateConfig()
public boolean checkUpdateHost()
public boolean checkUpdateRule()
public void changeUpdatedInfo(AbstractDbData.UpdatedInfo info)
AbstractDbDataDao
changeUpdatedInfo
in class AbstractDbDataDao<MultipleMonitor>
public String toString()
public int getCountConfig()
public int getCountHost()
public int getCountRule()
Copyright © 2009–2020 Waarp. All rights reserved.