Commit b6086b72 by Nilu

adding culture element description

parent 2c610723
......@@ -9,6 +9,7 @@
<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="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"/>
</NODE>
......
......@@ -9,6 +9,7 @@ CREATE TABLE tl_culture_element (
object_created_date datetime DEFAULT getdate() NOT NULL
,
culture_element_desc varchar(200) NULL,
detailed_desc varchar(2000) NULL,
culture_class_code varchar(200) NULL
);
......
......@@ -10,6 +10,7 @@ CREATE TABLE tl_culture_element (
object_created_date date DEFAULT SYSDATE NOT NULL
,
culture_element_desc varchar2(200) NULL,
detailed_desc varchar2(2000) NULL,
culture_class_code varchar2(200) NULL
);
......
......@@ -10,6 +10,7 @@ CREATE TABLE tl_culture_element (
object_created_date timestamp DEFAULT NOW() NOT NULL
,
culture_element_desc varchar(200) NULL,
detailed_desc varchar(2000) NULL,
culture_class_code varchar(200) NULL
);
......
......@@ -41,6 +41,7 @@ public abstract class BaseCultureElement extends BaseBusinessClass
// Static constants corresponding to field names
public static final String FIELD_Description = "Description";
public static final String FIELD_DetailedDescription = "DetailedDescription";
public static final String FIELD_CultureClass = "CultureClass";
public static final String MULTIPLEREFERENCE_Questions = "Questions";
public static final String BACKREF_Questions = "";
......@@ -55,11 +56,13 @@ public abstract class BaseCultureElement extends BaseBusinessClass
// Static constants corresponding to attribute helpers
private static final DefaultAttributeHelper<CultureElement> HELPER_Description = DefaultAttributeHelper.INSTANCE;
private static final DefaultAttributeHelper<CultureElement> HELPER_DetailedDescription = DefaultAttributeHelper.INSTANCE;
private static final EnumeratedAttributeHelper<CultureElement, CultureClass> HELPER_CultureClass = new EnumeratedAttributeHelper<CultureElement, CultureClass> (CultureClass.FACTORY_CultureClass);
// Private attributes corresponding to business object data
private String _Description;
private String _DetailedDescription;
private CultureClass _CultureClass;
......@@ -77,6 +80,7 @@ public abstract class BaseCultureElement extends BaseBusinessClass
// Arrays of validators for each attribute
private static final AttributeValidator[] FIELD_Description_Validators;
private static final AttributeValidator[] FIELD_DetailedDescription_Validators;
private static final AttributeValidator[] FIELD_CultureClass_Validators;
......@@ -98,6 +102,7 @@ public abstract class BaseCultureElement extends BaseBusinessClass
setupAssocMetaData_Ratings();
setupAssocMetaData_Narratives();
FIELD_Description_Validators = (AttributeValidator[])setupAttribMetaData_Description(validatorMapping).toArray (new AttributeValidator[0]);
FIELD_DetailedDescription_Validators = (AttributeValidator[])setupAttribMetaData_DetailedDescription(validatorMapping).toArray (new AttributeValidator[0]);
FIELD_CultureClass_Validators = (AttributeValidator[])setupAttribMetaData_CultureClass(validatorMapping).toArray (new AttributeValidator[0]);
......@@ -175,6 +180,25 @@ public abstract class BaseCultureElement extends BaseBusinessClass
}
// Meta Info setup
private static List setupAttribMetaData_DetailedDescription(Map validatorMapping)
{
Map metaInfo = new HashMap ();
metaInfo.put ("dbcol", "detailed_desc");
metaInfo.put ("length", "2000");
metaInfo.put ("name", "DetailedDescription");
metaInfo.put ("type", "String");
LogMgr.log (BUSINESS_OBJECTS, LogLevel.DEBUG2, "Metadata for CultureElement.DetailedDescription:", metaInfo);
ATTRIBUTES_METADATA_CultureElement.put (FIELD_DetailedDescription, Collections.unmodifiableMap (metaInfo));
List validators = BaseBusinessClass.getAttribValidators(CultureElement.class, "DetailedDescription", metaInfo, validatorMapping);
LogMgr.log (BUSINESS_OBJECTS, LogLevel.DEBUG1, "Validators for CultureElement.DetailedDescription:", validators);
return validators;
}
// Meta Info setup
private static List setupAttribMetaData_CultureClass(Map validatorMapping)
{
Map metaInfo = new HashMap ();
......@@ -221,6 +245,7 @@ public abstract class BaseCultureElement extends BaseBusinessClass
_Description = (String)(HELPER_Description.initialise (_Description));
_DetailedDescription = (String)(HELPER_DetailedDescription.initialise (_DetailedDescription));
_CultureClass = (CultureClass)(HELPER_CultureClass.initialise (_CultureClass));
}
......@@ -351,6 +376,104 @@ public abstract class BaseCultureElement extends BaseBusinessClass
}
/**
* Get the attribute DetailedDescription
*/
public String getDetailedDescription ()
{
assertValid();
String valToReturn = _DetailedDescription;
for (CultureElementBehaviourDecorator bhd : CultureElement_BehaviourDecorators)
{
valToReturn = bhd.getDetailedDescription ((CultureElement)this, valToReturn);
}
return valToReturn;
}
/**
* Called prior to the attribute changing. Subclasses need not call super. If a field exception
* is thrown, the attribute change will fail. The new value is different to the old value.
*/
protected void preDetailedDescriptionChange (String newDetailedDescription) throws FieldException
{
}
/**
* Called after the attribute changes.
* If a field exception is thrown, the value is still changed, however it
* may lead to the TX being rolled back
*/
protected void postDetailedDescriptionChange () throws FieldException
{
}
public FieldWriteability getWriteability_DetailedDescription ()
{
return getFieldWritabilityUtil (FieldWriteability.TRUE);
}
/**
* Set the attribute DetailedDescription. Checks to ensure a new value
* has been supplied. If so, marks the field as altered and sets the attribute.
*/
public void setDetailedDescription (String newDetailedDescription) throws FieldException
{
boolean oldAndNewIdentical = HELPER_DetailedDescription.compare (_DetailedDescription, newDetailedDescription);
try
{
for (CultureElementBehaviourDecorator bhd : CultureElement_BehaviourDecorators)
{
newDetailedDescription = bhd.setDetailedDescription ((CultureElement)this, newDetailedDescription);
oldAndNewIdentical = HELPER_DetailedDescription.compare (_DetailedDescription, newDetailedDescription);
}
if (FIELD_DetailedDescription_Validators.length > 0)
{
Object newDetailedDescriptionObj = HELPER_DetailedDescription.toObject (newDetailedDescription);
if (newDetailedDescriptionObj != null)
{
int loopMax = FIELD_DetailedDescription_Validators.length;
Map metadata = (Map)ATTRIBUTES_METADATA_CultureElement.get (FIELD_DetailedDescription);
for (int v = 0 ; v < loopMax ; ++v)
{
FIELD_DetailedDescription_Validators[v].checkAttribute (this, FIELD_DetailedDescription, metadata, newDetailedDescriptionObj);
}
}
}
}
catch (FieldException e)
{
if (!oldAndNewIdentical)
{
e.setWouldModify ();
}
throw e;
}
if (!oldAndNewIdentical)
{
assertValid();
Debug.assertion (getWriteability_DetailedDescription () != FieldWriteability.FALSE, "Field DetailedDescription is not writeable");
preDetailedDescriptionChange (newDetailedDescription);
markFieldChange (FIELD_DetailedDescription);
_DetailedDescription = newDetailedDescription;
postFieldChange (FIELD_DetailedDescription);
postDetailedDescriptionChange ();
}
}
/**
* Get the attribute CultureClass
*/
public CultureClass getCultureClass ()
......@@ -1073,6 +1196,7 @@ public abstract class BaseCultureElement extends BaseBusinessClass
tl_culture_elementPSet.setAttrib (FIELD_ObjectID, myID);
tl_culture_elementPSet.setAttrib (FIELD_Description, HELPER_Description.toObject (_Description)); //
tl_culture_elementPSet.setAttrib (FIELD_DetailedDescription, HELPER_DetailedDescription.toObject (_DetailedDescription)); //
tl_culture_elementPSet.setAttrib (FIELD_CultureClass, HELPER_CultureClass.toObject (_CultureClass)); //
}
......@@ -1089,6 +1213,7 @@ public abstract class BaseCultureElement extends BaseBusinessClass
PersistentSet tl_culture_elementPSet = allSets.getPersistentSet (objectID, "tl_culture_element");
_Description = (String)(HELPER_Description.fromObject (_Description, tl_culture_elementPSet.getAttrib (FIELD_Description))); //
_DetailedDescription = (String)(HELPER_DetailedDescription.fromObject (_DetailedDescription, tl_culture_elementPSet.getAttrib (FIELD_DetailedDescription))); //
_CultureClass = (CultureClass)(HELPER_CultureClass.fromObject (_CultureClass, tl_culture_elementPSet.getAttrib (FIELD_CultureClass))); //
}
......@@ -1116,6 +1241,15 @@ public abstract class BaseCultureElement extends BaseBusinessClass
try
{
setDetailedDescription (otherCultureElement.getDetailedDescription ());
}
catch (FieldException ex)
{
e.addException (ex);
}
try
{
setCultureClass (otherCultureElement.getCultureClass ());
}
catch (FieldException ex)
......@@ -1139,6 +1273,7 @@ public abstract class BaseCultureElement extends BaseBusinessClass
BaseCultureElement sourceCultureElement = (BaseCultureElement)(source);
_Description = sourceCultureElement._Description;
_DetailedDescription = sourceCultureElement._DetailedDescription;
_CultureClass = sourceCultureElement._CultureClass;
}
......@@ -1196,6 +1331,7 @@ public abstract class BaseCultureElement extends BaseBusinessClass
super.readExternalData(vals);
_Description = (String)(HELPER_Description.readExternal (_Description, vals.get(FIELD_Description))); //
_DetailedDescription = (String)(HELPER_DetailedDescription.readExternal (_DetailedDescription, vals.get(FIELD_DetailedDescription))); //
_CultureClass = (CultureClass)(HELPER_CultureClass.readExternal (_CultureClass, vals.get(FIELD_CultureClass))); //
_Questions.readExternalData(vals.get(MULTIPLEREFERENCE_Questions));
_Ratings.readExternalData(vals.get(MULTIPLEREFERENCE_Ratings));
......@@ -1212,6 +1348,7 @@ public abstract class BaseCultureElement extends BaseBusinessClass
super.writeExternalData(vals);
vals.put (FIELD_Description, HELPER_Description.writeExternal (_Description));
vals.put (FIELD_DetailedDescription, HELPER_DetailedDescription.writeExternal (_DetailedDescription));
vals.put (FIELD_CultureClass, HELPER_CultureClass.writeExternal (_CultureClass));
vals.put (MULTIPLEREFERENCE_Questions, _Questions.writeExternalData());
vals.put (MULTIPLEREFERENCE_Ratings, _Ratings.writeExternalData());
......@@ -1233,6 +1370,10 @@ public abstract class BaseCultureElement extends BaseBusinessClass
{
listener.notifyFieldChange(this, other, FIELD_Description, HELPER_Description.toObject(this._Description), HELPER_Description.toObject(otherCultureElement._Description));
}
if (!HELPER_DetailedDescription.compare(this._DetailedDescription, otherCultureElement._DetailedDescription))
{
listener.notifyFieldChange(this, other, FIELD_DetailedDescription, HELPER_DetailedDescription.toObject(this._DetailedDescription), HELPER_DetailedDescription.toObject(otherCultureElement._DetailedDescription));
}
if (!HELPER_CultureClass.compare(this._CultureClass, otherCultureElement._CultureClass))
{
listener.notifyFieldChange(this, other, FIELD_CultureClass, HELPER_CultureClass.toObject(this._CultureClass), HELPER_CultureClass.toObject(otherCultureElement._CultureClass));
......@@ -1263,6 +1404,7 @@ public abstract class BaseCultureElement extends BaseBusinessClass
super.visitAttributes (visitor);
visitor.visitField(this, FIELD_Description, HELPER_Description.toObject(getDescription()));
visitor.visitField(this, FIELD_DetailedDescription, HELPER_DetailedDescription.toObject(getDetailedDescription()));
visitor.visitField(this, FIELD_CultureClass, HELPER_CultureClass.toObject(getCultureClass()));
visitor.visitAssociation (_Questions);
visitor.visitAssociation (_Ratings);
......@@ -1316,6 +1458,10 @@ public abstract class BaseCultureElement extends BaseBusinessClass
{
return filter.matches (getDescription ());
}
else if (attribName.equals (FIELD_DetailedDescription))
{
return filter.matches (getDetailedDescription ());
}
else if (attribName.equals (FIELD_CultureClass))
{
return filter.matches (getCultureClass ());
......@@ -1357,6 +1503,12 @@ public abstract class BaseCultureElement extends BaseBusinessClass
return this;
}
public SearchAll andDetailedDescription (QueryFilter<String> filter)
{
filter.addFilter (context, "tl_culture_element.detailed_desc", "DetailedDescription");
return this;
}
public SearchAll andCultureClass (QueryFilter<CultureClass> filter)
{
filter.addFilter (context, "tl_culture_element.culture_class_code", "CultureClass");
......@@ -1402,6 +1554,10 @@ public abstract class BaseCultureElement extends BaseBusinessClass
{
return HELPER_Description.toObject (getDescription ());
}
else if (attribName.equals (FIELD_DetailedDescription))
{
return HELPER_DetailedDescription.toObject (getDetailedDescription ());
}
else if (attribName.equals (FIELD_CultureClass))
{
return HELPER_CultureClass.toObject (getCultureClass ());
......@@ -1423,6 +1579,10 @@ public abstract class BaseCultureElement extends BaseBusinessClass
{
return HELPER_Description;
}
else if (attribName.equals (FIELD_DetailedDescription))
{
return HELPER_DetailedDescription;
}
else if (attribName.equals (FIELD_CultureClass))
{
return HELPER_CultureClass;
......@@ -1444,6 +1604,10 @@ public abstract class BaseCultureElement extends BaseBusinessClass
{
setDescription ((String)(HELPER_Description.fromObject (_Description, attribValue)));
}
else if (attribName.equals (FIELD_DetailedDescription))
{
setDetailedDescription ((String)(HELPER_DetailedDescription.fromObject (_DetailedDescription, attribValue)));
}
else if (attribName.equals (FIELD_CultureClass))
{
setCultureClass ((CultureClass)(HELPER_CultureClass.fromObject (_CultureClass, attribValue)));
......@@ -1472,6 +1636,10 @@ public abstract class BaseCultureElement extends BaseBusinessClass
{
return getWriteability_Description ();
}
else if (fieldName.equals (FIELD_DetailedDescription))
{
return getWriteability_DetailedDescription ();
}
else if (fieldName.equals (FIELD_CultureClass))
{
return getWriteability_CultureClass ();
......@@ -1503,6 +1671,11 @@ public abstract class BaseCultureElement extends BaseBusinessClass
fields.add (FIELD_Description);
}
if (getWriteability_DetailedDescription () != FieldWriteability.TRUE)
{
fields.add (FIELD_DetailedDescription);
}
if (getWriteability_CultureClass () != FieldWriteability.TRUE)
{
fields.add (FIELD_CultureClass);
......@@ -1518,6 +1691,7 @@ public abstract class BaseCultureElement extends BaseBusinessClass
result.add(HELPER_Description.getAttribObject (getClass (), _Description, false, FIELD_Description));
result.add(HELPER_DetailedDescription.getAttribObject (getClass (), _DetailedDescription, false, FIELD_DetailedDescription));
result.add(HELPER_CultureClass.getAttribObject (getClass (), _CultureClass, false, FIELD_CultureClass));
return result;
......@@ -1588,6 +1762,24 @@ public abstract class BaseCultureElement extends BaseBusinessClass
}
/**
* Get the attribute DetailedDescription
*/
public String getDetailedDescription (CultureElement obj, String original)
{
return original;
}
/**
* Change the value set for attribute DetailedDescription.
* May modify the field beforehand
* Occurs before validation.
*/
public String setDetailedDescription (CultureElement obj, String newDetailedDescription) throws FieldException
{
return newDetailedDescription;
}
/**
* Get the attribute CultureClass
*/
public CultureClass getCultureClass (CultureElement obj, CultureClass original)
......@@ -1673,6 +1865,10 @@ public abstract class BaseCultureElement extends BaseBusinessClass
{
return toDescription ();
}
if (name.equals ("DetailedDescription"))
{
return toDetailedDescription ();
}
if (name.equals ("CultureClass"))
{
return toCultureClass ();
......@@ -1685,6 +1881,8 @@ public abstract class BaseCultureElement extends BaseBusinessClass
public PipeLine<From, String> toDescription () { return pipe(new ORMAttributePipe<Me, String>(FIELD_Description)); }
public PipeLine<From, String> toDetailedDescription () { return pipe(new ORMAttributePipe<Me, String>(FIELD_DetailedDescription)); }
public PipeLine<From, CultureClass> toCultureClass () { return pipe(new ORMAttributePipe<Me, CultureClass>(FIELD_CultureClass)); }
public CultureElementQuestion.CultureElementQuestionPipeLineFactory<From, CultureElementQuestion> toQuestions () { return toQuestions(Filter.ALL); }
......
......@@ -13,6 +13,7 @@
<TABLE name="tl_culture_element" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="Description" type="String" dbcol="culture_element_desc" length="200"/>
<ATTRIB name="DetailedDescription" type="String" dbcol="detailed_desc" length="2000"/>
<ATTRIB name="CultureClass" type="CultureClass" dbcol="culture_class_code" attribHelper="EnumeratedAttributeHelper" />
</TABLE>
......
......@@ -28,11 +28,13 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr
// Private attributes corresponding to business object data
private String dummyDescription;
private String dummyDetailedDescription;
private CultureClass dummyCultureClass;
// Static constants corresponding to attribute helpers
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);
......@@ -41,11 +43,12 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr
public CultureElementPersistenceMgr ()
{
dummyDescription = (String)(HELPER_Description.initialise (dummyDescription));
dummyDetailedDescription = (String)(HELPER_DetailedDescription.initialise (dummyDetailedDescription));
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 = "";
public BaseBusinessClass fetchByID(ObjectID id, PersistentSetCollection allPSets, RDBMSPersistenceContext context, SQLManager sqlMgr) throws SQLException, StorageException
......@@ -97,6 +100,7 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr
// Check for persistent sets already prefetched
if (false || !tl_culture_elementPSet.containsAttrib(BaseBusinessClass.FIELD_ObjectLastModified) ||
!tl_culture_elementPSet.containsAttrib(CultureElement.FIELD_Description)||
!tl_culture_elementPSet.containsAttrib(CultureElement.FIELD_DetailedDescription)||
!tl_culture_elementPSet.containsAttrib(CultureElement.FIELD_CultureClass))
{
// We will need to retrieve it
......@@ -167,10 +171,10 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr
{
int rowsUpdated = executeStatement (sqlMgr,
"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 ()) + " ",
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)
{
......@@ -427,6 +431,7 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr
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_DetailedDescription, HELPER_DetailedDescription.getFromRS(dummyDetailedDescription, r, "detailed_desc"));
tl_culture_elementPSet.setAttrib(CultureElement.FIELD_CultureClass, HELPER_CultureClass.getFromRS(dummyCultureClass, r, "culture_class_code"));
......@@ -445,10 +450,10 @@ public class CultureElementPersistenceMgr extends ObjectPersistenceMgr
{
executeStatement (sqlMgr,
"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 " +
" (?, ?, ?, " + 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());
" (?, ?, ?, ?, " + sqlMgr.getPortabilityServices ().getTimestampExpression () + ", " + sqlMgr.getPortabilityServices ().getTimestampExpression () + ")",
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);
}
......
<?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