Class DAArtificialIntelligence
java.lang.Object
overit.geocall.da.DABase
overit.geocallapp.replicator.basic.base.DataSource.DABaseReplicator
overit.geocallapp.wfm.replicator.datasource.DAReplicatorWfmBase
overit.geocallapp.wfm.ai.replicator.meterreading.data.DAArtificialIntelligence
- All Implemented Interfaces:
Serializable,DataAttributesHolder,EDMConfigurableBean,overit.geocall.marks.FieldExposer,overit.geocall.marks.NameExposer,DBFieldMapper,DBObjectMapper,Identified,Tool,overit.geocallapp.replicator.basic.base.DataSource.IDSDABase
public class DAArtificialIntelligence
extends overit.geocallapp.wfm.replicator.datasource.DAReplicatorWfmBase
Data extraction queries for AI Module
- Since:
- 12.0
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class overit.geocallapp.wfm.replicator.datasource.DAReplicatorWfmBase
COMMAND_NONE, COMMAND_NOT_ALLOWED, LOG, RESET_TOMBSTONE_VALUEFields inherited from class overit.geocallapp.replicator.basic.base.DataSource.DABaseReplicator
_tableFields inherited from class overit.geocall.da.DABase
DA_BASE_FILTER_PREFIX, DELETE_FILTER, DELETE_PK, INSATE, INSERT, REPLACE_DBVIEW, SAVE_DBVIEW, SELECT_FILTER, SELECT_NONE, SELECT_PK, UPDATE_FILTER, UPDATE_PK, UPSERT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendCustomTombstone(ArrayList<String> alTombstones, HashGetter filter, Date lastSync, Long idPda, PooledConnection conn, PooledConnection externalConn) protected intgiveCommands(int i, PooledConnection conn, DBStatement stmt, HashGetter oKeys, HashGetter oParams) Implements new specific commands that are different from the standard ones.protected DBViewgiveQueries(int i, PooledConnection conn, DBStatement stmt, HashGetter filter, int maxrows, int skiprows) Implements new specific queries that are different from the standard ones.Methods inherited from class overit.geocallapp.wfm.replicator.datasource.DAReplicatorWfmBase
acknowledge, addCustomTombStone, addResetTombstone, addResetTombstone, addTombstones, buildTableTombstone, calcIdReplicationOperationsCenter, containsResetTombstone, getFilialeAuteLoginPda, getIdAuteUltimaModificaPda, getIdOperationsCenterCustom, getIdPdaFk, getIdServerFk, getListaFiliali, getSyncParams, getTombstoneFkTable, getTombstoneFromDBView, getUserOperationsCenter, getUserVisibilitySettings, giveBranchField, giveDBFieldMap, giveDBObjectMap, giveFactoryField, giveOrderCols, givePoolName, givePrimaryKeys, giveSequenceField, giveTableName, isBlankLastSync, isInitialSync, isUnidentifiedMobileUser, isUnidentifiedMobileUser, isUserSafety, loadUserVisibilitySettings, needsResetTombstone, postOperation, postProcessDataForPda, preOperation, setSqlSelectFkTable, setSqlSelectFkTable, setSqlUnionDifferentialMethods inherited from class overit.geocallapp.replicator.basic.base.DataSource.DABaseReplicator
preInsert, preUpdate, setReplicationParam, setReplicationTableMethods inherited from class overit.geocall.da.DABase
command, command, command, getAutoIncrementVal, getDataAttributes, getDBFieldMap, getDBFields, getDBObjectMap, getFieldMap, getIdentity, getQueryId, getQueryId, getReadOnlyCols, getSequenceNextVal, getTeacher, giveIsDistinct, giveIsService, giveMinLevel, giveStar, hasNotBeenDecorated, haveDBFieldMap, haveDBObjectMap, markAsDecorated, postDelete, postInsert, postUpdate, preDelete, preQuery, query, query, query, query, query, release, removeReadOnlyCols, replace, replace, save, save, setDataAttributes, setDBFieldMap, setDBObjectMap, setIdentity, setReadOnlyCols, useConnectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocall.edm.model.DataAttributesHolder
getEntitiesMethods inherited from interface overit.geocall.edm.model.EDMConfigurableBean
getEntity, hasEntity
-
Field Details
-
SELECT_METER_TEMPLATES
public static final int SELECT_METER_TEMPLATES- See Also:
-
SELECT_METER_PREDICTIONS
public static final int SELECT_METER_PREDICTIONS- See Also:
-
-
Constructor Details
-
DAArtificialIntelligence
public DAArtificialIntelligence()
-
-
Method Details
-
giveQueries
protected DBView giveQueries(int i, PooledConnection conn, DBStatement stmt, HashGetter filter, int maxrows, int skiprows) throws SQLException Description copied from class:DABaseImplements new specific queries that are different from the standard ones.
For all the queries implemented with this method we must set, in theDBStatement, the SQL (setSql()), the parameters (available as filters and settable usingset()) and any map (setDBObjectMap(),setDBFieldMap()) to use on the DBStatement.
The execution is done when we call one of thequery()methods, so we can do here only the statement setup.
It is fundamental that the method return null if the query id is not recognized.- Overrides:
giveQueriesin classoverit.geocallapp.wfm.replicator.datasource.DAReplicatorWfmBase- Parameters:
i- The id of the queryconn- Connection from which we have extracted the DBStatement; it can be used to extract other DBStatementstmt- DBStatement used to set the SQL code and the parametersfilter- Parameters to set in the DBStatementmaxrows- Maximum rows number extracted with the queryskiprows- Number of initial lines that you do not want to be returned. Even these lines, although skipped, are counted in the maxrows parameter.- Returns:
- If the query id is valid we must return the DBStatement passed as parameter; if the is is not valid, or we don't want to add specific queries to the standard ones we must return null
- Throws:
SQLException- If there is an error in the SQL SQLException is thrown
-
giveCommands
protected int giveCommands(int i, PooledConnection conn, DBStatement stmt, HashGetter oKeys, HashGetter oParams) throws SQLException Description copied from class:DABaseImplements new specific commands that are different from the standard ones.
For all the commands implemented with this method we must set, in theDBStatement, the SQL (setSql()), (setDBObjectMap(),setDBFieldMap()) to use on the DBStatement.
The execution is done when we call one of thecommand()methods, so we can do here only the statement setup.
It is fundamental that the method return null if the command id is not recognized.- Overrides:
giveCommandsin classoverit.geocallapp.wfm.replicator.datasource.DAReplicatorWfmBase- Parameters:
i- The id of the commandconn- Connection from which we have extracted the DBStatement; it can be used to extract other DBStatementstmt- DBStatement used to set the SQL code and the parametersoKeys- Values used as filters to set for the update commandsoParams- Values to set as parameters in the DBStatement- Returns:
- If the command id is valid we must return the DBStatement passed as parameter; if the id is not valid, or we don't want to add specific commands to the standard ones we must return null
- Throws:
SQLException- If there is an error in the SQL SQLException is thrown
-
appendCustomTombstone
protected void appendCustomTombstone(ArrayList<String> alTombstones, HashGetter filter, Date lastSync, Long idPda, PooledConnection conn, PooledConnection externalConn) throws DAException - Overrides:
appendCustomTombstonein classoverit.geocallapp.wfm.replicator.datasource.DAReplicatorWfmBase- Throws:
DAException
-