public abstract class FdfCommonServices
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
fdfLog |
| Constructor and Description |
|---|
FdfCommonServices() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addAtDate(java.util.Date date,
WhereStatement whereStatement) |
protected static void |
addByAredAfter(java.util.Date date,
WhereStatement whereStatement) |
protected static void |
addByAredBefore(java.util.Date date,
WhereStatement whereStatement) |
protected static void |
addByArsdAfter(java.util.Date date,
WhereStatement whereStatement) |
protected static void |
addByArsdBefore(java.util.Date date,
WhereStatement whereStatement) |
protected static void |
addByCf(WhereStatement whereStatement) |
protected static void |
addByDf(WhereStatement whereStatement) |
protected static void |
addByEsid(long esid,
WhereStatement whereStatement) |
protected static void |
addByEuid(long euid,
WhereStatement whereStatement) |
protected static void |
addById(long id,
WhereStatement whereStatement) |
protected static void |
addByIdSet(java.lang.String idSet,
WhereStatement whereStatement) |
protected static void |
addByRid(long rid,
WhereStatement whereStatement) |
protected static void |
addByTid(long tid,
WhereStatement whereStatement) |
protected static void |
addNotCf(WhereStatement whereStatement) |
static <S extends CommonState> |
addStateToEntity(CommonState state,
FdfEntity<S> entity)
Manages the addition of a state to an entity.
|
static <S extends CommonState> |
auditAll(java.lang.Class<S> entityState)
Retrieves all entities including deleted records of type passed from persistence.
|
static <S extends CommonState> |
auditAll(java.lang.Class<S> entityState,
long tenantId)
Retrieves all entities including deleted records of type passed from persistence.
|
static <S extends CommonState> |
auditAllAtDate(java.lang.Class<S> entityState,
java.util.Date date)
Retrieves all entities of the passed type from persistence as they existed at the date passed.
|
static <S extends CommonState> |
auditAllAtDate(java.lang.Class<S> entityState,
java.util.Date date,
long tenantId)
Retrieves all entities of the passed type from persistence as they existed at the date passed.
|
static <S extends CommonState> |
auditAllCurrent(java.lang.Class<S> entityState)
Retrieves all entities including deleted records of type passed from persistence, only returns current data for
each entity, without any historical data.
|
static <S extends CommonState> |
auditAllCurrent(java.lang.Class<S> entityState,
long tenantId)
Retrieves all entities including deleted records of type passed from persistence, only returns current data for
each entity, without any historical data.
|
protected static void |
auditAtDate(java.util.Date date,
long tenantId,
WhereStatement whereStatement) |
static <S extends CommonState> |
auditAtDateById(java.lang.Class<S> entityState,
long id,
java.util.Date date)
Retrieves entity of the passed type from persistence as it existed at the date passed.
|
static <S extends CommonState> |
auditAtDateById(java.lang.Class<S> entityState,
long id,
java.util.Date date,
long tenantId)
Retrieves entity of the passed type from persistence as it existed at the date passed.
|
static <S extends CommonState> |
auditEntityById(java.lang.Class<S> entityState,
long id)
Retrieves the entity associated with the id passed.
|
static <S extends CommonState> |
auditEntityById(java.lang.Class<S> entityState,
long id,
long tenantId)
Retrieves the entity associated with the id passed.
|
static <S extends CommonState> |
auditEntityByRid(java.lang.Class<S> entityState,
long rid)
Retrieves all entities including deleted records of type passed from persistence.
|
static <S extends CommonState> |
auditEntityCurrentById(java.lang.Class<S> entityState,
long id,
long tenantId) |
protected static void |
auditForCurrent(long tenantId,
WhereStatement whereStatement) |
static <S extends CommonState> |
getAll(java.lang.Class<S> entityState)
Retrieves all entities of type passed from persistence.
|
static <S extends CommonState> |
getAll(java.lang.Class<S> entityState,
long tenantId)
Retrieves all entities of type passed from persistence.
|
static <S extends CommonState> |
getAllAtDate(java.lang.Class<S> entityState,
java.util.Date date)
Retrieves all entities of the passed type from persistence as they existed at the date passed.
|
static <S extends CommonState> |
getAllAtDate(java.lang.Class<S> entityState,
java.util.Date date,
long tenantId)
Retrieves all entities of the passed type from persistence as they existed at the date passed.
|
static <S extends CommonState> |
getAllBeforeDate(java.lang.Class<S> entityState,
java.util.Date date)
Retrieves all entities that have states active starting at or before at the date passed into the method.
|
static <S extends CommonState> |
getAllBeforeDate(java.lang.Class<S> entityState,
java.util.Date date,
long tenantId)
Retrieves all entities that have states active starting at or before at the date passed into the method.
|
static <S extends CommonState> |
getAllBetweenDates(java.lang.Class<S> entityState,
java.util.Date startDate,
java.util.Date endDate)
Retrieves all entities that have states active starting at or before at the startDate passed into the method
and ending at or after the endDate passed.
|
static <S extends CommonState> |
getAllBetweenDates(java.lang.Class<S> entityState,
java.util.Date startDate,
java.util.Date endDate,
long tenantId)
Retrieves all entities that have states active starting at or before at the startDate passed into the method
and ending at or after the endDate passed.
|
static <S extends CommonState> |
getAllCurrent(java.lang.Class<S> entityState)
Retrieves all entities of type passed from persistence, only returns current data for each entity, without
any historical data.
|
static <S extends CommonState> |
getAllCurrent(java.lang.Class<S> entityState,
long tenantId)
Retrieves all entities of type passed from persistence, only returns current data for each entity, without
any historical data.
|
static <S extends CommonState> |
getAllFromDate(java.lang.Class<S> entityState,
java.util.Date date)
Retrieves all entities that have states active starting at or after the date passed into the method.
|
static <S extends CommonState> |
getAllFromDate(java.lang.Class<S> entityState,
java.util.Date date,
long tenantId)
Retrieves all entities that have states active starting at or after the date passed into the method.
|
static <S extends CommonState> |
getAllHistory(java.lang.Class<S> entityState)
Retrieves all entities of type passed from persistence, only returning the historical data in the entity,
no current data is included.
|
static <S extends CommonState> |
getAllHistory(java.lang.Class<S> entityState,
long tenantId)
Retrieves all entities of type passed from persistence, only returning the historical data in the entity,
no current data is included.
|
static <S extends CommonState> |
getAtDateById(java.lang.Class<S> entityState,
long id,
java.util.Date date)
Retrieves entity of the passed type from persistence as it existed at the date passed.
|
static <S extends CommonState> |
getAtDateById(java.lang.Class<S> entityState,
long id,
java.util.Date date,
long tenantId)
Retrieves entity of the passed type from persistence as it existed at the date passed.
|
static <S extends CommonState> |
getEntitiesByValueForPassedField(java.lang.Class<S> entityState,
java.lang.String fieldName,
java.lang.String value)
Retrieves the entity associated that contains the value passed for the field passed.
|
static <S extends CommonState> |
getEntitiesByValueForPassedField(java.lang.Class<S> entityState,
java.lang.String fieldName,
java.lang.String value,
long tenantId)
Retrieves the entity associated that contains the value passed for the field passed.
|
static <S extends CommonState> |
getEntitiesByValuesForPassedFields(java.lang.Class<S> entityState,
java.util.HashMap<java.lang.String,java.lang.String> fieldsAndValues)
Retrieves the entity associated that contains the value passed for the field passed.
|
static <S extends CommonState> |
getEntitiesByValuesForPassedFields(java.lang.Class<S> entityState,
java.util.HashMap<java.lang.String,java.lang.String> fieldsAndValues,
long tenantId)
Retrieves the entity associated that contains the value passed for the field passed.
|
static <S extends CommonState> |
getEntityBeforeDateById(java.lang.Class<S> entityState,
long id,
java.util.Date date)
Retrieves entity that has states active starting at or before at the date passed into the method.
|
static <S extends CommonState> |
getEntityBeforeDateById(java.lang.Class<S> entityState,
long id,
java.util.Date date,
long tenantId)
Retrieves entity that has states active starting at or before at the date passed into the method.
|
static <S extends CommonState> |
getEntityBetweenDatesById(java.lang.Class<S> entityState,
long id,
java.util.Date startDate,
java.util.Date endDate)
Retrieves entity that has states active starting at or before at the startDate passed into the method
and ending at or after the endDate passed.
|
static <S extends CommonState> |
getEntityBetweenDatesById(java.lang.Class<S> entityState,
long id,
java.util.Date startDate,
java.util.Date endDate,
long tenantId)
Retrieves entity that has states active starting at or before at the startDate passed into the method
and ending at or after the endDate passed.
|
static <S extends CommonState> |
getEntityById(java.lang.Class<S> entityState,
long id)
Retrieves the entity associated with the id passed.
|
static <S extends CommonState> |
getEntityById(java.lang.Class<S> entityState,
long id,
long tenantId)
Retrieves the entity associated with the id passed.
|
static <S extends CommonState> |
getEntityByRid(java.lang.Class<S> entityState,
long rid)
Retrieves the entity associated with the rid passed.
|
static <S extends CommonState> |
getEntityCurrentById(java.lang.Class<S> entityState,
long id)
Retrieves the entity of type passed from persistence, only returns current data, without any historical
data.
|
static <S extends CommonState> |
getEntityCurrentById(java.lang.Class<S> entityState,
long id,
long tenantId)
Retrieves the entity of type passed from persistence, only returns current data, without any historical
data.
|
static <S extends CommonState> |
getEntityFromDateById(java.lang.Class<S> entityState,
long id,
java.util.Date date)
Retrieves states active starting at or after the date passed into the method for the entity requested.
|
static <S extends CommonState> |
getEntityFromDateById(java.lang.Class<S> entityState,
long id,
java.util.Date date,
long tenantId)
Retrieves states active starting at or after the date passed into the method for the entity requested.
|
static <S extends CommonState> |
getEntityHistoryById(java.lang.Class<S> entityState,
long id)
Retrieves entity of type passed from persistence, only returning the historical data in the entity,
no current data is included.
|
static <S extends CommonState> |
getEntityHistoryById(java.lang.Class<S> entityState,
long id,
long tenantId)
Retrieves entity of type passed from persistence, only returning the historical data in the entity,
no current data is included.
|
static <S extends CommonState> |
getNewEntityId(java.lang.Class<S> entityState)
Uses the Default FdfTenant (when not using multi-tenant)
|
static <S extends CommonState> |
getNewEntityId(java.lang.Class<S> entityState,
long tenantId)
Includes specified tenant (when using multi-tenant)
|
static <S extends CommonState> |
manageReturnedEntities(java.util.List<S> rawStates)
Takes a list of raw states returned by a query and organizes them into separate entities of type passed.
|
static <S extends CommonState> |
manageReturnedEntity(java.util.List<S> rawStates)
Takes a list of raw states returned by a query and organizes them into separate entities of type passed.
|
static <S extends CommonState> |
removeDeleteFlag(java.lang.Class<S> entityState,
long id,
long userId,
long systemId)
Removes delete flag for entity.
|
static <S extends CommonState> |
removeDeleteFlag(java.lang.Class<S> entityState,
long id,
long userId,
long systemId,
long tenantId)
Removes delete flag for entity.
|
static <S extends CommonState> |
save(java.lang.Class<S> entityState,
S state)
Save an Entities State to persistence internally manages all insert, update and actions associated with
maintaining the correct state of the data in persistence.
|
static <S extends CommonState> |
save(java.lang.Class<S> entityState,
S state,
long userId,
long systemId)
Save an Entities State to persistence internally manages all insert, update and actions associated with
maintaining the correct state of the data in persistence.
|
static <S extends CommonState> |
save(java.lang.Class<S> entityState,
S state,
long userId,
long systemId,
long tenantId)
Save an Entities State to persistence internally manages all insert, update and actions associated with
maintaining the correct state of the data in persistence.
|
static <S extends CommonState> |
save(S state,
java.lang.Class<S> entityState)
Save an Entities State to persistence internally manages all insert, update and actions associated with
maintaining the correct state of the data in persistence.
|
static <S extends CommonState> |
save(S state,
java.lang.Class<S> entityState,
long userId,
long systemId)
Save an Entities State to persistence internally manages all insert, update and actions associated with
maintaining the correct state of the data in persistence.
|
static <S extends CommonState> |
save(S state,
java.lang.Class<S> entityState,
long userId,
long systemId,
long tenantId)
Save an Entities State to persistence internally manages all insert, update and actions associated with
maintaining the correct state of the data in persistence.
|
protected static void |
setAtDate(java.util.Date date,
long tenantId,
WhereStatement whereStatement) |
static <S extends CommonState> |
setDeleteFlag(java.lang.Class<S> entityState,
long id,
long userId,
long systemId)
Sets delete flag for entity.
|
static <S extends CommonState> |
setDeleteFlag(java.lang.Class<S> entityState,
long id,
long userId,
long systemId,
long tenantId)
Sets delete flag for entity.
|
protected static void |
setForCurrent(long tenantId,
WhereStatement whereStatement) |
protected static void |
setWithHistory(long tenantId,
WhereStatement whereStatement) |
public static <S extends CommonState> S save(S state, java.lang.Class<S> entityState, long userId, long systemId)
S - parameterized type of entity statestate - state to saveentityState - State Type to saveuserId - Id of user that is saving the statesystemId - Id of system that is saving the statepublic static <S extends CommonState> S save(S state, java.lang.Class<S> entityState)
S - parameterized type of entity statestate - state to saveentityState - State Type to savepublic static <S extends CommonState> S save(S state, java.lang.Class<S> entityState, long userId, long systemId, long tenantId)
S - parameterized type of entity statestate - state to saveentityState - State Type to saveuserId - Id of user that is saving the statesystemId - Id of system that is saving the statetenantId - Id of tenant this entity is associated withpublic static <S extends CommonState> FdfEntity<S> save(java.lang.Class<S> entityState, S state, long userId, long systemId)
S - parameterized type of entity stateentityState - State Type to savestate - state to saveuserId - Id of user that is saving the statesystemId - Id of system that is saving the statepublic static <S extends CommonState> FdfEntity<S> save(java.lang.Class<S> entityState, S state)
S - parameterized type of entity stateentityState - State Type to savestate - state to savepublic static <S extends CommonState> FdfEntity<S> save(java.lang.Class<S> entityState, S state, long userId, long systemId, long tenantId)
S - parameterized type of entity stateentityState - State Type to savestate - state to saveuserId - Id of user that is saving the statesystemId - Id of system that is saving the statetenantId - Id of tenant this entity is associated withpublic static <S extends CommonState> FdfEntity<S> setDeleteFlag(java.lang.Class<S> entityState, long id, long userId, long systemId)
S - The parameterized type of the entityentityState - The Entity Type to mark deletedid - The Id of the entity to mark deleteduserId - the userId of the user making the changesystemId - the systemId of the system makeing the changepublic static <S extends CommonState> FdfEntity<S> setDeleteFlag(java.lang.Class<S> entityState, long id, long userId, long systemId, long tenantId)
S - The parameterized type of the entityentityState - The Entity Type to mark deletedid - The Id of the entity to mark deleteduserId - the userId of the user making the changesystemId - the systemId of the system makeing the changetenantId - the tenantId of the tenant making the change (if multi tenant)public static <S extends CommonState> FdfEntity<S> removeDeleteFlag(java.lang.Class<S> entityState, long id, long userId, long systemId)
S - The parameterized type of the entityentityState - The Entity Type to mark deletedid - The Id of the entity to mark deleteduserId - the userId of the user making the changesystemId - the systemId of the system makeing the changepublic static <S extends CommonState> FdfEntity<S> removeDeleteFlag(java.lang.Class<S> entityState, long id, long userId, long systemId, long tenantId)
S - The parameterized type of the entityentityState - The Entity Type to mark deletedid - The Id of the entity to mark deleteduserId - the userId of the user making the changesystemId - the systemId of the system makeing the changetenantId - the tenantId of the tenant making the change (if multi tenant)public static <S extends CommonState> java.util.List<FdfEntity<S>> auditAll(java.lang.Class<S> entityState)
S - parameterized type of entityentityState - The entity type to querypublic static <S extends CommonState> java.util.List<FdfEntity<S>> auditAll(java.lang.Class<S> entityState, long tenantId)
S - parameterized type of entityentityState - The entity type to querytenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> java.util.List<S> auditAllCurrent(java.lang.Class<S> entityState)
S - parameterized type of entityentityState - The entity type to querypublic static <S extends CommonState> java.util.List<S> auditAllCurrent(java.lang.Class<S> entityState, long tenantId)
S - parameterized type of entityentityState - The entity type to querytenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> java.util.List<FdfEntity<S>> getAll(java.lang.Class<S> entityState)
S - parameterized type of entityentityState - The entity type to querypublic static <S extends CommonState> java.util.List<FdfEntity<S>> getAll(java.lang.Class<S> entityState, long tenantId)
S - parameterized type of entityentityState - The entity type to querytenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> java.util.List<S> getAllCurrent(java.lang.Class<S> entityState)
S - parameterized type of entityentityState - The entity type to querypublic static <S extends CommonState> java.util.List<S> getAllCurrent(java.lang.Class<S> entityState, long tenantId)
S - parameterized type of entityentityState - The entity type to querytenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> java.util.List<FdfEntity<S>> getAllHistory(java.lang.Class<S> entityState)
S - parameterized type of entityentityState - The entity type to querypublic static <S extends CommonState> java.util.List<FdfEntity<S>> getAllHistory(java.lang.Class<S> entityState, long tenantId)
S - parameterized type of entityentityState - The entity type to querytenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> java.util.List<S> getAllAtDate(java.lang.Class<S> entityState, java.util.Date date)
S - parameterized type of entityentityState - The entity type to querydate - Date at which to get entities statepublic static <S extends CommonState> java.util.List<S> getAllAtDate(java.lang.Class<S> entityState, java.util.Date date, long tenantId)
S - parameterized type of entityentityState - The entity type to querydate - Date at which to get entities statetenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> java.util.List<S> auditAllAtDate(java.lang.Class<S> entityState, java.util.Date date)
S - parameterized type of entityentityState - The entity type to querydate - Date at which to get entities statepublic static <S extends CommonState> java.util.List<S> auditAllAtDate(java.lang.Class<S> entityState, java.util.Date date, long tenantId)
S - parameterized type of entityentityState - The entity type to querydate - Date at which to get entities statetenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> java.util.List<FdfEntity<S>> getAllFromDate(java.lang.Class<S> entityState, java.util.Date date)
S - parameterized type of entityentityState - The entity type to querydate - Date to get entities states frompublic static <S extends CommonState> java.util.List<FdfEntity<S>> getAllFromDate(java.lang.Class<S> entityState, java.util.Date date, long tenantId)
S - parameterized type of entityentityState - The entity type to querydate - Date to get entities states fromtenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> java.util.List<FdfEntity<S>> getAllBeforeDate(java.lang.Class<S> entityState, java.util.Date date)
S - parameterized type of entityentityState - The entity type to querydate - Date to get entities states beforepublic static <S extends CommonState> java.util.List<FdfEntity<S>> getAllBeforeDate(java.lang.Class<S> entityState, java.util.Date date, long tenantId)
S - parameterized type of entityentityState - The entity type to querydate - Date to get entities states beforetenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> java.util.List<FdfEntity<S>> getAllBetweenDates(java.lang.Class<S> entityState, java.util.Date startDate, java.util.Date endDate)
S - parameterized type of entityentityState - The entity type to querystartDate - Starting date in range to return entity state inendDate - Ending date in range to return entity state inpublic static <S extends CommonState> java.util.List<FdfEntity<S>> getAllBetweenDates(java.lang.Class<S> entityState, java.util.Date startDate, java.util.Date endDate, long tenantId)
S - parameterized type of entityentityState - The entity type to querystartDate - Starting date in range to return entity state inendDate - Ending date in range to return entity state intenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> S getEntityByRid(java.lang.Class<S> entityState, long rid)
S - Parameterized type of entityentityState - The entity type to queryrid - The Id of the Entity to retrievepublic static <S extends CommonState> S auditEntityByRid(java.lang.Class<S> entityState, long rid)
S - Parameterized type of entityentityState - The entity type to queryrid - The Id of the Entity to retrievepublic static <S extends CommonState> FdfEntity<S> auditEntityById(java.lang.Class<S> entityState, long id)
S - Parameterized type of entityentityState - The entity type to queryid - The Id of the Entity to retrievepublic static <S extends CommonState> FdfEntity<S> auditEntityById(java.lang.Class<S> entityState, long id, long tenantId)
S - Parameterized type of entityentityState - The entity type to queryid - The Id of the Entity to retrievetenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> FdfEntity<S> getEntityById(java.lang.Class<S> entityState, long id)
S - Parameterized type of entityentityState - The entity type to queryid - The Id of the Entity to retrievepublic static <S extends CommonState> FdfEntity<S> getEntityById(java.lang.Class<S> entityState, long id, long tenantId)
S - Parameterized type of entityentityState - The entity type to queryid - The Id of the Entity to retrievetenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> S getEntityCurrentById(java.lang.Class<S> entityState, long id)
S - parameterized type of entityentityState - The entity type to queryid - Id of the Entity to retrievepublic static <S extends CommonState> S getEntityCurrentById(java.lang.Class<S> entityState, long id, long tenantId)
S - parameterized type of entityentityState - The entity type to queryid - Id of the Entity to retrievetenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> S auditEntityCurrentById(java.lang.Class<S> entityState, long id, long tenantId)
public static <S extends CommonState> FdfEntity<S> getEntityHistoryById(java.lang.Class<S> entityState, long id)
S - parameterized type of entityentityState - The entity type to queryid - Id of the Entity to retrievepublic static <S extends CommonState> FdfEntity<S> getEntityHistoryById(java.lang.Class<S> entityState, long id, long tenantId)
S - parameterized type of entityentityState - The entity type to queryid - Id of the Entity to retrievetenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> java.util.List<FdfEntity<S>> getEntitiesByValueForPassedField(java.lang.Class<S> entityState, java.lang.String fieldName, java.lang.String value)
S - Parameterized type of entityentityState - The entity type to queryfieldName - The Field of that is being checked for the passed valuevalue - The value that we are checking in the field passed for.public static <S extends CommonState> java.util.List<FdfEntity<S>> getEntitiesByValueForPassedField(java.lang.Class<S> entityState, java.lang.String fieldName, java.lang.String value, long tenantId)
S - Parameterized type of entityentityState - The entity type to queryfieldName - The Field of that is being checked for the passed valuevalue - The value that we are checking in the field passed for.tenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> java.util.List<FdfEntity<S>> getEntitiesByValuesForPassedFields(java.lang.Class<S> entityState, java.util.HashMap<java.lang.String,java.lang.String> fieldsAndValues)
S - Parameterized type of entityentityState - The entity type to queryfieldsAndValues - HashMap that contains Key: Field and Value: value pairs to query bypublic static <S extends CommonState> java.util.List<FdfEntity<S>> getEntitiesByValuesForPassedFields(java.lang.Class<S> entityState, java.util.HashMap<java.lang.String,java.lang.String> fieldsAndValues, long tenantId)
S - Parameterized type of entityentityState - The entity type to queryfieldsAndValues - HashMap that contains Key: Field and Value: value pairs to query bytenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> S getAtDateById(java.lang.Class<S> entityState, long id, java.util.Date date)
S - parameterized type of entityentityState - The entity type to queryid - Id of the Entity to retrievedate - Date to get entity state atpublic static <S extends CommonState> S getAtDateById(java.lang.Class<S> entityState, long id, java.util.Date date, long tenantId)
S - parameterized type of entityentityState - The entity type to queryid - Id of the Entity to retrievedate - Date to get entity state attenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> S auditAtDateById(java.lang.Class<S> entityState, long id, java.util.Date date)
S - parameterized type of entityentityState - The entity type to queryid - Id of the Entity to retrievedate - Date to get entity state atpublic static <S extends CommonState> S auditAtDateById(java.lang.Class<S> entityState, long id, java.util.Date date, long tenantId)
S - parameterized type of entityentityState - The entity type to queryid - Id of the Entity to retrievedate - Date to get entity state attenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> FdfEntity<S> getEntityFromDateById(java.lang.Class<S> entityState, long id, java.util.Date date)
S - parameterized type of entityentityState - The entity type to queryid - Id of the Entity to retrievedate - Date to get entity state(s) frompublic static <S extends CommonState> FdfEntity<S> getEntityFromDateById(java.lang.Class<S> entityState, long id, java.util.Date date, long tenantId)
S - parameterized type of entityentityState - The entity type to queryid - Id of the Entity to retrievedate - Date to get entity state(s) fromtenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> FdfEntity<S> getEntityBeforeDateById(java.lang.Class<S> entityState, long id, java.util.Date date)
S - parameterized type of entityentityState - The entity type to queryid - Id of the Entity to retrievedate - Date to get entity state(s) beforepublic static <S extends CommonState> FdfEntity<S> getEntityBeforeDateById(java.lang.Class<S> entityState, long id, java.util.Date date, long tenantId)
S - parameterized type of entityentityState - The entity type to queryid - Id of the Entity to retrievedate - Date to get entity state(s) beforetenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> FdfEntity<S> getEntityBetweenDatesById(java.lang.Class<S> entityState, long id, java.util.Date startDate, java.util.Date endDate)
S - Parameterized type of entityentityState - The entity type to queryid - Id of the Entity to retrievestartDate - Start date in range to get entity state(s) withinendDate - End date in range to get entity state(s) withinpublic static <S extends CommonState> FdfEntity<S> getEntityBetweenDatesById(java.lang.Class<S> entityState, long id, java.util.Date startDate, java.util.Date endDate, long tenantId)
S - Parameterized type of entityentityState - The entity type to queryid - Id of the Entity to retrievestartDate - Start date in range to get entity state(s) withinendDate - End date in range to get entity state(s) withintenantId - Id of the tenant to retrieve for (Multi-FdfTenant mode)public static <S extends CommonState> java.util.List<FdfEntity<S>> manageReturnedEntities(java.util.List<S> rawStates)
S - Parameterized Type of entityrawStates - : List of states to organize into entities
//@param entityState : Class of entity to use for returned type.public static <S extends CommonState> FdfEntity<S> manageReturnedEntity(java.util.List<S> rawStates)
S - Parameterized Type of entityrawStates - : List of states to organize into entities
//@param entityState : Class of entity to use for returned type.public static <S extends CommonState> void addStateToEntity(CommonState state, FdfEntity<S> entity)
S - Parameterized type of Statestate - State to be added to an Entityentity - Entity that will have a state addedpublic static <S extends CommonState> long getNewEntityId(java.lang.Class<S> entityState)
S - Parameterized type of State.entityState - Class of entity to use for returned type.public static <S extends CommonState> long getNewEntityId(java.lang.Class<S> entityState, long tenantId)
S - Parameterized type of State.entityState - Class of entity to use for returned type.tenantId - Id of tenant associated with the entityprotected static void addByRid(long rid,
WhereStatement whereStatement)
protected static void addById(long id,
WhereStatement whereStatement)
protected static void addByIdSet(java.lang.String idSet,
WhereStatement whereStatement)
protected static void addByCf(WhereStatement whereStatement)
protected static void addNotCf(WhereStatement whereStatement)
protected static void addByDf(WhereStatement whereStatement)
protected static void addByArsdBefore(java.util.Date date,
WhereStatement whereStatement)
protected static void addByArsdAfter(java.util.Date date,
WhereStatement whereStatement)
protected static void addByAredBefore(java.util.Date date,
WhereStatement whereStatement)
protected static void addByAredAfter(java.util.Date date,
WhereStatement whereStatement)
protected static void addAtDate(java.util.Date date,
WhereStatement whereStatement)
protected static void addByTid(long tid,
WhereStatement whereStatement)
protected static void addByEuid(long euid,
WhereStatement whereStatement)
protected static void addByEsid(long esid,
WhereStatement whereStatement)
protected static void setForCurrent(long tenantId,
WhereStatement whereStatement)
protected static void setAtDate(java.util.Date date,
long tenantId,
WhereStatement whereStatement)
protected static void setWithHistory(long tenantId,
WhereStatement whereStatement)
protected static void auditForCurrent(long tenantId,
WhereStatement whereStatement)
protected static void auditAtDate(java.util.Date date,
long tenantId,
WhereStatement whereStatement)