Commit cc4ef9f0 by Nilu

initial BO creation done on 12th May

parent 8302b807
<?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">candidate</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="first_name" type="String" nullable="true" length="30"/>
<column name="middle_name" type="String" nullable="true" length="30"/>
<column name="last_name" type="String" nullable="true" length="30"/>
<column name="preferred_name" type="String" nullable="true" length="30"/>
<column name="salutation" type="String" nullable="true" length="10"/>
<column name="position" type="String" nullable="true" length="30"/>
<column name="date_of_birth" type="Date" nullable="true"/>
<column name="date_registered" type="Date" nullable="true"/>
<column name="gender" type="String" nullable="true" length="10"/>
<column name="password" type="String" nullable="true" length="15"/>
<column name="date_taken" type="Date" nullable="true"/>
<column name="section_number" type="Long" nullable="true"/>
<column name="left_quest_number" type="Long" nullable="true"/>
<column name="location" type="String" nullable="true" length="80"/>
<column name="contact_phone" type="String" nullable="true" length="80"/>
<column name="email" type="String" nullable="true" length="60"/>
</NODE>
</NODE></OBJECTS>
\ No newline at end of file
<?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">factor_hdr</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="factor_number" type="Long" nullable="true"/>
<column name="factor_hdr_desc" type="String" nullable="true" length="30"/>
<column name="class_code" type="String" nullable="true" length="15"/>
<column name="factor_hdr_notes" type="CLOB" nullable="true"/>
<column name="level_number" type="Long" nullable="true"/>
<column name="left_annot" type="String" nullable="true" length="60"/>
<column name="right_annot" type="String" nullable="true" length="60"/>
<column name="factor_hdr_desc_schinese" type="String" nullable="true" length="120"/>
<column name="factor_hdr_desc_chinese" type="String" nullable="true" length="120"/>
<column name="factor_hdr_desc_korean" type="String" nullable="true" length="120"/>
<column name="factor_hdr_desc_thai" type="String" nullable="true" length="120"/>
<column name="z_score_wght" type="Double" nullable="true"/>
<column name="z_score_wght_2" type="Double" nullable="true"/>
</NODE>
</NODE></OBJECTS>
\ No newline at end of file
<?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">quest_lin</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="left_quest_number" type="Long" nullable="true"/>
<column name="left_quest" type="String" nullable="true" length="80"/>
<column name="right_quest_number" type="Long" nullable="true"/>
<column name="right_quest" type="String" nullable="true" length="80"/>
<column name="left_quest_schinese" type="CLOB" nullable="true"/>
<column name="right_quest_schinese" type="CLOB" nullable="true"/>
<column name="left_quest_chinese" type="CLOB" nullable="true"/>
<column name="right_quest_chinese" type="CLOB" nullable="true"/>
<column name="left_quest_korean" type="CLOB" nullable="true"/>
<column name="right_quest_korean" type="CLOB" nullable="true"/>
<column name="left_quest_thai" type="CLOB" nullable="true"/>
<column name="right_quest_thai" type="CLOB" nullable="true"/>
<column name="left_quest_viet" type="CLOB" nullable="true"/>
<column name="right_quest_viet" type="CLOB" nullable="true"/>
</NODE>
</NODE></OBJECTS>
\ No newline at end of file
-- DROP TABLE candidate;
CREATE TABLE candidate (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
first_name varchar(30) NULL,
middle_name varchar(30) NULL,
last_name varchar(30) NULL,
preferred_name varchar(30) NULL,
salutation varchar(10) NULL,
position varchar(30) NULL,
date_of_birth datetime NULL,
date_registered datetime NULL,
gender varchar(10) NULL,
password varchar(15) NULL,
date_taken datetime NULL,
section_number numeric(12) NULL,
left_quest_number numeric(12) NULL,
location varchar(80) NULL,
contact_phone varchar(80) NULL,
email varchar(60) NULL
);
ALTER TABLE candidate ADD
CONSTRAINT PK_candidate PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- DROP TABLE factor_hdr;
CREATE TABLE factor_hdr (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
factor_number numeric(12) NULL,
factor_hdr_desc varchar(30) NULL,
class_code varchar(15) NULL,
factor_hdr_notes text NULL,
level_number numeric(12) NULL,
left_annot varchar(60) NULL,
right_annot varchar(60) NULL,
factor_hdr_desc_schinese varchar(120) NULL,
factor_hdr_desc_chinese varchar(120) NULL,
factor_hdr_desc_korean varchar(120) NULL,
factor_hdr_desc_thai varchar(120) NULL,
z_score_wght numeric(20,5) NULL,
z_score_wght_2 numeric(20,5) NULL
);
ALTER TABLE factor_hdr ADD
CONSTRAINT PK_factor_hdr PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- DROP TABLE quest_lin;
CREATE TABLE quest_lin (
object_id int NOT NULL ,
object_last_updated_date datetime DEFAULT getdate() NOT NULL ,
object_created_date datetime DEFAULT getdate() NOT NULL
,
left_quest_number numeric(12) NULL,
left_quest varchar(80) NULL,
right_quest_number numeric(12) NULL,
right_quest varchar(80) NULL,
left_quest_schinese text NULL,
right_quest_schinese text NULL,
left_quest_chinese text NULL,
right_quest_chinese text NULL,
left_quest_korean text NULL,
right_quest_korean text NULL,
left_quest_thai text NULL,
right_quest_thai text NULL,
left_quest_viet text NULL,
right_quest_viet text NULL
);
ALTER TABLE quest_lin ADD
CONSTRAINT PK_quest_lin PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- DROP TABLE candidate;
CREATE TABLE candidate (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
first_name varchar2(30) NULL,
middle_name varchar2(30) NULL,
last_name varchar2(30) NULL,
preferred_name varchar2(30) NULL,
salutation varchar2(10) NULL,
position varchar2(30) NULL,
date_of_birth date NULL,
date_registered date NULL,
gender varchar2(10) NULL,
password varchar2(15) NULL,
date_taken date NULL,
section_number number(12) NULL,
left_quest_number number(12) NULL,
location varchar2(80) NULL,
contact_phone varchar2(80) NULL,
email varchar2(60) NULL
);
ALTER TABLE candidate ADD
CONSTRAINT PK_candidate PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- DROP TABLE factor_hdr;
CREATE TABLE factor_hdr (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
factor_number number(12) NULL,
factor_hdr_desc varchar2(30) NULL,
class_code varchar2(15) NULL,
factor_hdr_notes clob NULL,
level_number number(12) NULL,
left_annot varchar2(60) NULL,
right_annot varchar2(60) NULL,
factor_hdr_desc_schinese varchar2(120) NULL,
factor_hdr_desc_chinese varchar2(120) NULL,
factor_hdr_desc_korean varchar2(120) NULL,
factor_hdr_desc_thai varchar2(120) NULL,
z_score_wght number(20,5) NULL,
z_score_wght_2 number(20,5) NULL
);
ALTER TABLE factor_hdr ADD
CONSTRAINT PK_factor_hdr PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- DROP TABLE quest_lin;
CREATE TABLE quest_lin (
object_id number(12) NOT NULL ,
object_last_updated_date date DEFAULT SYSDATE NOT NULL ,
object_created_date date DEFAULT SYSDATE NOT NULL
,
left_quest_number number(12) NULL,
left_quest varchar2(80) NULL,
right_quest_number number(12) NULL,
right_quest varchar2(80) NULL,
left_quest_schinese clob NULL,
right_quest_schinese clob NULL,
left_quest_chinese clob NULL,
right_quest_chinese clob NULL,
left_quest_korean clob NULL,
right_quest_korean clob NULL,
left_quest_thai clob NULL,
right_quest_thai clob NULL,
left_quest_viet clob NULL,
right_quest_viet clob NULL
);
ALTER TABLE quest_lin ADD
CONSTRAINT PK_quest_lin PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- @AutoRun
-- drop table candidate;
CREATE TABLE candidate (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
first_name varchar(30) NULL,
middle_name varchar(30) NULL,
last_name varchar(30) NULL,
preferred_name varchar(30) NULL,
salutation varchar(10) NULL,
position varchar(30) NULL,
date_of_birth timestamp NULL,
date_registered timestamp NULL,
gender varchar(10) NULL,
password varchar(15) NULL,
date_taken timestamp NULL,
section_number numeric(12) NULL,
left_quest_number numeric(12) NULL,
location varchar(80) NULL,
contact_phone varchar(80) NULL,
email varchar(60) NULL
);
ALTER TABLE candidate ADD
CONSTRAINT pk_candidate PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- @AutoRun
-- drop table factor_hdr;
CREATE TABLE factor_hdr (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
factor_number numeric(12) NULL,
factor_hdr_desc varchar(30) NULL,
class_code varchar(15) NULL,
factor_hdr_notes text NULL,
level_number numeric(12) NULL,
left_annot varchar(60) NULL,
right_annot varchar(60) NULL,
factor_hdr_desc_schinese varchar(120) NULL,
factor_hdr_desc_chinese varchar(120) NULL,
factor_hdr_desc_korean varchar(120) NULL,
factor_hdr_desc_thai varchar(120) NULL,
z_score_wght numeric(20,5) NULL,
z_score_wght_2 numeric(20,5) NULL
);
ALTER TABLE factor_hdr ADD
CONSTRAINT pk_factor_hdr PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
-- @AutoRun
-- drop table quest_lin;
CREATE TABLE quest_lin (
object_id numeric(12) NOT NULL ,
object_last_updated_date timestamp DEFAULT NOW() NOT NULL ,
object_created_date timestamp DEFAULT NOW() NOT NULL
,
left_quest_number numeric(12) NULL,
left_quest varchar(80) NULL,
right_quest_number numeric(12) NULL,
right_quest varchar(80) NULL,
left_quest_schinese text NULL,
right_quest_schinese text NULL,
left_quest_chinese text NULL,
right_quest_chinese text NULL,
left_quest_korean text NULL,
right_quest_korean text NULL,
left_quest_thai text NULL,
right_quest_thai text NULL,
left_quest_viet text NULL,
right_quest_viet text NULL
);
ALTER TABLE quest_lin ADD
CONSTRAINT pk_quest_lin PRIMARY KEY
(
object_id
) ;
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
package performa.orm;
import java.io.*;
import java.util.*;
import oneit.appservices.config.*;
import oneit.logging.*;
import oneit.objstore.*;
import oneit.utils.*;
public class Candidate extends BaseCandidate
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public Candidate ()
{
// Do not add any code to this, always put it in initialiseNewObject
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://www.oneit.com.au/schemas/5.2/BusinessObject.xsd'>
<BUSINESSCLASS name="Candidate" package="performa.orm">
<TABLE name="candidate" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="FirstName" type="String" dbcol="first_name" length="30"/>
<ATTRIB name="MiddleName" type="String" dbcol="middle_name" length="30"/>
<ATTRIB name="LastName" type="String" dbcol="last_name" length="30"/>
<ATTRIB name="PreferredName" type="String" dbcol="preferred_name" length="30"/>
<ATTRIB name="Salutation" type="String" dbcol="salutation" length="10"/>
<ATTRIB name="Position" type="String" dbcol="position" length="30"/>
<ATTRIB name="DateOfBirth" type="Date" dbcol="date_of_birth"/>
<ATTRIB name="DateRegistered" type="Date" dbcol="date_registered"/>
<ATTRIB name="Gender" type="String" dbcol="gender" length="10"/>
<ATTRIB name="Password" type="String" dbcol="password" length="15"/>
<ATTRIB name="DateTaken" type="Date" dbcol="date_taken"/>
<ATTRIB name="SectionNo" type="Integer" dbcol="section_number"/>
<ATTRIB name="LeftQuestionNo" type="Integer" dbcol="left_quest_number"/>
<ATTRIB name="Location" type="String" dbcol="location" length="80"/>
<ATTRIB name="Phone" type="String" dbcol="contact_phone" length="80"/>
<ATTRIB name="Email" type="String" dbcol="email" length="60"/>
</TABLE>
</BUSINESSCLASS>
</ROOT>
\ 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.*;
public class Factor extends BaseFactor
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public Factor ()
{
// Do not add any code to this, always put it in initialiseNewObject
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://www.oneit.com.au/schemas/5.2/BusinessObject.xsd'>
<BUSINESSCLASS name="Factor" package="performa.orm">
<TABLE name="factor_hdr" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="FactorNo" type="Integer" dbcol="factor_number"/>
<ATTRIB name="Description" type="String" dbcol="factor_hdr_desc" length="30"/>
<ATTRIB name="ClassCode" type="String" dbcol="class_code" length="15"/>
<ATTRIB name="Notes" type="String" dbcol="factor_hdr_notes"/>
<ATTRIB name="LevelNo" type="Integer" dbcol="level_number"/>
<ATTRIB name="LeftAnnot" type="String" dbcol="left_annot" length="60"/>
<ATTRIB name="RightAnnot" type="String" dbcol="right_annot" length="60"/>
<ATTRIB name="DescriptionSchinese" type="String" dbcol="factor_hdr_desc_schinese" length="120"/>
<ATTRIB name="DescriptionChinese" type="String" dbcol="factor_hdr_desc_chinese" length="120"/>
<ATTRIB name="DescriptionKorean" type="String" dbcol="factor_hdr_desc_korean" length="120"/>
<ATTRIB name="DescriptionThai" type="String" dbcol="factor_hdr_desc_thai" length="120"/>
<ATTRIB name="ZScoreWeight" type="Double" dbcol="z_score_wght"/>
<ATTRIB name="ZScoreWeight2" type="Double" dbcol="z_score_wght_2"/>
</TABLE>
</BUSINESSCLASS>
</ROOT>
\ 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.*;
public class Question extends BaseQuestion
{
private static final long serialVersionUID = 0L;
// This constructor should not be called
public Question ()
{
// Do not add any code to this, always put it in initialiseNewObject
}
}
<?xml version="1.0" encoding="UTF-8"?>
<ROOT xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://www.oneit.com.au/schemas/5.2/BusinessObject.xsd'>
<BUSINESSCLASS name="Question" package="performa.orm">
<TABLE name="quest_lin" tablePrefix="object" polymorphic="FALSE">
<ATTRIB name="LeftQuestionNo" type="Integer" dbcol="left_quest_number"/>
<ATTRIB name="LeftQuestion" type="String" dbcol="left_quest" length="80"/>
<ATTRIB name="RightQuestionNo" type="Integer" dbcol="right_quest_number"/>
<ATTRIB name="RightQuestion" type="String" dbcol="right_quest" length="80"/>
<ATTRIB name="LeftQuestionSchinese" type="String" dbcol="left_quest_schinese"/>
<ATTRIB name="RightQuestionSchinese" type="String" dbcol="right_quest_schinese"/>
<ATTRIB name="LeftQuestionChinese" type="String" dbcol="left_quest_chinese"/>
<ATTRIB name="RightQuestionChinese" type="String" dbcol="right_quest_chinese"/>
<ATTRIB name="LeftQuestionKorean" type="String" dbcol="left_quest_korean"/>
<ATTRIB name="RightQuestionKorean" type="String" dbcol="right_quest_korean"/>
<ATTRIB name="LeftQuestionThai" type="String" dbcol="left_quest_thai"/>
<ATTRIB name="RightQuestionThai" type="String" dbcol="right_quest_thai"/>
<ATTRIB name="LeftQuestionViet" type="String" dbcol="left_quest_viet"/>
<ATTRIB name="RightQuestionViet" type="String" dbcol="right_quest_viet"/>
</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