Commit b6086b72 by Nilu

adding culture element description

parent 2c610723
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<column name="object_last_updated_date" type="Date" nullable="false" length="22"/> <column name="object_last_updated_date" type="Date" nullable="false" length="22"/>
<column name="object_created_date" type="Date" nullable="false" length="22"/> <column name="object_created_date" type="Date" nullable="false" length="22"/>
<column name="culture_element_desc" type="String" nullable="true" length="200"/> <column name="culture_element_desc" type="String" nullable="true" length="200"/>
<column name="detailed_desc" type="String" nullable="true" length="2000"/>
<column name="culture_class_code" type="String" nullable="true" length="200"/> <column name="culture_class_code" type="String" nullable="true" length="200"/>
</NODE> </NODE>
......
...@@ -9,6 +9,7 @@ CREATE TABLE tl_culture_element ( ...@@ -9,6 +9,7 @@ CREATE TABLE tl_culture_element (
object_created_date datetime DEFAULT getdate() NOT NULL object_created_date datetime DEFAULT getdate() NOT NULL
, ,
culture_element_desc varchar(200) NULL, culture_element_desc varchar(200) NULL,
detailed_desc varchar(2000) NULL,
culture_class_code varchar(200) NULL culture_class_code varchar(200) NULL
); );
......
...@@ -10,6 +10,7 @@ CREATE TABLE tl_culture_element ( ...@@ -10,6 +10,7 @@ CREATE TABLE tl_culture_element (
object_created_date date DEFAULT SYSDATE NOT NULL object_created_date date DEFAULT SYSDATE NOT NULL
, ,
culture_element_desc varchar2(200) NULL, culture_element_desc varchar2(200) NULL,
detailed_desc varchar2(2000) NULL,
culture_class_code varchar2(200) NULL culture_class_code varchar2(200) NULL
); );
......
...@@ -10,6 +10,7 @@ CREATE TABLE tl_culture_element ( ...@@ -10,6 +10,7 @@ CREATE TABLE tl_culture_element (
object_created_date timestamp DEFAULT NOW() NOT NULL object_created_date timestamp DEFAULT NOW() NOT NULL
, ,
culture_element_desc varchar(200) NULL, culture_element_desc varchar(200) NULL,
detailed_desc varchar(2000) NULL,
culture_class_code varchar(200) NULL culture_class_code varchar(200) NULL
); );
......
...@@ -12,8 +12,9 @@ ...@@ -12,8 +12,9 @@
<TABLE name="tl_culture_element" tablePrefix="object" polymorphic="FALSE"> <TABLE name="tl_culture_element" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="Description" type="String" dbcol="culture_element_desc" length="200"/> <ATTRIB name="Description" type="String" dbcol="culture_element_desc" length="200"/>
<ATTRIB name="CultureClass" type="CultureClass" dbcol="culture_class_code" attribHelper="EnumeratedAttributeHelper" /> <ATTRIB name="DetailedDescription" type="String" dbcol="detailed_desc" length="2000"/>
<ATTRIB name="CultureClass" type="CultureClass" dbcol="culture_class_code" attribHelper="EnumeratedAttributeHelper" />
</TABLE> </TABLE>
......
...@@ -28,11 +28,13 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr ...@@ -28,11 +28,13 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr
// Private attributes corresponding to business object data // Private attributes corresponding to business object data
private String dummyDescription; private String dummyDescription;
private String dummyDetailedDescription;
private CultureClass dummyCultureClass; private CultureClass dummyCultureClass;
// Static constants corresponding to attribute helpers // Static constants corresponding to attribute helpers
private static final DefaultAttributeHelper HELPER_Description = DefaultAttributeHelper.INSTANCE; private static final DefaultAttributeHelper HELPER_Description = DefaultAttributeHelper.INSTANCE;
private static final DefaultAttributeHelper HELPER_DetailedDescription = DefaultAttributeHelper.INSTANCE;
private static final EnumeratedAttributeHelper HELPER_CultureClass = new EnumeratedAttributeHelper (CultureClass.FACTORY_CultureClass); private static final EnumeratedAttributeHelper HELPER_CultureClass = new EnumeratedAttributeHelper (CultureClass.FACTORY_CultureClass);
...@@ -41,11 +43,12 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr ...@@ -41,11 +43,12 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr
public CultureElementPersistenceMgr () public CultureElementPersistenceMgr ()
{ {
dummyDescription = (String)(HELPER_Description.initialise (dummyDescription)); dummyDescription = (String)(HELPER_Description.initialise (dummyDescription));
dummyDetailedDescription = (String)(HELPER_DetailedDescription.initialise (dummyDetailedDescription));
dummyCultureClass = (CultureClass)(HELPER_CultureClass.initialise (dummyCultureClass)); dummyCultureClass = (CultureClass)(HELPER_CultureClass.initialise (dummyCultureClass));
} }
private String SELECT_COLUMNS = "{PREFIX}tl_culture_element.object_id as id, {PREFIX}tl_culture_element.object_LAST_UPDATED_DATE as LAST_UPDATED_DATE, {PREFIX}tl_culture_element.object_CREATED_DATE as CREATED_DATE, {PREFIX}tl_culture_element.culture_element_desc, {PREFIX}tl_culture_element.culture_class_code, 1 AS commasafe "; private String SELECT_COLUMNS = "{PREFIX}tl_culture_element.object_id as id, {PREFIX}tl_culture_element.object_LAST_UPDATED_DATE as LAST_UPDATED_DATE, {PREFIX}tl_culture_element.object_CREATED_DATE as CREATED_DATE, {PREFIX}tl_culture_element.culture_element_desc, {PREFIX}tl_culture_element.detailed_desc, {PREFIX}tl_culture_element.culture_class_code, 1 AS commasafe ";
private String SELECT_JOINS = ""; private String SELECT_JOINS = "";
public BaseBusinessClass fetchByID(ObjectID id, PersistentSetCollection allPSets, RDBMSPersistenceContext context, SQLManager sqlMgr) throws SQLException, StorageException public BaseBusinessClass fetchByID(ObjectID id, PersistentSetCollection allPSets, RDBMSPersistenceContext context, SQLManager sqlMgr) throws SQLException, StorageException
...@@ -97,6 +100,7 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr ...@@ -97,6 +100,7 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr
// Check for persistent sets already prefetched // Check for persistent sets already prefetched
if (false || !tl_culture_elementPSet.containsAttrib(BaseBusinessClass.FIELD_ObjectLastModified) || if (false || !tl_culture_elementPSet.containsAttrib(BaseBusinessClass.FIELD_ObjectLastModified) ||
!tl_culture_elementPSet.containsAttrib(CultureElement.FIELD_Description)|| !tl_culture_elementPSet.containsAttrib(CultureElement.FIELD_Description)||
!tl_culture_elementPSet.containsAttrib(CultureElement.FIELD_DetailedDescription)||
!tl_culture_elementPSet.containsAttrib(CultureElement.FIELD_CultureClass)) !tl_culture_elementPSet.containsAttrib(CultureElement.FIELD_CultureClass))
{ {
// We will need to retrieve it // We will need to retrieve it
...@@ -167,10 +171,10 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr ...@@ -167,10 +171,10 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr
{ {
int rowsUpdated = executeStatement (sqlMgr, int rowsUpdated = executeStatement (sqlMgr,
"UPDATE {PREFIX}tl_culture_element " + "UPDATE {PREFIX}tl_culture_element " +
"SET culture_element_desc = ?, culture_class_code = ? , object_LAST_UPDATED_DATE = " + sqlMgr.getPortabilityServices ().getTimestampExpression () + " " + "SET culture_element_desc = ?, detailed_desc = ?, culture_class_code = ? , object_LAST_UPDATED_DATE = " + sqlMgr.getPortabilityServices ().getTimestampExpression () + " " +
"WHERE tl_culture_element.object_id = ? AND " + getConcurrencyCheck (sqlMgr, "object_LAST_UPDATED_DATE", obj.getObjectLastModified ()) + " ", "WHERE tl_culture_element.object_id = ? AND " + getConcurrencyCheck (sqlMgr, "object_LAST_UPDATED_DATE", obj.getObjectLastModified ()) + " ",
CollectionUtils.listEntry (HELPER_Description.getForSQL(dummyDescription, tl_culture_elementPSet.getAttrib (CultureElement.FIELD_Description))).listEntry (HELPER_CultureClass.getForSQL(dummyCultureClass, tl_culture_elementPSet.getAttrib (CultureElement.FIELD_CultureClass))).listEntry (objectID.longID ()).listEntry (obj.getObjectLastModified ()).toList().toArray()); CollectionUtils.listEntry (HELPER_Description.getForSQL(dummyDescription, tl_culture_elementPSet.getAttrib (CultureElement.FIELD_Description))).listEntry (HELPER_DetailedDescription.getForSQL(dummyDetailedDescription, tl_culture_elementPSet.getAttrib (CultureElement.FIELD_DetailedDescription))).listEntry (HELPER_CultureClass.getForSQL(dummyCultureClass, tl_culture_elementPSet.getAttrib (CultureElement.FIELD_CultureClass))).listEntry (objectID.longID ()).listEntry (obj.getObjectLastModified ()).toList().toArray());
if (rowsUpdated != 1) if (rowsUpdated != 1)
{ {
...@@ -427,6 +431,7 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr ...@@ -427,6 +431,7 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr
tl_culture_elementPSet.setAttrib(BaseBusinessClass.FIELD_ObjectCreated, r.getTimestamp ("CREATED_DATE")); tl_culture_elementPSet.setAttrib(BaseBusinessClass.FIELD_ObjectCreated, r.getTimestamp ("CREATED_DATE"));
tl_culture_elementPSet.setAttrib(CultureElement.FIELD_Description, HELPER_Description.getFromRS(dummyDescription, r, "culture_element_desc")); tl_culture_elementPSet.setAttrib(CultureElement.FIELD_Description, HELPER_Description.getFromRS(dummyDescription, r, "culture_element_desc"));
tl_culture_elementPSet.setAttrib(CultureElement.FIELD_DetailedDescription, HELPER_DetailedDescription.getFromRS(dummyDetailedDescription, r, "detailed_desc"));
tl_culture_elementPSet.setAttrib(CultureElement.FIELD_CultureClass, HELPER_CultureClass.getFromRS(dummyCultureClass, r, "culture_class_code")); tl_culture_elementPSet.setAttrib(CultureElement.FIELD_CultureClass, HELPER_CultureClass.getFromRS(dummyCultureClass, r, "culture_class_code"));
...@@ -445,10 +450,10 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr ...@@ -445,10 +450,10 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr
{ {
executeStatement (sqlMgr, executeStatement (sqlMgr,
"INSERT INTO {PREFIX}tl_culture_element " + "INSERT INTO {PREFIX}tl_culture_element " +
" (culture_element_desc, culture_class_code, object_id, object_LAST_UPDATED_DATE, object_CREATED_DATE) " + " (culture_element_desc, detailed_desc, culture_class_code, object_id, object_LAST_UPDATED_DATE, object_CREATED_DATE) " +
"VALUES " + "VALUES " +
" (?, ?, ?, " + sqlMgr.getPortabilityServices ().getTimestampExpression () + ", " + sqlMgr.getPortabilityServices ().getTimestampExpression () + ")", " (?, ?, ?, ?, " + sqlMgr.getPortabilityServices ().getTimestampExpression () + ", " + sqlMgr.getPortabilityServices ().getTimestampExpression () + ")",
CollectionUtils.listEntry (HELPER_Description.getForSQL(dummyDescription, tl_culture_elementPSet.getAttrib (CultureElement.FIELD_Description))).listEntry (HELPER_CultureClass.getForSQL(dummyCultureClass, tl_culture_elementPSet.getAttrib (CultureElement.FIELD_CultureClass))) .listEntry (objectID.longID ()).toList().toArray()); CollectionUtils.listEntry (HELPER_Description.getForSQL(dummyDescription, tl_culture_elementPSet.getAttrib (CultureElement.FIELD_Description))).listEntry (HELPER_DetailedDescription.getForSQL(dummyDetailedDescription, tl_culture_elementPSet.getAttrib (CultureElement.FIELD_DetailedDescription))).listEntry (HELPER_CultureClass.getForSQL(dummyCultureClass, tl_culture_elementPSet.getAttrib (CultureElement.FIELD_CultureClass))) .listEntry (objectID.longID ()).toList().toArray());
tl_culture_elementPSet.setStatus (PersistentSetStatus.PROCESSED); tl_culture_elementPSet.setStatus (PersistentSetStatus.PROCESSED);
} }
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- @AutoRun -->
<OBJECTS name="" xmlns:oneit="http://www.1iT.com.au">
<NODE name="Script" factory="Vector">
<NODE name="DDL" factory="Participant" class="oneit.sql.transfer.RedefineTableOperation">
<tableName factory="String">tl_culture_element</tableName>
<column name="detailed_desc" type="String" nullable="true" length="2000"/>
</NODE>
</NODE>
</OBJECTS>
\ No newline at end of file
Update tl_culture_element set detailed_desc = 'Corporate citizenship involves the social responsibility of organisations, and the extent to which they meet legal, ethical and economic responsibilities.' where lower(culture_element_desc) = lower('Corporate Citizen');
Update tl_culture_element set detailed_desc = 'Formality is the degree to which traditional rules are followed. Even though you knew your request for time off at work would be approved, you still went through the formality of filling out all the required paperwork.' where lower(culture_element_desc) = lower('Formality');
Update tl_culture_element set detailed_desc = 'Religious, in this context is "having to do with religion". The extent to which an organisation has an expectation around spirituality.' where lower(culture_element_desc) = lower('Religious');
Update tl_culture_element set detailed_desc = 'The extent to which the organisation prioritises renumeration, especially compared to other non-financial workplace benefits.' where lower(culture_element_desc) = lower('Remuneration');
Update tl_culture_element set detailed_desc = 'The willingness or readiness to receive communication, feedback and input, especially impressions or ideas.' where lower(culture_element_desc) = lower('Communications and Openness');
Update tl_culture_element set detailed_desc = 'Idealism is the belief that we should always strive for our highest ideals. To pursue high-minded goals and right conduct.' where lower(culture_element_desc) = lower('Idealism');
Update tl_culture_element set detailed_desc = 'Having strong commitment to doing the right thing in a reliable way or in accordance with a code of morals.' where lower(culture_element_desc) = lower('Honesty, Integrity and Ethics');
Update tl_culture_element set detailed_desc = 'Giving priority to the development of employees at the cost of the organisation through training and education.' where lower(culture_element_desc) = lower('Training and Education');
Update tl_culture_element set detailed_desc = 'The extent to which an organisation actively seeks to provide a career path for employees.' where lower(culture_element_desc) = lower('Career Opportunities');
Update tl_culture_element set detailed_desc = 'Whether the organisation actively seeks to increase diversity of ethnicity, gender and class.' where lower(culture_element_desc) = lower('Diversity');
Update tl_culture_element set detailed_desc = 'An outgoing and welcoming style to leadership that encourages friendliness between employees.' where lower(culture_element_desc) = lower('Friendliness');
Update tl_culture_element set detailed_desc = 'A sense of allegiance, commitment and dedication between employer and employee.' where lower(culture_element_desc) = lower('Loyalty');
Update tl_culture_element set detailed_desc = 'Team members working together to help achieve larger goals.' where lower(culture_element_desc) = lower('Teamwork');
Update tl_culture_element set detailed_desc = 'The extent to which the same opportunities exist for women as men.' where lower(culture_element_desc) = lower('Gender');
Update tl_culture_element set detailed_desc = 'Whether there is inherent stress within the workplace, especially where that stress may be imposed by situations outside of management control.' where lower(culture_element_desc) = lower('Stress');
Update tl_culture_element set detailed_desc = 'The comparative standard of the workplace and the physical facilities provided to employees.' where lower(culture_element_desc) = lower('Working Conditions/Physical Environment');
Update tl_culture_element set detailed_desc = 'The extent to which there is a strong desire for success and achievement.' where lower(culture_element_desc) = lower('Ambitious');
Update tl_culture_element set detailed_desc = 'Whether the organisation places strong importance on being on-time and punctual for work times and work activities. This may be outside of management control where punctuality is dictated by customer expectations.' where lower(culture_element_desc) = lower('Punctuality');
Update tl_culture_element set detailed_desc = 'The priority that the organisation places on improvement, change and the introduction of something new.' where lower(culture_element_desc) = lower('Innovation');
Update tl_culture_element set detailed_desc = 'Whether the leadership is open to questions regarding business practices.' where lower(culture_element_desc) = lower('Do as You Are Told');
Update tl_culture_element set detailed_desc = 'Expectations for a style of dress or adherence to wearing a workplace uniform.' where lower(culture_element_desc) = lower('Dress Code');
Update tl_culture_element set detailed_desc = 'Whether the workplace has genuine concern for others, either workmates or customers.' where lower(culture_element_desc) = lower('Caring');
Update tl_culture_element set detailed_desc = 'Explicit avoidance of forms of expression or action that are perceived to exclude, marginalize, or insult groups of people who are socially disadvantaged or discriminated against.' where lower(culture_element_desc) = lower('Political Correctness ');
Update tl_culture_element set detailed_desc = 'Whether there is an organisational quality of making judgments that are free from discrimination.' where lower(culture_element_desc) = lower('Fairness');
Update tl_culture_element set detailed_desc = 'The extent to which the organisation expects employees to be open to change and to implement change willingly.' where lower(culture_element_desc) = lower('Adaptability to Change');
Update tl_culture_element set detailed_desc = 'The degree of commitment to put the safety and health of employees ahead of other priorities.' where lower(culture_element_desc) = lower('Workplace Health and Safety');
Update tl_culture_element set detailed_desc = 'Expectation to always act in a professional manner regarding critical thinking, acting ethically and responsibly.' where lower(culture_element_desc) = lower('Professional Behaviour');
Update tl_culture_element set detailed_desc = 'The extent to which employees are expected to follow rules.' where lower(culture_element_desc) = lower('Following Rules');
Update tl_culture_element set detailed_desc = 'The degree to which the role and/or organisation is focussed on delivery of front-line customer service.' where lower(culture_element_desc) = lower('Customer Service');
Update tl_culture_element set detailed_desc = 'Whether the organisation is strictly business or whether there is an element of fun to the workplace.' where lower(culture_element_desc) = lower('Work and Fun');
Update tl_culture_element set detailed_desc = 'The involvement expected in setting and executing the vision and strategy of the organisation.' where lower(culture_element_desc) = lower('Vision and Strategy');
Update tl_culture_element set detailed_desc = 'The extent to which employee productivity and performance is or interest and is measured and monitored.' where lower(culture_element_desc) = lower('Productivity and Performance');
Update tl_culture_element set detailed_desc = 'Whether there is an emphasis on goals and outcomes and that those goals are clearly expressed to employees.' where lower(culture_element_desc) = lower('Goals ');
Update tl_culture_element set detailed_desc = 'Whether the organisation has expectations of being guided by practical experience and observation rather than theory.' where lower(culture_element_desc) = lower('Practical');
Update tl_culture_element set detailed_desc = 'The extent that employees are able to voice concerns without fear of ramifications.' where lower(culture_element_desc) = lower('Power and Fear');
Update tl_culture_element set detailed_desc = 'Whether advancement within the organisation is focused on results, perhaps at the expense of other culture elements.' where lower(culture_element_desc) = lower('Results');
Update tl_culture_element set detailed_desc = 'The degree to which attention to detail is valued or required by the organisation.' where lower(culture_element_desc) = lower('Detail');
Update tl_culture_element set detailed_desc = 'Whether risk taking is tolerated, especially as prioritised against other culture elements.' where lower(culture_element_desc) = lower('Risk Taking');
Update tl_culture_element set detailed_desc = 'The extent to which taking initiative is encouraged.' where lower(culture_element_desc) = lower('Initiative');
Update tl_culture_element set detailed_desc = 'Whether the role requires a person with the ability to provide leadership to others.' where lower(culture_element_desc) = lower('Leadership');
Update tl_culture_element set detailed_desc = 'The degree of sales activity and ability that is required.' where lower(culture_element_desc) = lower('Sales Skills');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment