Commit ee8a47d1 by Jay

Message Engine BO.

parent 8a9f4f3f
<?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.DefineTableOperation">
<tableName factory="String">tl_message_engine</tableName>
<column name="object_id" type="Long" nullable="false" length="11"/>
<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="subject" type="String" nullable="true" length="200"/>
<column name="application_status" type="String" nullable="true" length="200"/>
<column name="delay" type="Double" nullable="true"/>
<column name="variance" type="Long" nullable="true"/>
<column name="business_hours_only" type="Boolean" nullable="true"/>
<column name="message_content" type="CLOB" nullable="true"/>
</NODE>
</NODE></OBJECTS>
\ No newline at end of file
-- DROP TABLE tl_message_engine;
CREATE TABLE tl_message_engine (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
subject varchar(200) NULL,
application_status varchar(200) NULL,
delay numeric(20,5) NULL,
variance numeric(12) NULL,
business_hours_only char(1) NULL,
message_content text NULL
);
ALTER TABLE tl_message_engine ADD
CONSTRAINT PK_tl_message_engine PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- DROP TABLE tl_message_engine;
CREATE TABLE tl_message_engine (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
subject varchar2(200) NULL,
application_status varchar2(200) NULL,
delay number(20,5) NULL,
variance number(12) NULL,
business_hours_only char(1) NULL,
message_content clob NULL
);
ALTER TABLE tl_message_engine ADD
CONSTRAINT PK_tl_message_engine PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- @AutoRun
-- drop table tl_message_engine;
CREATE TABLE tl_message_engine (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
subject varchar(200) NULL,
application_status varchar(200) NULL,
delay numeric(20,5) NULL,
variance numeric(12) NULL,
business_hours_only char(1) NULL,
message_content text NULL
);
ALTER TABLE tl_message_engine ADD
CONSTRAINT pk_tl_message_engine PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
package performa.orm;
import java.io.*;
import java.util.*;
import oneit.appservices.config.*;
import oneit.logging.*;
import oneit.objstore.*;
import oneit.utils.*;
import performa.orm.types.*;
import performa.orm.*;
public class MessageEngine extends BaseMessageEngine
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public MessageEngine ()
{
// Do not add any code to this, always put it in initialiseNewObject
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ROOT>
<BUSINESSCLASS name="MessageEngine" package="performa.orm">
<IMPORT value="performa.orm.types.*"/>
<IMPORT value="performa.orm.*"/>
<TABLE name="tl_message_engine" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="Subject" type="String" dbcol="subject" mandatory="false" length="200" />
<ATTRIB name="ApplicationStatus" type="ApplicationStatus" dbcol="application_status" attribHelper="EnumeratedAttributeHelper" defaultValue="ApplicationStatus.DRAFT" mandatory="false"/>
<ATTRIB name="Delay" type="Double" dbcol="delay" mandatory="false" />
<ATTRIB name="Variance" type="Integer" dbcol="variance" mandatory="false" />
<ATTRIB name="BusinessHoursOnly" type="Boolean" dbcol="business_hours_only" mandatory="false" />
<ATTRIB name="MessageContent" type="String" dbcol="message_content" mandatory="false" />
</TABLE>
</BUSINESSCLASS>
</ROOT>
\ No newline at end of file
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