Class LogCleanUpConfig
- java.lang.Object
-
- org.openbravo.base.structure.BaseOBObject
-
- org.openbravo.utility.cleanup.log.LogCleanUpConfig
-
- All Implemented Interfaces:
Serializable
,BaseOBObjectDef
,OBNotSingleton
,OBProvidable
,ActiveEnabled
,ClientEnabled
,DynamicEnabled
,Identifiable
,OrganizationEnabled
,Traceable
public class LogCleanUpConfig extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled
Entity class for entity OBULOG_Config (stored in table OBULOG_Config).
NOTE: This class should not be instantiated directly. To instantiate this class theOBProvider
should be used.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENTITY_NAME
static String
PROPERTY_ACTIVE
Property active stored in column Isactive in table OBULOG_Configstatic String
PROPERTY_CLIENT
Property client stored in column AD_Client_ID in table OBULOG_Configstatic String
PROPERTY_COLUMN
Property column stored in column AD_Column_ID in table OBULOG_Config
Help: Link to the database column of the tablestatic String
PROPERTY_CREATEDBY
Property createdBy stored in column Createdby in table OBULOG_Configstatic String
PROPERTY_CREATIONDATE
Property creationDate stored in column Created in table OBULOG_Configstatic String
PROPERTY_ENTITYALIAS
Property entityAlias stored in column Entity_Alias in table OBULOG_Config
Help: Defines the main entity alias in the HQL Where Clause so it can be used in subqueries. If left empty there'll be no alias on the main entity.static String
PROPERTY_HQLWHERECLAUSE
Property hQLWhereClause stored in column Hqlwhereclause in table OBULOG_Config
Help: By using this HQL filter, the user will never be able to see data that does not fit the criteria. The HQL where clause is added to the query to retrieve the data which is returned by the datasourcestatic String
PROPERTY_ID
Property id stored in column Obulog_Config_ID in table OBULOG_Configstatic String
PROPERTY_OLDERTHAN
Property olderThan stored in column Older_Than in table OBULOG_Config
Help: When the clean up process is executed, records older than this number of days will be removed. If this value is 0, all records will be removed.static String
PROPERTY_ORGANIZATION
Property organization stored in column AD_Org_ID in table OBULOG_Configstatic String
PROPERTY_TABLE
Property table stored in column AD_Table_ID in table OBULOG_Config
Help: The Table indicates the table in which a field or fields reside.static String
PROPERTY_TRUNCATETABLE
Property truncateTable stored in column IsTruncate in table OBULOG_Config
Help: Truncate all data in the table (technically truncate table DB statement). When flagged, all data in the table will be completely removed not being possible to define any other restriction. It is only possible to truncate a table in case there is no any other table in the system having a foreign key pointing to this one. Truncating a table results performs better in terms of time/resources consumption.static String
PROPERTY_UPDATED
Property updated stored in column Updated in table OBULOG_Configstatic String
PROPERTY_UPDATEDBY
Property updatedBy stored in column Updatedby in table OBULOG_Configstatic String
TABLE_NAME
-
Fields inherited from class org.openbravo.base.structure.BaseOBObject
ID
-
-
Constructor Summary
Constructors Constructor Description LogCleanUpConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Client
getClient()
Client fieldColumn
getColumn()
User
getCreatedBy()
Created by audit userDate
getCreationDate()
Creation date of auditString
getEntityAlias()
String
getEntityName()
String
getHQLWhereClause()
String
getId()
Long
getOlderThan()
Organization
getOrganization()
Gets organization fieldTable
getTable()
Date
getUpdated()
Update date of auditUser
getUpdatedBy()
Update by audit userBoolean
isActive()
Gets active fieldBoolean
isTruncateTable()
void
setActive(Boolean active)
Sets active fieldvoid
setClient(Client client)
Client fieldvoid
setColumn(Column column)
void
setCreatedBy(User createdBy)
Created by audit uservoid
setCreationDate(Date creationDate)
Creation date of auditvoid
setEntityAlias(String entityAlias)
void
setHQLWhereClause(String hQLWhereClause)
void
setId(String id)
void
setOlderThan(Long olderThan)
void
setOrganization(Organization organization)
Sets organization fieldvoid
setTable(Table table)
void
setTruncateTable(Boolean truncateTable)
void
setUpdated(Date updated)
Update date of auditvoid
setUpdatedBy(User updatedBy)
Update by audit user-
Methods inherited from class org.openbravo.base.structure.BaseOBObject
checkDerivedReadable, get, get, get, getEntity, getIdentifier, getValue, isAllowRead, isNewOBObject, isOrgClientAccessCheckEnabled, isWriteAccessCheckEnabled, set, setAccessChecks, setAllowRead, setDefaultValue, setId, setNewOBObject, setValue, toString, validate
-
-
-
-
Field Detail
-
TABLE_NAME
public static final String TABLE_NAME
- See Also:
- Constant Field Values
-
ENTITY_NAME
public static final String ENTITY_NAME
- See Also:
- Constant Field Values
-
PROPERTY_ID
public static final String PROPERTY_ID
Property id stored in column Obulog_Config_ID in table OBULOG_Config- See Also:
- Constant Field Values
-
PROPERTY_CLIENT
public static final String PROPERTY_CLIENT
Property client stored in column AD_Client_ID in table OBULOG_Config- See Also:
ClientEnabled
, Constant Field Values
-
PROPERTY_ORGANIZATION
public static final String PROPERTY_ORGANIZATION
Property organization stored in column AD_Org_ID in table OBULOG_Config- See Also:
OrganizationEnabled
, Constant Field Values
-
PROPERTY_ACTIVE
public static final String PROPERTY_ACTIVE
Property active stored in column Isactive in table OBULOG_Config- See Also:
ActiveEnabled
, Constant Field Values
-
PROPERTY_CREATIONDATE
public static final String PROPERTY_CREATIONDATE
Property creationDate stored in column Created in table OBULOG_Config- See Also:
Traceable
, Constant Field Values
-
PROPERTY_CREATEDBY
public static final String PROPERTY_CREATEDBY
Property createdBy stored in column Createdby in table OBULOG_Config- See Also:
Traceable
, Constant Field Values
-
PROPERTY_UPDATED
public static final String PROPERTY_UPDATED
Property updated stored in column Updated in table OBULOG_Config- See Also:
Traceable
, Constant Field Values
-
PROPERTY_UPDATEDBY
public static final String PROPERTY_UPDATEDBY
Property updatedBy stored in column Updatedby in table OBULOG_Config- See Also:
Traceable
, Constant Field Values
-
PROPERTY_TABLE
public static final String PROPERTY_TABLE
Property table stored in column AD_Table_ID in table OBULOG_Config
Help: The Table indicates the table in which a field or fields reside.- See Also:
- Constant Field Values
-
PROPERTY_OLDERTHAN
public static final String PROPERTY_OLDERTHAN
Property olderThan stored in column Older_Than in table OBULOG_Config
Help: When the clean up process is executed, records older than this number of days will be removed. If this value is 0, all records will be removed.- See Also:
- Constant Field Values
-
PROPERTY_COLUMN
public static final String PROPERTY_COLUMN
Property column stored in column AD_Column_ID in table OBULOG_Config
Help: Link to the database column of the table- See Also:
- Constant Field Values
-
PROPERTY_HQLWHERECLAUSE
public static final String PROPERTY_HQLWHERECLAUSE
Property hQLWhereClause stored in column Hqlwhereclause in table OBULOG_Config
Help: By using this HQL filter, the user will never be able to see data that does not fit the criteria. The HQL where clause is added to the query to retrieve the data which is returned by the datasource- See Also:
- Constant Field Values
-
PROPERTY_TRUNCATETABLE
public static final String PROPERTY_TRUNCATETABLE
Property truncateTable stored in column IsTruncate in table OBULOG_Config
Help: Truncate all data in the table (technically truncate table DB statement). When flagged, all data in the table will be completely removed not being possible to define any other restriction. It is only possible to truncate a table in case there is no any other table in the system having a foreign key pointing to this one. Truncating a table results performs better in terms of time/resources consumption.- See Also:
- Constant Field Values
-
PROPERTY_ENTITYALIAS
public static final String PROPERTY_ENTITYALIAS
Property entityAlias stored in column Entity_Alias in table OBULOG_Config
Help: Defines the main entity alias in the HQL Where Clause so it can be used in subqueries. If left empty there'll be no alias on the main entity.- See Also:
- Constant Field Values
-
-
Method Detail
-
getEntityName
public String getEntityName()
- Specified by:
getEntityName
in interfaceIdentifiable
- Specified by:
getEntityName
in classBaseOBObject
-
getId
public String getId()
- Specified by:
getId
in interfaceBaseOBObjectDef
- Specified by:
getId
in interfaceIdentifiable
- Overrides:
getId
in classBaseOBObject
- See Also:
PROPERTY_ID
-
setId
public void setId(String id)
- See Also:
PROPERTY_ID
-
getClient
public Client getClient()
Description copied from interface:ClientEnabled
Client field- Specified by:
getClient
in interfaceClientEnabled
- Returns:
- client
- See Also:
PROPERTY_CLIENT
-
setClient
public void setClient(Client client)
Description copied from interface:ClientEnabled
Client field- Specified by:
setClient
in interfaceClientEnabled
- See Also:
PROPERTY_CLIENT
-
getOrganization
public Organization getOrganization()
Description copied from interface:OrganizationEnabled
Gets organization field- Specified by:
getOrganization
in interfaceOrganizationEnabled
- Returns:
- organization
- See Also:
PROPERTY_ORGANIZATION
-
setOrganization
public void setOrganization(Organization organization)
Description copied from interface:OrganizationEnabled
Sets organization field- Specified by:
setOrganization
in interfaceOrganizationEnabled
- See Also:
PROPERTY_ORGANIZATION
-
isActive
public Boolean isActive()
Description copied from interface:ActiveEnabled
Gets active field- Specified by:
isActive
in interfaceActiveEnabled
- Returns:
- active
- See Also:
PROPERTY_ACTIVE
-
setActive
public void setActive(Boolean active)
Description copied from interface:ActiveEnabled
Sets active field- Specified by:
setActive
in interfaceActiveEnabled
- See Also:
PROPERTY_ACTIVE
-
getCreationDate
public Date getCreationDate()
Description copied from interface:Traceable
Creation date of audit- Specified by:
getCreationDate
in interfaceTraceable
- Returns:
- Date of creation
- See Also:
PROPERTY_CREATIONDATE
-
setCreationDate
public void setCreationDate(Date creationDate)
Description copied from interface:Traceable
Creation date of audit- Specified by:
setCreationDate
in interfaceTraceable
- See Also:
PROPERTY_CREATIONDATE
-
getCreatedBy
public User getCreatedBy()
Description copied from interface:Traceable
Created by audit user- Specified by:
getCreatedBy
in interfaceTraceable
- Returns:
- User
- See Also:
PROPERTY_CREATEDBY
-
setCreatedBy
public void setCreatedBy(User createdBy)
Description copied from interface:Traceable
Created by audit user- Specified by:
setCreatedBy
in interfaceTraceable
- See Also:
PROPERTY_CREATEDBY
-
getUpdated
public Date getUpdated()
Description copied from interface:Traceable
Update date of audit- Specified by:
getUpdated
in interfaceTraceable
- Returns:
- Date of update
- See Also:
PROPERTY_UPDATED
-
setUpdated
public void setUpdated(Date updated)
Description copied from interface:Traceable
Update date of audit- Specified by:
setUpdated
in interfaceTraceable
- See Also:
PROPERTY_UPDATED
-
getUpdatedBy
public User getUpdatedBy()
Description copied from interface:Traceable
Update by audit user- Specified by:
getUpdatedBy
in interfaceTraceable
- Returns:
- User who updated
- See Also:
PROPERTY_UPDATEDBY
-
setUpdatedBy
public void setUpdatedBy(User updatedBy)
Description copied from interface:Traceable
Update by audit user- Specified by:
setUpdatedBy
in interfaceTraceable
- See Also:
PROPERTY_UPDATEDBY
-
getTable
public Table getTable()
- See Also:
PROPERTY_TABLE
-
setTable
public void setTable(Table table)
- See Also:
PROPERTY_TABLE
-
getOlderThan
public Long getOlderThan()
- See Also:
PROPERTY_OLDERTHAN
-
setOlderThan
public void setOlderThan(Long olderThan)
- See Also:
PROPERTY_OLDERTHAN
-
getColumn
public Column getColumn()
- See Also:
PROPERTY_COLUMN
-
setColumn
public void setColumn(Column column)
- See Also:
PROPERTY_COLUMN
-
getHQLWhereClause
public String getHQLWhereClause()
- See Also:
PROPERTY_HQLWHERECLAUSE
-
setHQLWhereClause
public void setHQLWhereClause(String hQLWhereClause)
- See Also:
PROPERTY_HQLWHERECLAUSE
-
isTruncateTable
public Boolean isTruncateTable()
- See Also:
PROPERTY_TRUNCATETABLE
-
setTruncateTable
public void setTruncateTable(Boolean truncateTable)
- See Also:
PROPERTY_TRUNCATETABLE
-
getEntityAlias
public String getEntityAlias()
- See Also:
PROPERTY_ENTITYALIAS
-
setEntityAlias
public void setEntityAlias(String entityAlias)
- See Also:
PROPERTY_ENTITYALIAS
-
-