User: robertc
Date: 00/09/10 15:38:57
Added: cocobase/conf CocoAdmin.properties JBOSS2EBCFG.properties
JBOSS2EBCLIENT.properties JBOSS2EBDDPROP.properties
JBOSS2EBENV.properties JBOSS2EBHOME.properties
JBOSS2EBINT.properties JBOSS2EBMAKEBAT.properties
JBOSS2EBMAKESH.properties JBOSS2EBPK.properties
JBOSS2EBSP.properties JBOSS2REBDDPROP.properties
Log:
jBoss CocoBase integration template file.
see \contrib\cocobase\build\install.txt for installation instructions
Revision Changes Path
1.1 contrib/cocobase/conf/CocoAdmin.properties
Index: CocoAdmin.properties
===================================================================
TOOLLIST =
com.thought.CocoAdmin.CocoToolTest,com.thought.CocoAdmin.CmpInstaller.CmpInstallerMain,com.thought.CocoAdmin.GenerateTableInternalFrame
COCODRIVER = thought.CocoBase.CocoPowder
COCODBDRIVER = jdbc.SimpleText.SimpleTextDriver
COCODBURL = jdbc:SimpleText
COCOUSERID = myuser
COCOPASSWORD = myuser
DEBUG = false
USESYSTEMTABLES = false
NULLSCHEMA = true
USEBINDING = true
AUTOCOMMIT = true
IGNORESCHEMA = SYS,SYSTEM,MDSYS
IGNORETYPES = SYNONYM,VIEW,SEQUENCE
SCHEMANAME =
USETYPEINFO = true
PROMPTFILEONGEN = true
SHOWSELECTORWARNING = true
USEWHERESCHEMAS = true
COCOPRODUCT=CBER
XMLENCODING=us-ascii
; This specifies save to CocoNavLinks.properties and the value
; should either be true, false or prompt
PERSISTLINKS=prompt
; Font definitions are provided for internationalization where fonts must
; be something other than Helvetica to provide Unicode support.
; TYPE must be BOLD,PLAIN or ITALIC
STDFONTNAME=Helvetica
STDFONTTYPE=PLAIN
STDFONTSIZE=12
STDBOLDNAME=Helvetica
STDBOLDTYPE=BOLD
STDBOLDSIZE=12
MEDFONTNAME=Helvetica
MEDFONTTYPE=PLAIN
MEDFONTSIZE=14
MEDBOLDNAME=Helvetica
MEDBOLDTYPE=BOLD
MEDBOLDSIZE=14
LGEFONTNAME=Helvetica
LGEFONTTYPE=PLAIN
LGEFONTSIZE=16
FIXEDFONTNAME=SanSerif
FIXEDFONTTYPE=PLAIN
FIXEDFONTSIZE=12
FIXMEDFONTNAME=SanSerif
FIXMEDFONTTYPE=PLAIN
FIXMEDFONTSIZE=14
; This should either be true, false or prompt
USEPROCEDURES=false
; This should either be JAVA, WINDOWS or UNIX
LOOKANDFEEL = JAVA
; This list shows up in the Open new connection dialog.
DATABASES = Cloudscape,DB2,Informix,Ingres with CaribouLake,Inprise
JDataStore,Inprise InterBase,InstantDB,\
InstantDB Server,Jdbc Odbc Bridge,MSSql Server with FastForward,\
MSSql Server with Intersolv Sequelink,MSSql Server with Weblogic,\
Oracle Lite 8i,Oracle Thin,Oracle OCI,Oracle with Weblogic,\
Progress 9.0a Type 2 JDBC,SimpleText,Sybase with JConnect,Sybase Server Anywhere
with JConnect
Inprise_JDataStore_COCODBDRIVER = com.borland.datastore.jdbc.DataStoreDriver
Inprise_JDataStore_COCODBURL = jdbc:borland:dslocal:/JDataStore/TEMPORARY.jds
Inprise_JDataStore_COCOUSERID = user
Inprise_JDataStore_COCOPASSWORD =
Inprise_InterBase_COCODBDRIVER = interbase.interclient.Driver
Inprise_InterBase_COCODBURL = jdbc:interbase://localhost/d:/cocobasedemo/cocobase.gdb
Inprise_InterBase_COCOUSERID = sysdba
Inprise_InterBase_COCOPASSWORD = masterkey
MSSql_Server_with_Intersolv_Sequelink_COCODBDRIVER =
intersolv.jdbc.sequelink.SequeLinkDriver
MSSql_Server_with_Intersolv_Sequelink_COCODBURL =
jdbc:sequelink://localhost:4006/[SQLServer];Database=pubs
MSSql_Server_with_Intersolv_Sequelink_COCOUSERID = sa
MSSql_Server_with_Intersolv_Sequelink_COCOPASSWORD =
MSSql_Server_with_Weblogic_COCODBDRIVER = weblogic.jdbc.mssqlserver4.Driver
MSSql_Server_with_Weblogic_COCODBURL =
jdbc:weblogic:mssqlserver4:master@localhost:1433
MSSql_Server_with_Weblogic_COCOUSERID = sa
MSSql_Server_with_Weblogic_COCOPASSWORD =
Progress_9.0a_Type_2_JDBC_COCODBDRIVER = com.progress.sql.jdbc.ProgressDriver
Progress_9.0a_Type_2_JDBC_COCODBURL = jdbc:progress:T:HOST:13010:DATABASE
Progress_9.0a_Type_2_JDBC_COCOUSERID = pub
Progress_9.0a_Type_2_JDBC_COCOPASSWORD =
SimpleText_COCODBDRIVER = jdbc.SimpleText.SimpleTextDriver
SimpleText_COCODBURL = jdbc:SimpleText
SimpleText_COCOUSERID = myuser
SimpleText_COCOPASSWORD = myuser
Oracle_Lite_8i_COCODBDRIVER = oracle.lite.poljdbc.POLJDBCDriver
Oracle_Lite_8i_COCODBURL = jdbc:polite:POLITE
Oracle_Lite_8i_COCOUSERID = SYSTEM
Oracle_Lite_8i_COCOPASSWORD = MANAGER
Oracle_Thin_COCODBDRIVER = oracle.jdbc.driver.OracleDriver
Oracle_Thin_COCODBURL = jdbc:oracle:thin:@localhost:1521:ORCL
Oracle_Thin_COCOUSERID = SCOTT
Oracle_Thin_COCOPASSWORD = TIGER
Oracle_OCI_COCODBDRIVER = oracle.jdbc.driver.OracleDriver
Oracle_OCI_COCODBURL = jdbc:oracle:oci8:@ORCL
Oracle_OCI_COCOUSERID = SCOTT
Oracle_OCI_COCOPASSWORD = TIGER
Oracle_with_Weblogic_COCODBDRIVER = weblogic.jdbc.oci.Driver
Oracle_with_Weblogic_COCODBURL = jdbc:weblogic:oracle
Oracle_with_Weblogic_COCOUSERID = SCOTT
Oracle_with_Weblogic_COCOPASSWORD = TIGER
InstantDB_COCODBDRIVER = jdbc.idbDriver
InstantDB_COCODBURL = jdbc:idb:sample.prp
InstantDB_COCOUSERID = MYUSER
InstantDB_COCOPASSWORD = MYUSER
InstantDB_Server_COCODBDRIVER = RmiJdbc.RJDriver
InstantDB_Server_COCODBURL = jdbc:rmi://localhost:1198/jdbc:idb:sample.prp
InstantDB_Server_COCOUSERID = MYUSER
InstantDB_Server_COCOPASSWORD = MYUSER
Jdbc_Odbc_Bridge_COCODBDRIVER = sun.jdbc.odbc.JdbcOdbcDriver
Jdbc_Odbc_Bridge_COCODBURL = jdbc:odbc:DSN
Jdbc_Odbc_Bridge_COCOUSERID = MYUSER
Jdbc_Odbc_Bridge_COCOPASSWORD =
Informix_COCODBDRIVER = com.informix.jdbc.IfxDriver
Informix_COCODBURL = jdbc:informix-sqli://localhost:1526/test:informixserver=ol_test
Informix_COCOUSERID = informix
Informix_COCOPASSWORD = informix
Sybase_with_JConnect_COCODBDRIVER = com.sybase.jdbc.SybDriver
Sybase_with_JConnect_COCODBURL = jdbc:sybase:Tds:localhost:5000
Sybase_with_JConnect_COCOUSERID = sa
Sybase_with_JConnect_COCOPASSWORD =
Sybase_Server_Anywhere_with_JConnect_COCODBDRIVER = com.sybase.jdbc.SybDriver
Sybase_Server_Anywhere_with_JConnect_COCODBURL = jdbc:sybase:Tds:localhost:2638
Sybase_Server_Anywhere_with_JConnect_COCOUSERID = dba
Sybase_Server_Anywhere_with_JConnect_COCOPASSWORD = sql
Ingres_with_CaribouLake_COCODBDRIVER = COM.cariboulake.sql.ingres.JSQLDriver
Ingres_with_CaribouLake_COCODBURL = jdbc:caribou:jsqlingres//localhost:6024/iidbdb
Ingres_with_CaribouLake_COCOUSERID = test
Ingres_with_CaribouLake_COCOPASSWORD = test
MSSql_Server_with_FastForward_COCODBDRIVER = weblogic.jdbc.mssqlserver4.Driver
MSSql_Server_with_FastForward_COCODBURL = jdbc:weblogic:mssqlserver4:HOSTNAME:1433
MSSql_Server_with_FastForward_COCOUSERID = sa
MSSql_Server_with_FastForward_COCOPASSWORD =
Cloudscape_COCODBDRIVER = COM.cloudscape.core.JDBCDriver
Cloudscape_COCODBURL = jdbc:cloudscape:JBMSExample
Cloudscape_COCOUSERID = APP
Cloudscape_COCOPASSWORD =
DB2_COCODBDRIVER = COM.ibm.db2.jdbc.net.DB2Driver
DB2_COCODBURL = jdbc:db2://localhost:5030/sample
DB2_COCOUSERID = db2admin
DB2_COCOPASSWORD = db2admin
; Code generation
GENTEMPLATES = Default Java Object,Default CocoNavigate Java Object,\
Persistent Subclass of existing Class,\
Generic EJB Entity Bean CMP - All Parts,\
GemstoneJ Entity Bean BMP - All Parts,\
Jonas Entity Bean BMP - All Parts,\
jBoss 2 Entity Bean BMP - All Parts,\
InpriseAS 4 Entity Bean BMP - All Parts,\
iPlanet 4 Entity Bean BMP - All Parts,\
Sybase EAServer BMP - All Parts,\
Voyager Entity Bean BMP - All Parts,\
Weblogic Entity Bean BMP - All Parts,\
Weblogic WebExpress 5 Entity Bean BMP - All Parts,\
Websphere Entity Bean BMP - All Parts,\
Websphere3 Entity Bean BMP - All Parts,\
Generic EJB Entity Bean BMP - All Parts,\
GemstoneJ Descriptor Prop File,GemstoneJ ENV File,GemstoneJ Manifest,\
GemstoneJ Make Bat,GemstoneJ Make Shell Script,GemstoneJ Home Type,\
GemstoneJ Entity Bean BMP Type,GemstoneJ Primary Key Type,\
GemstoneJ Interface Type,\
iPlanet 4 Descriptor Prop File,iPlanet 4 Manifest,\
iPlanet 4 Make Bat,iPlanet 4 Make Shell Script,iPlanet 4 Home Type,\
iPlanet 4 Entity Bean BMP Type,iPlanet 4 Primary Key Type,\
iPlanet 4 Interface Type,\
Weblogic Descriptor Prop File,Weblogic Manifest,\
Weblogic Make Bat,Weblogic Make Shell Script,Weblogic Home Type,\
Weblogic Entity Bean BMP Type,Weblogic Primary Key Type,\
Weblogic Interface Type,\
Websphere Descriptor Prop File,Websphere ENV File,Websphere Manifest,\
Websphere Make Bat,Websphere Make Shell Script,Websphere Home Type,\
Websphere Entity Bean BMP Type,Websphere Primary Key Type,\
Websphere Interface Type,\
Generic EJB Home Type,Generic EJB Entity Bean BMP Type,Generic EJB Primary Key Type,\
Generic EJB Interface Type,Generic EJB Environment File
Default_Java_Object_RESOURCE = resources.GenCBClass
Default_Java_Object_NAME_PREFIX =
Default_Java_Object_NAME_SUFFIX =
Default_Java_Object_NAME_EXTENSION = .java
Default_CocoNavigate_Java_Object_RESOURCE = resources.GenNavClass
Default_CocoNavigate_Java_Object_NAME_PREFIX =
Default_CocoNavigate_Java_Object_NAME_SUFFIX =
Default_CocoNavigate_Java_Object_NAME_EXTENSION = .java
Persistent_Subclass_of_existing_Class_RESOURCE = resources.GenSubClass
Persistent_Subclass_of_existing_Class_NAME_PREFIX =
Persistent_Subclass_of_existing_Class_NAME_SUFFIX =
Persistent_Subclass_of_existing_Class_NAME_EXTENSION = .java
Jonas_Entity_Bean_BMP_-_All_Parts_RESOURCE =
resources.EJBEBSP,resources.EJBEBPK,resources.EJBEBHOME,resources.EJBEBINT,resources.JonasEBDDPROP,resources.JonasEBENV,resources.JonasEBMF,resources.JonasMAKEBAT,resources.JonasMAKESH,resources.GenState,resources.EJBEBCFG,resources.JonasEBDF
Jonas_Entity_Bean_BMP_-_All_Parts_NAME_PREFIX = , , , , , , , , , , , ,
Jonas_Entity_Bean_BMP_-_All_Parts_NAME_SUFFIX = EntityBean,PK,Home,Interface, ,
Entity, , , , ,Config,jonas
Jonas_Entity_Bean_BMP_-_All_Parts_NAME_EXTENSION =
.java,.java,.java,.java,.txt,.properties,.mf,.bat,.sh,.java,.properties,.properties
Jonas_Entity_Bean_BMP_-_All_Parts_PROPERTIES =
BEAN_NAME_SUFFIX,BEAN_INTERFACE_SUFFIX,BEAN_HOME_SUFFIX,BEAN_PK_SUFFIX
Jonas_Entity_Bean_BMP_-_All_Parts_BEAN_NAME_SUFFIX = EntityBean
Jonas_Entity_Bean_BMP_-_All_Parts_BEAN_INTERFACE_SUFFIX = Interface
Jonas_Entity_Bean_BMP_-_All_Parts_BEAN_HOME_SUFFIX = Home
Jonas_Entity_Bean_BMP_-_All_Parts_BEAN_PK_SUFFIX = PK
GemstoneJ_Entity_Bean_BMP_-_All_Parts_RESOURCE =
resources.GemstoneEBSP,resources.GemstoneEBPK,resources.GemstoneEBHOME,resources.GemstoneEBINT,resources.GemstoneEBDDPROP,resources.GemstoneEBENV,resources.GemstoneEBMF,resources.GemstoneEBMAKEBAT,resources.GemstoneEBMAKESH,resources.GenState,resources.GemstoneEBCFG
GemstoneJ_Entity_Bean_BMP_-_All_Parts_NAME_PREFIX = , , , , , , , , , , ,
GemstoneJ_Entity_Bean_BMP_-_All_Parts_NAME_SUFFIX =
EntityBean,PK,Home,Interface,DD,Entity, , , , ,Config
GemstoneJ_Entity_Bean_BMP_-_All_Parts_NAME_EXTENSION =
.java,.java,.java,.java,.prop,.properties,.mf,.bat,.sh,.java,.properties
GemstoneJ_Entity_Bean_BMP_-_All_Parts_PROPERTIES =
BEAN_NAME_SUFFIX,BEAN_INTERFACE_SUFFIX,BEAN_HOME_SUFFIX,BEAN_PK_SUFFIX
GemstoneJ_Entity_Bean_BMP_-_All_Parts_BEAN_NAME_SUFFIX = EntityBean
GemstoneJ_Entity_Bean_BMP_-_All_Parts_BEAN_INTERFACE_SUFFIX = Interface
GemstoneJ_Entity_Bean_BMP_-_All_Parts_BEAN_HOME_SUFFIX = Home
GemstoneJ_Entity_Bean_BMP_-_All_Parts_BEAN_PK_SUFFIX = PK
GemstoneJ_Descriptor_Prop_File_RESOURCE = resources.GemstoneEBDDPROP
GemstoneJ_Descriptor_Prop_File_NAME_PREFIX =
GemstoneJ_Descriptor_Prop_File_NAME_SUFFIX = DD
GemstoneJ_Descriptor_Prop_File_NAME_EXTENSION = .prop
GemstoneJ_Descriptor_Prop_File_BEAN_NAME_SUFFIX = EntityBean
GemstoneJ_Descriptor_Prop_File_BEAN_INTERFACE_SUFFIX = Interface
GemstoneJ_Descriptor_Prop_File_BEAN_HOME_SUFFIX = Home
GemstoneJ_Descriptor_Prop_File_BEAN_PK_SUFFIX = PK
GemstoneJ_Manifest_RESOURCE = resources.GemstoneEBMF
GemstoneJ_Manifest_NAME_PREFIX =
GemstoneJ_Manifest_NAME_SUFFIX =
GemstoneJ_Manifest_NAME_EXTENSION = .mf
GemstoneJ_Manifest_BEAN_NAME_SUFFIX = EntityBean
GemstoneJ_Manifest_BEAN_INTERFACE_SUFFIX = Interface
GemstoneJ_Manifest_BEAN_HOME_SUFFIX = Home
GemstoneJ_Manifest_BEAN_PK_SUFFIX = PK
GemstoneJ_Make_Bat_RESOURCE = resources.GemstoneEBMAKEBAT
GemstoneJ_Make_Bat_NAME_PREFIX =
GemstoneJ_Make_Bat_NAME_SUFFIX =
GemstoneJ_Make_Bat_NAME_EXTENSION = .bat
GemstoneJ_Make_Bat_BEAN_NAME_SUFFIX = EntityBean
GemstoneJ_Make_Bat_BEAN_INTERFACE_SUFFIX = Interface
GemstoneJ_Make_Bat_BEAN_HOME_SUFFIX = Home
GemstoneJ_Make_Bat_BEAN_PK_SUFFIX = PK
GemstoneJ_Make_Shell_Script_RESOURCE = resources.GemstoneEBMAKESH
GemstoneJ_Make_Shell_Script_NAME_PREFIX =
GemstoneJ_Make_Shell_Script_NAME_SUFFIX =
GemstoneJ_Make_Shell_Script_NAME_EXTENSION = .sh
GemstoneJ_Make_Shell_BEAN_NAME_SUFFIX = EntityBean
GemstoneJ_Make_Shell_BEAN_INTERFACE_SUFFIX = Interface
GemstoneJ_Make_Shell_BEAN_HOME_SUFFIX = Home
GemstoneJ_Make_Shell_BEAN_PK_SUFFIX = PK
GemstoneJ_ENV_File_RESOURCE = resources.GemstoneEBENV
GemstoneJ_ENV_File_NAME_PREFIX =
GemstoneJ_ENV_File_NAME_SUFFIX = Entity
GemstoneJ_ENV_File_NAME_EXTENSION = .properties
GemstoneJ_ENV_File_BEAN_NAME_SUFFIX = EntityBean
GemstoneJ_ENV_File_BEAN_INTERFACE_SUFFIX = Interface
GemstoneJ_ENV_File_BEAN_HOME_SUFFIX = Home
GemstoneJ_ENV_File_BEAN_PK_SUFFIX = PK
GemstoneJ_Home_Type_RESOURCE = resources.GemstoneEBHOME
GemstoneJ_Home_Type_NAME_PREFIX =
GemstoneJ_Home_Type_NAME_SUFFIX = Home
GemstoneJ_Home_Type_NAME_EXTENSION = .java
GemstoneJ_Home_Type_BEAN_NAME_SUFFIX = EntityBean
GemstoneJ_Home_Type_BEAN_INTERFACE_SUFFIX = Interface
GemstoneJ_Home_Type_BEAN_HOME_SUFFIX = Home
GemstoneJ_Home_Type_BEAN_PK_SUFFIX = PK
GemstoneJ_Entity_Bean_BMP_Type_RESOURCE = resources.GemstoneEBSP
GemstoneJ_Entity_Bean_BMP_Type_NAME_PREFIX =
GemstoneJ_Entity_Bean_BMP_Type_NAME_SUFFIX = EntityBean
GemstoneJ_Entity_Bean_BMP_Type_NAME_EXTENSION = .java
GemstoneJ_Entity_Bean_BMP_Type_BEAN_NAME_SUFFIX = EntityBean
GemstoneJ_Entity_Bean_BMP_Type_BEAN_INTERFACE_SUFFIX = Interface
GemstoneJ_Entity_Bean_BMP_Type_BEAN_HOME_SUFFIX = Home
GemstoneJ_Entity_Bean_BMP_Type_BEAN_PK_SUFFIX = PK
GemstoneJ_Primary_Key_Type_RESOURCE = resources.GemstoneEBPK
GemstoneJ_Primary_Key_Type_NAME_PREFIX =
GemstoneJ_Primary_Key_Type_NAME_SUFFIX = PK
GemstoneJ_Primary_Key_Type_NAME_EXTENSION = .java
GemstoneJ_Primary_Key_Type_BEAN_NAME_SUFFIX = EntityBean
GemstoneJ_Primary_Key_Type_BEAN_INTERFACE_SUFFIX = Interface
GemstoneJ_Primary_Key_Type_BEAN_HOME_SUFFIX = Home
GemstoneJ_Primary_Key_Type_BEAN_PK_SUFFIX = PK
GemstoneJ_Interface_Type_RESOURCE = resources.GemstoneEBINT
GemstoneJ_Interface_Type_NAME_PREFIX =
GemstoneJ_Interface_Type_NAME_SUFFIX = Interface
GemstoneJ_Interface_Type_NAME_EXTENSION = .java
GemstoneJ_Interface_Type_BEAN_NAME_SUFFIX = EntityBean
GemstoneJ_Interface_Type_BEAN_INTERFACE_SUFFIX = Interface
GemstoneJ_Interface_Type_BEAN_HOME_SUFFIX = Home
GemstoneJ_Interface_Type_BEAN_PK_SUFFIX = PK
Sybase_EAServer_BMP_-_All_Parts_RESOURCE =
resources.EJBEBSP,resources.EJBEBPK,resources.EJBEBHOME,resources.EJBEBINT,resources.JAGEBENV,resources.EJBEBCFG,resources.JAGDDPROP,resources.JAGEBMF,resources.JAGMAKEBAT,resources.JAGMAKESH,resources.GenState
Sybase_EAServer_BMP_-_All_Parts_NAME_PREFIX = , , , , , , , , ,
Sybase_EAServer_BMP_-_All_Parts_NAME_SUFFIX =
EntityBean,PK,Home,Interface,Entity,Config, , , , ,
Sybase_EAServer_BMP_-_All_Parts_NAME_EXTENSION =
.java,.java,.java,.java,.properties,.properties,.xml,.mf,.bat,.sh,.java
Sybase_EAServer_BMP_-_All_Parts_PROPERTIES =
BEAN_NAME_SUFFIX,BEAN_INTERFACE_SUFFIX,BEAN_HOME_SUFFIX,BEAN_PK_SUFFIX,EACACHENAME
Sybase_EAServer_BMP_-_All_Parts_BEAN_NAME_SUFFIX = EntityBean
Sybase_EAServer_BMP_-_All_Parts_BEAN_INTERFACE_SUFFIX = Interface
Sybase_EAServer_BMP_-_All_Parts_BEAN_HOME_SUFFIX = Home
Sybase_EAServer_BMP_-_All_Parts_BEAN_PK_SUFFIX = PK
Sybase_EAServer_BMP_-_All_Parts_EACACHENAME_MESSAGE = Enter EAServer JDBC Cache name
(EACACHENAME):
Sybase_EAServer_BMP_-_All_Parts_EACACHENAME = prompt
Voyager_Entity_Bean_BMP_-_All_Parts_RESOURCE =
resources.EJBEBSP,resources.EJBEBPK,resources.EJBEBHOME,resources.EJBEBINT,resources.VOYAGEREBENV,resources.EJBEBCFG,resources.VOYAGERDDPROP,resources.VOYAGEREBMF,resources.VOYAGERMAKEBAT,resources.VOYAGERMAKESH,resources.GenState
Voyager_Entity_Bean_BMP_-_All_Parts_NAME_PREFIX = , , , , , , , , ,
Voyager_Entity_Bean_BMP_-_All_Parts_NAME_SUFFIX =
EntityBean,PK,Home,Interface,Entity,Config, , , , ,
Voyager_Entity_Bean_BMP_-_All_Parts_NAME_EXTENSION =
.java,.java,.java,.java,.properties,.properties,.xml,.mf,.bat,.sh,.java
Voyager_Entity_Bean_BMP_-_All_Parts_PROPERTIES =
BEAN_NAME_SUFFIX,BEAN_INTERFACE_SUFFIX,BEAN_HOME_SUFFIX,BEAN_PK_SUFFIX,JNDIURL
Voyager_Entity_Bean_BMP_-_All_Parts_BEAN_NAME_SUFFIX = EntityBean
Voyager_Entity_Bean_BMP_-_All_Parts_BEAN_INTERFACE_SUFFIX = Interface
Voyager_Entity_Bean_BMP_-_All_Parts_BEAN_HOME_SUFFIX = Home
Voyager_Entity_Bean_BMP_-_All_Parts_BEAN_PK_SUFFIX = PK
Voyager_Entity_Bean_BMP_-_All_Parts_JNDIURL_MESSAGE = Enter JNDI JDBC Lookup URL
(JNDIURL):
Voyager_Entity_Bean_BMP_-_All_Parts_JNDIURL = prompt
jBoss_2_Entity_Bean_BMP_-_All_Parts_RESOURCE =
resources.JBOSS2EBSP,resources.JBOSS2EBENV,resources.JBOSS2REBDDPROP,resources.JBOSS2EBPK,resources.JBOSS2EBHOME,resources.JBOSS2EBINT,resources.JBOSS2EBDDPROP,resources.JBOSS2EBMAKEBAT,resources.JBOSS2EBMAKESH,resources.GenState,resources.JBOSS2EBCFG,resources.JBOSS2EBCLIENT
jBoss_2_Entity_Bean_BMP_-_All_Parts_NAME_PREFIX = , , , , , , , , , , ,
jBoss_2_Entity_Bean_BMP_-_All_Parts_NAME_SUFFIX =
EntityBean,Entity,IDD,PK,Home,Interface,DD, , , ,Config,Client
jBoss_2_Entity_Bean_BMP_-_All_Parts_NAME_EXTENSION =
.java,.properties,.xml,.java,.java,.java,.xml,.bat,.sh,.java,.properties,.java
jBoss_2_Entity_Bean_BMP_-_All_Parts_PROPERTIES =
BEAN_NAME_SUFFIX,BEAN_INTERFACE_SUFFIX,BEAN_HOME_SUFFIX,BEAN_PK_SUFFIX,jndiurl,jndiurlname,NOCLONE,confDataSource
jBoss_2_Entity_Bean_BMP_-_All_Parts_BEAN_NAME_SUFFIX = EntityBean
jBoss_2_Entity_Bean_BMP_-_All_Parts_BEAN_INTERFACE_SUFFIX = Interface
jBoss_2_Entity_Bean_BMP_-_All_Parts_BEAN_HOME_SUFFIX = Home
jBoss_2_Entity_Bean_BMP_-_All_Parts_BEAN_PK_SUFFIX = PK
jBoss_2_Entity_Bean_BMP_-_All_Parts_jndiurl_MESSAGE = Enter jndi resourcename the
bean will use \n- e.g. 'jdbc/myDataSource' (jndiurl):
jBoss_2_Entity_Bean_BMP_-_All_Parts_jndiurl = prompt
jBoss_2_Entity_Bean_BMP_-_All_Parts_jndiurl_INITVALUE = jdbc/myDataSource
jBoss_2_Entity_Bean_BMP_-_All_Parts_confDataSource_MESSAGE = Enter the jndi
connection pool resource url \nconfigured in jboss.conf such as 'InstantDB'
(confDataSource):
jBoss_2_Entity_Bean_BMP_-_All_Parts_confDataSource_INITVALUE = InstantDB
jBoss_2_Entity_Bean_BMP_-_All_Parts_confDataSource = prompt
jBoss_2_Entity_Bean_BMP_-_All_Parts_NOCLONE = true
jBoss_2_Entity_Bean_BMP_-_All_Parts_NOCLONE_MESSAGE = Does this server version need
Cloneable disabled? :
InpriseAS_4_Entity_Bean_BMP_-_All_Parts_RESOURCE =
resources.IAS4EBSP,resources.IAS4EBENV,resources.IAS4REBDDPROP,resources.IAS4EBPK,resources.IAS4EBHOME,resources.IAS4EBINT,resources.IAS4EBDDPROP,resources.IAS4EBMAKEBAT,resources.IAS4EBMAKESH,resources.GenState,resources.IAS4EBCFG
InpriseAS_4_Entity_Bean_BMP_-_All_Parts_NAME_PREFIX = , , , , , , , , , , ,
InpriseAS_4_Entity_Bean_BMP_-_All_Parts_NAME_SUFFIX =
EntityBean,Entity,IDD,PK,Home,Interface,DD, , , ,Config
InpriseAS_4_Entity_Bean_BMP_-_All_Parts_NAME_EXTENSION =
.java,.properties,.xml,.java,.java,.java,.xml,.bat,.sh,.java,.properties
InpriseAS_4_Entity_Bean_BMP_-_All_Parts_PROPERTIES =
BEAN_NAME_SUFFIX,BEAN_INTERFACE_SUFFIX,BEAN_HOME_SUFFIX,BEAN_PK_SUFFIX,jndiurl,jndiurlname,NOCLONE
InpriseAS_4_Entity_Bean_BMP_-_All_Parts_BEAN_NAME_SUFFIX = EntityBean
InpriseAS_4_Entity_Bean_BMP_-_All_Parts_BEAN_INTERFACE_SUFFIX = Interface
InpriseAS_4_Entity_Bean_BMP_-_All_Parts_BEAN_HOME_SUFFIX = Home
InpriseAS_4_Entity_Bean_BMP_-_All_Parts_BEAN_PK_SUFFIX = PK
InpriseAS_4_Entity_Bean_BMP_-_All_Parts_jndiurl_MESSAGE = Enter jndi connection pool
resource url such as 'jdbc/MyObjDataSource' (jndiurl):
InpriseAS_4_Entity_Bean_BMP_-_All_Parts_jndiurl_INITVALUE = jdbc/MyObjDataSource
InpriseAS_4_Entity_Bean_BMP_-_All_Parts_jndiurl = prompt
InpriseAS_4_Entity_Bean_BMP_-_All_Parts_jndiurlname_MESSAGE = Enter jndi connection
pool resourcename (jndiurlname):
InpriseAS_4_Entity_Bean_BMP_-_All_Parts_jndiurlname = prompt
InpriseAS_4_Entity_Bean_BMP_-_All_Parts_jndiurlname_INITVALUE = jdbc/CocoDataSource
InpriseAS_4_Entity_Bean_BMP_-_All_Parts_NOCLONE = true
InpriseAS_4_Entity_Bean_BMP_-_All_Parts_NOCLONE_MESSAGE = Does this server version
need Cloneable disabled? :
iPlanet_4_Entity_Bean_BMP_-_All_Parts_RESOURCE =
resources.NAS4EBSP,resources.NAS4EBPK,resources.NAS4EBHOME,resources.NAS4EBINT,resources.NAS4EBDDPROP,resources.NAS4EBMF,resources.NAS4EBMAKEBAT,resources.NAS4EBMAKESH,resources.GenState
iPlanet_4_Entity_Bean_BMP_-_All_Parts_NAME_PREFIX = , , , , , , , , ,
iPlanet_4_Entity_Bean_BMP_-_All_Parts_NAME_SUFFIX = EntityBean,PK,Home,Interface,DD,
, , ,
iPlanet_4_Entity_Bean_BMP_-_All_Parts_NAME_EXTENSION =
.java,.java,.java,.java,.properties,.mf,.bat,.sh,.java
iPlanet_4_Entity_Bean_BMP_-_All_Parts_PROPERTIES =
BEAN_NAME_SUFFIX,BEAN_INTERFACE_SUFFIX,BEAN_HOME_SUFFIX,BEAN_PK_SUFFIX,GUID,APPSDIR,dbuser,dbpassword
iPlanet_4_Entity_Bean_BMP_-_All_Parts_BEAN_NAME_SUFFIX = EntityBean
iPlanet_4_Entity_Bean_BMP_-_All_Parts_BEAN_INTERFACE_SUFFIX = Interface
iPlanet_4_Entity_Bean_BMP_-_All_Parts_BEAN_HOME_SUFFIX = Home
iPlanet_4_Entity_Bean_BMP_-_All_Parts_BEAN_PK_SUFFIX = PK
iPlanet_4_Entity_Bean_BMP_-_All_Parts_GUID_MESSAGE = Enter Global iPlanet Deployment
ID (GUID):
iPlanet_4_Entity_Bean_BMP_-_All_Parts_GUID = prompt
iPlanet_4_Entity_Bean_BMP_-_All_Parts_APPSDIR_MESSAGE = Enter APPS deployment PATH:
iPlanet_4_Entity_Bean_BMP_-_All_Parts_APPSDIR = prompt
iPlanet_4_Entity_Bean_BMP_-_All_Parts_dbuser_MESSAGE = Enter deployment db user id:
iPlanet_4_Entity_Bean_BMP_-_All_Parts_dbuser = prompt
iPlanet_4_Entity_Bean_BMP_-_All_Parts_dbpassword = Enter deployment db password:
iPlanet_4_Entity_Bean_BMP_-_All_Parts_dbpassword = prompt
iPlanet_4_Descriptor_Prop_File_RESOURCE = resources.NAS4EBDDPROP
iPlanet_4_Descriptor_Prop_File_NAME_PREFIX =
iPlanet_4_Descriptor_Prop_File_NAME_SUFFIX = DD
iPlanet_4_Descriptor_Prop_File_NAME_EXTENSION = .properties
iPlanet_4_Descriptor_Prop_File_BEAN_NAME_SUFFIX = EntityBean
iPlanet_4_Descriptor_Prop_File_BEAN_INTERFACE_SUFFIX = Interface
iPlanet_4_Descriptor_Prop_File_BEAN_HOME_SUFFIX = Home
iPlanet_4_Descriptor_Prop_File_BEAN_PK_SUFFIX = PK
iPlanet_4_Manifest_RESOURCE = resources.NAS4EBMF
iPlanet_4_Manifest_NAME_PREFIX =
iPlanet_4_Manifest_NAME_SUFFIX =
iPlanet_4_Manifest_NAME_EXTENSION = .mf
iPlanet_4_Manifest_BEAN_NAME_SUFFIX = EntityBean
iPlanet_4_Manifest_BEAN_INTERFACE_SUFFIX = Interface
iPlanet_4_Manifest_BEAN_HOME_SUFFIX = Home
iPlanet_4_Manifest_BEAN_PK_SUFFIX = PK
iPlanet_4_Make_Bat_RESOURCE = resources.NAS4EBMAKEBAT
iPlanet_4_Make_Bat_NAME_PREFIX =
iPlanet_4_Make_Bat_NAME_SUFFIX =
iPlanet_4_Make_Bat_NAME_EXTENSION = .bat
iPlanet_4_Make_Bat_BEAN_NAME_SUFFIX = EntityBean
iPlanet_4_Make_Bat_BEAN_INTERFACE_SUFFIX = Interface
iPlanet_4_Make_Bat_BEAN_HOME_SUFFIX = Home
iPlanet_4_Make_Bat_BEAN_PK_SUFFIX = PK
iPlanet_4_Make_Shell_Script_RESOURCE = resources.NAS4EBMAKESH
iPlanet_4_Make_Shell_Script_NAME_PREFIX =
iPlanet_4_Make_Shell_Script_NAME_SUFFIX =
iPlanet_4_Make_Shell_Script_NAME_EXTENSION = .sh
iPlanet_4_Make_Shell_BEAN_NAME_SUFFIX = EntityBean
iPlanet_4_Make_Shell_BEAN_INTERFACE_SUFFIX = Interface
iPlanet_4_Make_Shell_BEAN_HOME_SUFFIX = Home
iPlanet_4_Make_Shell_BEAN_PK_SUFFIX = PK
iPlanet_4_Home_Type_RESOURCE = resources.NAS4EBHOME
iPlanet_4_Home_Type_NAME_PREFIX =
iPlanet_4_Home_Type_NAME_SUFFIX = Home
iPlanet_4_Home_Type_NAME_EXTENSION = .java
iPlanet_4_Home_Type_BEAN_NAME_SUFFIX = EntityBean
iPlanet_4_Home_Type_BEAN_INTERFACE_SUFFIX = Interface
iPlanet_4_Home_Type_BEAN_HOME_SUFFIX = Home
iPlanet_4_Home_Type_BEAN_PK_SUFFIX = PK
iPlanet_4_Entity_Bean_BMP_Type_RESOURCE = resources.NAS4EBSP
iPlanet_4_Entity_Bean_BMP_Type_NAME_PREFIX =
iPlanet_4_Entity_Bean_BMP_Type_NAME_SUFFIX = EntityBean
iPlanet_4_Entity_Bean_BMP_Type_NAME_EXTENSION = .java
iPlanet_4_Entity_Bean_BMP_Type_BEAN_NAME_SUFFIX = EntityBean
iPlanet_4_Entity_Bean_BMP_Type_BEAN_INTERFACE_SUFFIX = Interface
iPlanet_4_Entity_Bean_BMP_Type_BEAN_HOME_SUFFIX = Home
iPlanet_4_Entity_Bean_BMP_Type_BEAN_PK_SUFFIX = PK
iPlanet_4_Primary_Key_Type_RESOURCE = resources.NAS4EBPK
iPlanet_4_Primary_Key_Type_NAME_PREFIX =
iPlanet_4_Primary_Key_Type_NAME_SUFFIX = PK
iPlanet_4_Primary_Key_Type_NAME_EXTENSION = .java
iPlanet_4_Primary_Key_Type_BEAN_NAME_SUFFIX = EntityBean
iPlanet_4_Primary_Key_Type_BEAN_INTERFACE_SUFFIX = Interface
iPlanet_4_Primary_Key_Type_BEAN_HOME_SUFFIX = Home
iPlanet_4_Primary_Key_Type_BEAN_PK_SUFFIX = PK
iPlanet_4_Interface_Type_RESOURCE = resources.NAS4EBINT
iPlanet_4_Interface_Type_NAME_PREFIX =
iPlanet_4_Interface_Type_NAME_SUFFIX = Interface
iPlanet_4_Interface_Type_NAME_EXTENSION = .java
iPlanet_4_Interface_Type_BEAN_NAME_SUFFIX = EntityBean
iPlanet_4_Interface_Type_BEAN_INTERFACE_SUFFIX = Interface
iPlanet_4_Interface_Type_BEAN_HOME_SUFFIX = Home
iPlanet_4_Interface_Type_BEAN_PK_SUFFIX = PK
Weblogic_Entity_Bean_BMP_-_All_Parts_RESOURCE =
resources.WeblogicEBSP,resources.WeblogicEBPK,resources.WeblogicEBHOME,resources.WeblogicEBINT,resources.WeblogicEBDDPROP,resources.WeblogicEBMF,resources.WeblogicEBMAKEBAT,resources.WeblogicEBMAKESH,resources.GenState,resources.WeblogicEBCFG
Weblogic_Entity_Bean_BMP_-_All_Parts_NAME_PREFIX = , , , , , , , , , ,
Weblogic_Entity_Bean_BMP_-_All_Parts_NAME_SUFFIX = EntityBean,PK,Home,Interface,DD,
, , , ,Config
Weblogic_Entity_Bean_BMP_-_All_Parts_NAME_EXTENSION =
.java,.java,.java,.java,.txt,.mf,.bat,.sh,.java,.properties
Weblogic_Entity_Bean_BMP_-_All_Parts_PROPERTIES =
BEAN_NAME_SUFFIX,BEAN_INTERFACE_SUFFIX,BEAN_HOME_SUFFIX,BEAN_PK_SUFFIX
Weblogic_Entity_Bean_BMP_-_All_Parts_BEAN_NAME_SUFFIX = EntityBean
Weblogic_Entity_Bean_BMP_-_All_Parts_BEAN_INTERFACE_SUFFIX = Interface
Weblogic_Entity_Bean_BMP_-_All_Parts_BEAN_HOME_SUFFIX = Home
Weblogic_Entity_Bean_BMP_-_All_Parts_BEAN_PK_SUFFIX = PK
Weblogic_WebExpress_5_Entity_Bean_BMP_-_All_Parts_RESOURCE =
resources.WeblogicExp5REBDDPROP,resources.WeblogicExp5EBSP,resources.WeblogicExp5EBPK,resources.WeblogicExp5EBHOME,resources.WeblogicExp5EBINT,resources.WeblogicExp5EBDDPROP,resources.WeblogicExp5EBMAKEBAT,resources.WeblogicExp5EBMAKESH,resources.GenState,resources.WeblogicExp5EBCFG
Weblogic_WebExpress_5_Entity_Bean_BMP_-_All_Parts_NAME_PREFIX = , , , , , , , , , ,
Weblogic_WebExpress_5_Entity_Bean_BMP_-_All_Parts_NAME_SUFFIX =
WDD,EntityBean,PK,Home,Interface,DD, , , ,Config
Weblogic_WebExpress_5_Entity_Bean_BMP_-_All_Parts_NAME_EXTENSION =
.xml,.java,.java,.java,.java,.xml,.bat,.sh,.java,.properties
Weblogic_WebExpress_5_Entity_Bean_BMP_-_All_Parts_PROPERTIES =
BEAN_NAME_SUFFIX,BEAN_INTERFACE_SUFFIX,BEAN_HOME_SUFFIX,BEAN_PK_SUFFIX,jndiurl,jndiurlname
Weblogic_WebExpress_5_Entity_Bean_BMP_-_All_Parts_BEAN_NAME_SUFFIX = EntityBean
Weblogic_WebExpress_5_Entity_Bean_BMP_-_All_Parts_BEAN_INTERFACE_SUFFIX = Interface
Weblogic_WebExpress_5_Entity_Bean_BMP_-_All_Parts_BEAN_HOME_SUFFIX = Home
Weblogic_WebExpress_5_Entity_Bean_BMP_-_All_Parts_BEAN_PK_SUFFIX = PK
Weblogic_WebExpress_5_Entity_Bean_BMP_-_All_Parts_jndiurl_MESSAGE = Enter jndi
connection pool resource url such as (jndiurl):
Weblogic_WebExpress_5_Entity_Bean_BMP_-_All_Parts_jndiurl_INITVALUE = jdbc/demoPool
Weblogic_WebExpress_5_Entity_Bean_BMP_-_All_Parts_jndiurl = prompt
Weblogic_WebExpress_5_Entity_Bean_BMP_-_All_Parts_jndiurlname_MESSAGE = Enter jndi
connection pool resourcename such as (jndiurlname):
Weblogic_WebExpress_5_Entity_Bean_BMP_-_All_Parts_jndiurlname_INITVALUE =
weblogic.jdbc.jts.demoPool
Weblogic_WebExpress_5_Entity_Bean_BMP_-_All_Parts_jndiurlname = prompt
Weblogic_Descriptor_Prop_File_RESOURCE = resources.WeblogicEBDDPROP
Weblogic_Descriptor_Prop_File_NAME_PREFIX =
Weblogic_Descriptor_Prop_File_NAME_SUFFIX = DD
Weblogic_Descriptor_Prop_File_NAME_EXTENSION = .txt
Weblogic_Descriptor_Prop_File_BEAN_NAME_SUFFIX = EntityBean
Weblogic_Descriptor_Prop_File_BEAN_INTERFACE_SUFFIX = Interface
Weblogic_Descriptor_Prop_File_BEAN_HOME_SUFFIX = Home
Weblogic_Descriptor_Prop_File_BEAN_PK_SUFFIX = PK
Weblogic_Manifest_RESOURCE = resources.WeblogicEBMF
Weblogic_Manifest_NAME_PREFIX =
Weblogic_Manifest_NAME_SUFFIX =
Weblogic_Manifest_NAME_EXTENSION = .mf
Weblogic_Manifest_BEAN_NAME_SUFFIX = EntityBean
Weblogic_Manifest_BEAN_INTERFACE_SUFFIX = Interface
Weblogic_Manifest_BEAN_HOME_SUFFIX = Home
Weblogic_Manifest_BEAN_PK_SUFFIX = PK
Weblogic_Make_Bat_RESOURCE = resources.WeblogicEBMAKEBAT
Weblogic_Make_Bat_NAME_PREFIX =
Weblogic_Make_Bat_NAME_SUFFIX =
Weblogic_Make_Bat_NAME_EXTENSION = .bat
Weblogic_Make_Bat_BEAN_NAME_SUFFIX = EntityBean
Weblogic_Make_Bat_BEAN_INTERFACE_SUFFIX = Interface
Weblogic_Make_Bat_BEAN_HOME_SUFFIX = Home
Weblogic_Make_Bat_BEAN_PK_SUFFIX = PK
Weblogic_Make_Shell_Script_RESOURCE = resources.WeblogicEBMAKESH
Weblogic_Make_Shell_Script_NAME_PREFIX =
Weblogic_Make_Shell_Script_NAME_SUFFIX =
Weblogic_Make_Shell_Script_NAME_EXTENSION = .sh
Weblogic_Make_Shell_Script_BEAN_NAME_SUFFIX = EntityBean
Weblogic_Make_Shell_Script_BEAN_INTERFACE_SUFFIX = Interface
Weblogic_Make_Shell_Script_BEAN_HOME_SUFFIX = Home
Weblogic_Make_Shell_Script_BEAN_PK_SUFFIX = PK
Weblogic_Home_Type_RESOURCE = resources.WeblogicEBHOME
Weblogic_Home_Type_NAME_PREFIX =
Weblogic_Home_Type_NAME_SUFFIX = Home
Weblogic_Home_Type_NAME_EXTENSION = .java
Weblogic_Home_Type_BEAN_NAME_SUFFIX = EntityBean
Weblogic_Home_Type_BEAN_INTERFACE_SUFFIX = Interface
Weblogic_Home_Type_BEAN_HOME_SUFFIX = Home
Weblogic_Home_Type_BEAN_PK_SUFFIX = PK
Weblogic_Entity_Bean_BMP_Type_RESOURCE = resources.WeblogicEBSP
Weblogic_Entity_Bean_BMP_Type_NAME_PREFIX =
Weblogic_Entity_Bean_BMP_Type_NAME_SUFFIX = EntityBean
Weblogic_Entity_Bean_BMP_Type_NAME_EXTENSION = .java
Weblogic_Entity_Bean_BMP_Type_BEAN_NAME_SUFFIX = EntityBean
Weblogic_Entity_Bean_BMP_Type_BEAN_INTERFACE_SUFFIX = Interface
Weblogic_Entity_Bean_BMP_Type_BEAN_HOME_SUFFIX = Home
Weblogic_Entity_Bean_BMP_Type_BEAN_PK_SUFFIX = PK
Weblogic_Primary_Key_Type_RESOURCE = resources.WeblogicEBPK
Weblogic_Primary_Key_Type_NAME_PREFIX =
Weblogic_Primary_Key_Type_NAME_SUFFIX = PK
Weblogic_Primary_Key_Type_NAME_EXTENSION = .java
Weblogic_Primary_Key_Type_BEAN_NAME_SUFFIX = EntityBean
Weblogic_Primary_Key_Type_BEAN_INTERFACE_SUFFIX = Interface
Weblogic_Primary_Key_Type_BEAN_HOME_SUFFIX = Home
Weblogic_Primary_Key_Type_BEAN_PK_SUFFIX = PK
Weblogic_Interface_Type_RESOURCE = resources.WeblogicEBINT
Weblogic_Interface_Type_NAME_PREFIX =
Weblogic_Interface_Type_NAME_SUFFIX = Interface
Weblogic_Interface_Type_NAME_EXTENSION = .java
Weblogic_Interface_Type_BEAN_NAME_SUFFIX = EntityBean
Weblogic_Interface_Type_BEAN_INTERFACE_SUFFIX = Interface
Weblogic_Interface_Type_BEAN_HOME_SUFFIX = Home
Weblogic_Interface_Type_BEAN_PK_SUFFIX = PK
Websphere_Entity_Bean_BMP_-_All_Parts_RESOURCE =
resources.WebsphereEBSP,resources.WebsphereEBPK,resources.WebsphereEBHOME,resources.WebsphereEBINT,resources.WebsphereEBDDPROP,resources.WebsphereEBENV,resources.WebsphereEBMF,resources.WebsphereEBMAKEBAT,resources.WebsphereEBMAKESH,resources.GenState,resources.WebsphereEBCFG
Websphere_Entity_Bean_BMP_-_All_Parts_NAME_PREFIX = , , , , , , , , , , ,
Websphere_Entity_Bean_BMP_-_All_Parts_NAME_SUFFIX =
EntityBean,PK,Home,Interface,DD,Entity, , , , ,Config
Websphere_Entity_Bean_BMP_-_All_Parts_NAME_EXTENSION =
.java,.java,.java,.java,.xml,.properties,.mf,.bat,.sh,.java,.properties
Websphere_Entity_Bean_BMP_-_All_Parts_PROPERTIES =
BEAN_NAME_SUFFIX,BEAN_INTERFACE_SUFFIX,BEAN_HOME_SUFFIX,BEAN_PK_SUFFIX
Websphere_Entity_Bean_BMP_-_All_Parts_BEAN_NAME_SUFFIX = EntityBean
Websphere_Entity_Bean_BMP_-_All_Parts_BEAN_INTERFACE_SUFFIX = Interface
Websphere_Entity_Bean_BMP_-_All_Parts_BEAN_HOME_SUFFIX = Home
Websphere_Entity_Bean_BMP_-_All_Parts_BEAN_PK_SUFFIX = PK
Websphere3_Entity_Bean_BMP_-_All_Parts_RESOURCE =
resources.Websphere3EBSP,resources.WebsphereEBPK,resources.WebsphereEBHOME,resources.WebsphereEBINT,resources.Websphere3EBDDPROP,resources.Websphere3EBENV,resources.Websphere3EBMAKEBAT,resources.Websphere3EBMAKESH,resources.GenState,resources.WebsphereEBCFG
Websphere3_Entity_Bean_BMP_-_All_Parts_NAME_PREFIX = , , , , , , , , , ,
Websphere3_Entity_Bean_BMP_-_All_Parts_NAME_SUFFIX =
EntityBean,PK,Home,Interface,DD,Entity, , , ,Config
Websphere3_Entity_Bean_BMP_-_All_Parts_NAME_EXTENSION =
.java,.java,.java,.java,.xml,.properties,.bat,.sh,.java,.properties
Websphere3_Entity_Bean_BMP_-_All_Parts_PROPERTIES =
BEAN_NAME_SUFFIX,BEAN_INTERFACE_SUFFIX,BEAN_HOME_SUFFIX,BEAN_PK_SUFFIX
Websphere3_Entity_Bean_BMP_-_All_Parts_BEAN_NAME_SUFFIX = EntityBean
Websphere3_Entity_Bean_BMP_-_All_Parts_BEAN_INTERFACE_SUFFIX = Interface
Websphere3_Entity_Bean_BMP_-_All_Parts_BEAN_HOME_SUFFIX = Home
Websphere3_Entity_Bean_BMP_-_All_Parts_BEAN_PK_SUFFIX = PK
Websphere_Descriptor_Prop_File_RESOURCE = resources.WebsphereEBDDPROP
Websphere_Descriptor_Prop_File_NAME_PREFIX =
Websphere_Descriptor_Prop_File_NAME_SUFFIX = DD
Websphere_Descriptor_Prop_File_NAME_EXTENSION = .xml
Websphere_Descriptor_BEAN_NAME_SUFFIX = EntityBean
Websphere_Descriptor_BEAN_INTERFACE_SUFFIX = Interface
Websphere_Descriptor_BEAN_HOME_SUFFIX = Home
Websphere_Descriptor_BEAN_PK_SUFFIX = PK
Websphere_Manifest_RESOURCE = resources.WebsphereEBMF
Websphere_Manifest_NAME_PREFIX =
Websphere_Manifest_NAME_SUFFIX =
Websphere_Manifest_NAME_EXTENSION = .mf
Websphere_Manifest_BEAN_NAME_SUFFIX = EntityBean
Websphere_Manifest_BEAN_INTERFACE_SUFFIX = Interface
Websphere_Manifest_BEAN_HOME_SUFFIX = Home
Websphere_Manifest_BEAN_PK_SUFFIX = PK
Websphere_Make_Bat_RESOURCE = resources.WebsphereEBMAKEBAT
Websphere_Make_Bat_NAME_PREFIX =
Websphere_Make_Bat_NAME_SUFFIX =
Websphere_Make_Bat_NAME_EXTENSION = .bat
Websphere_Make_Bat_BEAN_NAME_SUFFIX = EntityBean
Websphere_Make_Bat_BEAN_INTERFACE_SUFFIX = Interface
Websphere_Make_Bat_BEAN_HOME_SUFFIX = Home
Websphere_Make_Bat_BEAN_PK_SUFFIX = PK
Websphere_Make_Shell_Script_RESOURCE = resources.WebsphereEBMAKESH
Websphere_Make_Shell_Script_NAME_PREFIX =
Websphere_Make_Shell_Script_NAME_SUFFIX =
Websphere_Make_Shell_Script_NAME_EXTENSION = .sh
Websphere_Make_Shell_Script_BEAN_NAME_SUFFIX = EntityBean
Websphere_Make_Shell_Script_BEAN_INTERFACE_SUFFIX = Interface
Websphere_Make_Shell_Script_BEAN_HOME_SUFFIX = Home
Websphere_Make_Shell_Script_BEAN_PK_SUFFIX = PK
Websphere_ENV_File_RESOURCE = resources.WebsphereEBENV
Websphere_ENV_File_NAME_PREFIX =
Websphere_ENV_File_NAME_SUFFIX = Entity
Websphere_ENV_File_NAME_EXTENSION = .properties
Websphere_ENV_File_BEAN_NAME_SUFFIX = EntityBean
Websphere_ENV_File_BEAN_INTERFACE_SUFFIX = Interface
Websphere_ENV_File_BEAN_HOME_SUFFIX = Home
Websphere_ENV_File_BEAN_PK_SUFFIX = PK
Websphere_Home_Type_RESOURCE = resources.WebsphereEBHOME
Websphere_Home_Type_NAME_PREFIX =
Websphere_Home_Type_NAME_SUFFIX = Home
Websphere_Home_Type_NAME_EXTENSION = .java
Websphere_Home_Type_BEAN_NAME_SUFFIX = EntityBean
Websphere_Home_Type_BEAN_INTERFACE_SUFFIX = Interface
Websphere_Home_Type_BEAN_HOME_SUFFIX = Home
Websphere_Home_Type_BEAN_PK_SUFFIX = PK
Websphere_Entity_Bean_BMP_Type_RESOURCE = resources.WebsphereEBSP
Websphere_Entity_Bean_BMP_Type_NAME_PREFIX =
Websphere_Entity_Bean_BMP_Type_NAME_SUFFIX = EntityBean
Websphere_Entity_Bean_BMP_Type_NAME_EXTENSION = .java
Websphere_Entity_Bean_BMP_Type_BEAN_NAME_SUFFIX = EntityBean
Websphere_Entity_Bean_BMP_Type_BEAN_INTERFACE_SUFFIX = Interface
Websphere_Entity_Bean_BMP_Type_BEAN_HOME_SUFFIX = Home
Websphere_Entity_Bean_BMP_Type_BEAN_PK_SUFFIX = PK
Websphere_Primary_Key_Type_RESOURCE = resources.WebsphereEBPK
Websphere_Primary_Key_Type_NAME_PREFIX =
Websphere_Primary_Key_Type_NAME_SUFFIX = PK
Websphere_Primary_Key_Type_NAME_EXTENSION = .java
Websphere_Primary_Key_Type_BEAN_NAME_SUFFIX = EntityBean
Websphere_Primary_Key_Type_BEAN_INTERFACE_SUFFIX = Interface
Websphere_Primary_Key_Type_BEAN_HOME_SUFFIX = Home
Websphere_Primary_Key_Type_BEAN_PK_SUFFIX = PK
Websphere_Interface_Type_RESOURCE = resources.WebsphereEBINT
Websphere_Interface_Type_NAME_PREFIX =
Websphere_Interface_Type_NAME_SUFFIX = Interface
Websphere_Interface_Type_NAME_EXTENSION = .java
Websphere_Interface_Type_BEAN_NAME_SUFFIX = EntityBean
Websphere_Interface_Type_BEAN_INTERFACE_SUFFIX = Interface
Websphere_Interface_Type_BEAN_HOME_SUFFIX = Home
Websphere_Interface_Type_BEAN_PK_SUFFIX = PK
Generic_EJB_Entity_Bean_BMP_-_All_Parts_RESOURCE =
resources.EJBEBPK,resources.EJBEBSP,resources.EJBEBHOME,resources.EJBEBINT,resources.EJBEBENV,resources.GenState,resources.EJBEBCFG
Generic_EJB_Entity_Bean_BMP_-_All_Parts_NAME_PREFIX = ,,,,,,
Generic_EJB_Entity_Bean_BMP_-_All_Parts_NAME_SUFFIX =
PK,EntityBean,Home,Interface,Entity, ,Config
Generic_EJB_Entity_Bean_BMP_-_All_Parts_NAME_EXTENSION =
.java,.java,.java,.java,.properties,.java,.properties
Generic_EJB_Entity_Bean_BMP_-_All_Parts_PROPERTIES =
BEAN_NAME_SUFFIX,BEAN_INTERFACE_SUFFIX,BEAN_HOME_SUFFIX,BEAN_PK_SUFFIX
Generic_EJB_Entity_Bean_BMP_-_All_Parts_BEAN_NAME_SUFFIX = EntityBean
Generic_EJB_Entity_Bean_BMP_-_All_Parts_BEAN_INTERFACE_SUFFIX = Interface
Generic_EJB_Entity_Bean_BMP_-_All_Parts_BEAN_HOME_SUFFIX = Home
Generic_EJB_Entity_Bean_BMP_-_All_Parts_BEAN_PK_SUFFIX = PK
Generic_EJB_Entity_Bean_BMP_-_All_Parts_BEAN_NAME_SUFFIX = EntityBean
Generic_EJB_Entity_Bean_BMP_-_All_Parts_BEAN_INTERFACE_SUFFIX = Interface
Generic_EJB_Entity_Bean_BMP_-_All_Parts_BEAN_HOME_SUFFIX = Home
Generic_EJB_Entity_Bean_BMP_-_All_Parts_BEAN_PK_SUFFIX = PK
Generic_EJB_Home_Type_RESOURCE = resources.EJBEBHOME
Generic_EJB_Home_Type_NAME_PREFIX =
Generic_EJB_Home_Type_NAME_SUFFIX = Home
Generic_EJB_Home_Type_NAME_EXTENSION = .java
Generic_EJB_Home_Type_BEAN_NAME_SUFFIX = EntityBean
Generic_EJB_Home_Type_BEAN_INTERFACE_SUFFIX = Interface
Generic_EJB_Home_Type_BEAN_HOME_SUFFIX = Home
Generic_EJB_Home_Type_BEAN_PK_SUFFIX = PK
Generic_EJB_Entity_Bean_BMP_Type_RESOURCE = resources.EJBEBSP
Generic_EJB_Entity_Bean_BMP_Type_NAME_PREFIX =
Generic_EJB_Entity_Bean_BMP_Type_NAME_SUFFIX = EntityBean
Generic_EJB_Entity_Bean_BMP_Type_NAME_EXTENSION = .java
Generic_EJB_Entity_Bean_BMP_Type_BEAN_NAME_SUFFIX = EntityBean
Generic_EJB_Entity_Bean_BMP_Type_BEAN_INTERFACE_SUFFIX = Interface
Generic_EJB_Entity_Bean_BMP_Type_BEAN_HOME_SUFFIX = Home
Generic_EJB_Entity_Bean_BMP_Type_BEAN_PK_SUFFIX = PK
Generic_EJB_Primary_Key_Type_RESOURCE = resources.EJBEBPK
Generic_EJB_Primary_Key_Type_NAME_PREFIX =
Generic_EJB_Primary_Key_Type_NAME_SUFFIX = PK
Generic_EJB_Primary_Key_Type_NAME_EXTENSION = .java
Generic_EJB_Primary_Key_Type_BEAN_NAME_SUFFIX = EntityBean
Generic_EJB_Primary_Key_Type_BEAN_INTERFACE_SUFFIX = Interface
Generic_EJB_Primary_Key_Type_BEAN_HOME_SUFFIX = Home
Generic_EJB_Primary_Key_Type_BEAN_PK_SUFFIX = PK
Generic_EJB_Interface_Type_RESOURCE = resources.EJBEBINT
Generic_EJB_Interface_Type_NAME_PREFIX =
Generic_EJB_Interface_Type_NAME_SUFFIX = Interface
Generic_EJB_Interface_Type_NAME_EXTENSION = .java
Generic_EJB_Interface_Type_BEAN_NAME_SUFFIX = EntityBean
Generic_EJB_Interface_Type_BEAN_INTERFACE_SUFFIX = Interface
Generic_EJB_Interface_Type_BEAN_HOME_SUFFIX = Home
Generic_EJB_Interface_Type_BEAN_PK_SUFFIX = PK
Generic_EJB_Environment_File_RESOURCE = resources.EJBEBENV
Generic_EJB_Environment_File_NAME_PREFIX =
Generic_EJB_Environment_File_NAME_SUFFIX = Entity
Generic_EJB_Environment_File_NAME_EXTENSION = .properties
Generic_EJB_Environment_File_BEAN_NAME_SUFFIX = EntityBean
Generic_EJB_Environment_File_BEAN_INTERFACE_SUFFIX = Interface
Generic_EJB_Environment_File_BEAN_HOME_SUFFIX = Home
Generic_EJB_Environment_File_BEAN_PK_SUFFIX = PK
Generic_EJB_Entity_Bean_CMP_-_All_Parts_RESOURCE =
resources.CMPEJBPK,resources.CMPEJBBEAN,resources.CMPEJBHOME,resources.CMPEJBINT,resources.CMPEJBDDPROP,resources.GenState,resources.EJBEBCFG,resources.CMPMAKEBAT,resources.CMPMAKESH
Generic_EJB_Entity_Bean_CMP_-_All_Parts_NAME_PREFIX = ,,,,,,,,
Generic_EJB_Entity_Bean_CMP_-_All_Parts_NAME_SUFFIX =
PK,EntityBean,Home,Interface,DD, ,EntityBeanConfig,,
Generic_EJB_Entity_Bean_CMP_-_All_Parts_NAME_EXTENSION =
.java,.java,.java,.java,.xml,.java,.properties,.bat,.sh
Generic_EJB_Entity_Bean_CMP_-_All_Parts_PROPERTIES =
BEAN_NAME_SUFFIX,BEAN_INTERFACE_SUFFIX,BEAN_HOME_SUFFIX,BEAN_PK_SUFFIX
Generic_EJB_Entity_Bean_CMP_-_All_Parts_BEAN_NAME_SUFFIX = EntityBean
Generic_EJB_Entity_Bean_CMP_-_All_Parts_BEAN_INTERFACE_SUFFIX = Interface
Generic_EJB_Entity_Bean_CMP_-_All_Parts_BEAN_HOME_SUFFIX = Home
Generic_EJB_Entity_Bean_CMP_-_All_Parts_BEAN_PK_SUFFIX = PK
1.1 contrib/cocobase/conf/JBOSS2EBCFG.properties
Index: JBOSS2EBCFG.properties
===================================================================
;
; This is the template file used to generate new java programming files
;
; The following variables are guaranteed to be provided by the CocoBase
; code generation runtime (note the variables are case sensitive!)
;
; HASPACKAGE - If we have a packagename prefix.
; packagename - The packagename (if present), such as com.thought
; Classname - The class name (such as Employee)
; supportCBDrop - If we wish to use the Properties based CBDrop interface.
; supportCBProp - If we wish to use the Properties based CBProp interface.
; supportODBMS - If we wish to generate code with ODBMS navigation.
; supportODBMSandCBProp - If we've selected both ODBMS and CBProp flags.
; EOL - The End of line character to be used when generating the java source
; code. This is OS dependent.
; supportTransObj - If we support using a Transaction object in the code
; generation for the 1-1, 1-M or M-M code.
; Column - The Java column name to use in constructin methods such as getPhone
; column - The Java column name (such as phone or empSkill);
; COLUMN - The Map's column name (such as "PHONE" or "EMP_SKILL")
; COUNT - current column count
; Targetclass - used in 1-1,1-M & M-M - The target class in the relationship
; Targetcolumn - used in 1-1,1-M & M-M - The target column in the relationship
; clonelist - The list of column attributes in the clone() method.
; tostringlist - The list of column attributes in the clone() method.
; dropsetlist - The code for the columns in the setObjectData() method.
; dropgetlist - The code for the columns in the getObjectData() method.
; propsetlist - The code for the columns in the setPropObjectData() method.
; propgetlist - The code for the columns in the getPropObjectData() method.
; iskey - Notes whether the column is part of the primary key.
; If we have a package, then insert the packing name string.
PACKAGEINFO =
; The imports for each class generated.
IMPORTS =
CURRENTMAP = <CBIF Mapname><CBSET cachemap=%Mapname%></CBIF><CBIFNOT Mapname><CBSET
cachemap=%Classname%></CBIFNOT>
; The Class string to start the new java class with.
CLASSBEGIN = <CBINCLUDE CURRENTMAP>
; The comment used for each setAttr() method
SETCOMMENT =
; The comment used for each getAttr() method
GETCOMMENT =
; To appear just before the list of instance variables.
CLASSVARCOMMENT =
; The code necessary to define an attribute as java.types.BIT
BITDEFINE =
BITGET =
BITSET =
; Use the current position for this element fetch. %COUNT% is the reserved
; variable to specify the current location.
BITCBDROPSET =
BITCBDROPGET =
; Note the use of uppercase to denote the Property value.
BITCBPROPSET =
BITCBPROPGET =
BITCLONESET =
BITTOSTRINGSET =
; The code necessary to define an attribute as java.types.CHAR or java.types.VARCHAR
CHARDEFINE =
CHARGET =
CHARSET =
CHARCBDROPSET =
CHARCBDROPGET =
CHARCBPROPSET =
CHARCBPROPGET =
CHARCLONESET =
CHARTOSTRINGSET =
; The code necessary to define an attribute as java.types.DECIMAL or
java.types.NUMERIC
BIGDECIMALDEFINE =
BIGDECIMALGET =
BIGDECIMALSET =
BIGDECIMALCBDROPSET =
BIGDECIMALCBDROPGET =
BIGDECIMALCBPROPSET =
BIGDECIMALCBPROPGET =
BIGDECIMALCLONESET =
BIGDECIMALTOSTRINGSET =
; The code necessary to define an attribute as java.types.TINYINT
TINYINTDEFINE =
TINYINTGET =
TINYINTSET =
TINYINTCBDROPSET =
TINYINTCBDROPGET =
TINYINTCBPROPSET =
TINYINTCBPROPGET =
TINYINTCLONESET =
TINYINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.SMALLINT
SMALLINTDEFINE =
SMALLINTGET =
SMALLINTSET =
SMALLINTCBDROPSET =
SMALLINTCBDROPGET =
SMALLINTCBPROPGET =
SMALLINTCBPROPSET =
SMALLINTCLONESET =
SMALLINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.INTEGER
INTEGERDEFINE =
INTEGERGET =
INTEGERSET =
INTEGERCBDROPSET =
INTEGERCBDROPGET =
INTEGERCBPROPGET =
INTEGERCBPROPSET =
INTEGERCLONESET =
INTEGERTOSTRINGSET =
; The code necessary to define an attribute as java.types.BIGINT
BIGINTDEFINE =
BIGINTGET =
BIGINTSET =
BIGINTCBDROPSET =
BIGINTCBDROPGET =
BIGINTCBPROPGET =
BIGINTCBPROPSET =
BIGINTCLONESET =
BIGINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.TIMESTAMP
TIMESTAMPDEFINE =
TIMESTAMPGET =
TIMESTAMPSET =
TIMESTAMPCBDROPSET =
TIMESTAMPCBDROPGET =
TIMESTAMPCBPROPGET =
TIMESTAMPCBPROPSET =
TIMESTAMPCLONESET =
TIMESTAMPTOSTRINGSET =
; The code necessary to define an attribute as java.types.TIME
TIMEDEFINE =
TIMEGET =
TIMESET =
TIMECBDROPSET =
TIMECBDROPGET =
TIMECBPROPGET =
TIMECBPROPSET =
TIMECLONESET =
TIMETOSTRINGSET =
; The code necessary to define an attribute as java.types.REAL
REALDEFINE =
REALGET =
REALSET =
REALCBDROPSET =
REALCBDROPGET =
REALCBPROPGET =
REALCBPROPSET =
REALCLONESET =
REALTOSTRINGSET =
; The code necessary to define an attribute as java.types.FLOAT
FLOATDEFINE =
FLOATGET =
FLOATSET =
FLOATCBDROPSET =
FLOATCBDROPGET =
FLOATCBPROPGET =
FLOATCBPROPSET =
FLOATCLONESET =
FLOATTOSTRINGSET =
; The code necessary to define an attribute as java.types.DOUBLE
DOUBLEDEFINE =
DOUBLEGET =
DOUBLESET =
DOUBLECBDROPSET =
DOUBLECBDROPGET =
DOUBLECBPROPGET =
DOUBLECBPROPSET =
DOUBLECLONESET =
DOUBLETOSTRINGSET =
; The code necessary to define an attribute as java.types.VARBINARY
VARBINARYDEFINE =
VARBINARYGET =
VARBINARYSET =
VARBINARYCBDROPSET =
VARBINARYCBDROPGET =
VARBINARYCBPROPGET =
VARBINARYCBPROPSET =
VARBINARYCLONESET =
VARBINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.LONGVARBINARY
LONGVARBINARYDEFINE =
LONGVARBINARYGET =
LONGVARBINARYSET =
LONGVARBINARYCBDROPSET =
LONGVARBINARYCBDROPGET =
LONGVARBINARYCBPROPGET =
LONGVARBINARYCBPROPSET =
LONGVARBINARYCLONESET =
LONGVARBINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.LONGVARCHAR
LONGVARCHARDEFINE =
LONGVARCHARGET =
LONGVARCHARSET =
LONGVARCHARCBDROPSET =
LONGVARCHARCBDROPGET =
LONGVARCHARCBPROPGET =
LONGVARCHARCBPROPSET =
LONGVARCHARCLONESET =
LONGVARCHARTOSTRINGSET =
; The code necessary to define an attribute as java.types.DATE
DATEDEFINE =
DATEGET =
DATESET =
DATECBDROPSET =
DATECBDROPGET =
DATECBPROPGET =
DATECBPROPSET =
DATECLONESET =
DATETOSTRINGSET =
; The code necessary to define an attribute as java.types.BINARY
BINARYDEFINE =
BINARYGET =
BINARYSET =
BINARYCBDROPSET =
BINARYCBDROPGET =
BINARYCBPROPGET =
BINARYCBPROPSET =
BINARYCLONESET =
BINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.OTHER
UNKNOWNDEFINE =
UNKNOWNGET =
UNKNOWNSET =
UNKNOWNCBDROPSET =
UNKNOWNCBDROPGET =
UNKNOWNCBPROPGET =
UNKNOWNCBPROPSET =
UNKNOWNCLONESET =
UNKNOWNTOSTRINGSET =
; If we have and ODBMS & CBProp, this adds in the clone code to clone the
; ODBMS specific information.
COLCLONESET =
; If we have and ODBMS & CBProp, this adds in the toString code to toString the
; ODBMS specific information.
COLTOSTRINGSET =
; This ends the toString method.
CLASSTOSTRING =
; This tries to include all of the variables above the columns (such as ODBMS
; and CBProp variables).
CLASSVARS =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; getPropObjectData method.
LOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; setPropObjectData method.
LOIDPROPGET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; getPropObjectData method.
NAVLOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; setPropObjectData method.
NAVLOIDPROPGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDSET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
GETNAVLOID =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
SETNAVLOID =
; This is the method used to generate the clone() code - not used in EJBHOME.
CLONESTRING =
; This is the method used to generate the toString() code.
TOSTRINGSTRING =
; This is the method used to generate the CBDrop.setObjectData() code.
DROPSETSTRING =
; This is the method used to generate the CBDrop.getObjectData() code.
DROPGETSTRING =
; This is the method used to generate the CBProp.setPropObjectData() code.
PROPSETSTRING =
; This is the method used to generate the CBProp.getPropObjectData() code.
PROPGETSTRING =
; This comment is embedded in another comment within this file by using
; a <CBINCLUDE ODBMSCOMMENT>. It provides a great example of how to
; use the <CBINCLUDE directive>
ODBMSCOMMENT =
METHODNAV =
LINK1MDEFINE = <CBIFNOT cachemap contains %mapname%><CBAPPEND
cachemap+,%mapname%></CBIFNOT>
LINK1MGET =
LINK1MINSERT =
LINK1MUPDATE =
LINK1MDELETE =
METHODNAV =
LINK11DEFINE = <CBIFNOT cachemap contains %mapname%><CBAPPEND
cachemap+,%mapname%></CBIFNOT>
LINK11GET =
LINK11INSERT =
LINK11UPDATE =
LINK11DELETE =
CLASSEND = # Map names to preload%EOL%\
MAPNAMES = %cachemap%%EOL%
1.1 contrib/cocobase/conf/JBOSS2EBCLIENT.properties
Index: JBOSS2EBCLIENT.properties
===================================================================
; This is the template file used to generate new java programming files
;
; The following variables are guaranteed to be provided by the CocoBase
; code generation runtime (note the variables are case sensitive!)
;
; HASPACKAGE - If we have a packagename prefix.
; packagename - The packagename (if present), such as com.thought
; Classname - The class name (such as Employee)
; supportCBDrop - If we wish to use the Properties based CBDrop interface.
; supportCBProp - If we wish to use the Properties based CBProp interface.
; supportODBMS - If we wish to generate code with ODBMS navigation.
; supportODBMSandCBProp - If we've selected both ODBMS and CBProp flags.
; EOL - The End of line character to be used when generating the java source
; code. This is OS dependent.
; supportTransObj - If we support using a Transaction object in the code
; generation for the 1-1, 1-M or M-M code.
; Column - The Java column name to use in constructin methods such as getPhone
; column - The Java column name (such as phone or empSkill);
; COLUMN - The Map's column name (such as "PHONE" or "EMP_SKILL")
; COUNT - current column count
; Targetclass - used in 1-1,1-M & M-M - The target class in the relationship
; Targetcolumn - used in 1-1,1-M & M-M - The target column in the relationship
; clonelist - The list of column attributes in the clone() method.
; tostringlist - The list of column attributes in the clone() method.
; dropsetlist - The code for the columns in the setObjectData() method.
; dropgetlist - The code for the columns in the getObjectData() method.
; propsetlist - The code for the columns in the setPropObjectData() method.
; propgetlist - The code for the columns in the getPropObjectData() method.
; iskey - Notes whether the column is part of the primary key.
; If we have a package, then insert the packing name string.
PACKAGEINFO = <CBIF HASPACKAGE>package %packagename%;%EOL%\
%EOL%</CBIF>
; The imports for each class generated.
IMPORTS = import java.rmi.RemoteException;%EOL%\
import java.util.*;%EOL%\
import javax.naming.*;%EOL%\
import javax.rmi.PortableRemoteObject;
; The Class string to start the new java class with.
CLASSBEGIN = <CBINCLUDE PACKAGEINFO>\
<CBINCLUDE IMPORTS>%EOL%\
; The comment used for each setAttr() method
SETCOMMENT =
; The comment used for each getAttr() method
GETCOMMENT =
; To appear just before the list of instance variables.
CLASSVARCOMMENT =
; The code necessary to define an attribute as java.types.BIT
BITDEFINE =
BITGET =
BITSET =
; Use the current position for this element fetch. %COUNT% is the reserved
; variable to specify the current location.
BITCBDROPSET =
BITCBDROPGET =
; Note the use of uppercase to denote the Property value.
BITCBPROPSET =
BITCBPROPGET =
BITCLONESET =
BITTOSTRINGSET =
; The code necessary to define an attribute as java.types.CHAR or java.types.VARCHAR
CHARDEFINE =
CHARGET =
CHARSET =
CHARCBDROPSET =
CHARCBDROPGET =
CHARCBPROPSET =
CHARCBPROPGET =
CHARCLONESET =
CHARTOSTRINGSET =
; The code necessary to define an attribute as java.types.DECIMAL or
java.types.NUMERIC
BIGDECIMALDEFINE =
BIGDECIMALGET =
BIGDECIMALSET =
BIGDECIMALCBDROPSET =
BIGDECIMALCBDROPGET =
BIGDECIMALCBPROPSET =
BIGDECIMALCBPROPGET =
BIGDECIMALCLONESET =
BIGDECIMALTOSTRINGSET =
; The code necessary to define an attribute as java.types.TINYINT
TINYINTDEFINE =
TINYINTGET =
TINYINTSET =
TINYINTCBDROPSET =
TINYINTCBDROPGET =
TINYINTCBPROPSET =
TINYINTCBPROPGET =
TINYINTCLONESET =
TINYINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.SMALLINT
SMALLINTDEFINE =
SMALLINTGET =
SMALLINTSET =
SMALLINTCBDROPSET =
SMALLINTCBDROPGET =
SMALLINTCBPROPGET =
SMALLINTCBPROPSET =
SMALLINTCLONESET =
SMALLINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.INTEGER
INTEGERDEFINE =
INTEGERGET =
INTEGERSET =
INTEGERCBDROPSET =
INTEGERCBDROPGET =
INTEGERCBPROPGET =
INTEGERCBPROPSET =
INTEGERCLONESET =
INTEGERTOSTRINGSET =
; The code necessary to define an attribute as java.types.BIGINT
BIGINTDEFINE =
BIGINTGET =
BIGINTSET =
BIGINTCBDROPSET =
BIGINTCBDROPGET =
BIGINTCBPROPGET =
BIGINTCBPROPSET =
BIGINTCLONESET =
BIGINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.TIMESTAMP
TIMESTAMPDEFINE =
TIMESTAMPGET =
TIMESTAMPSET =
TIMESTAMPCBDROPSET =
TIMESTAMPCBDROPGET =
TIMESTAMPCBPROPGET =
TIMESTAMPCBPROPSET =
TIMESTAMPCLONESET =
TIMESTAMPTOSTRINGSET =
; The code necessary to define an attribute as java.types.TIME
TIMEDEFINE =
TIMEGET =
TIMESET =
TIMECBDROPSET =
TIMECBDROPGET =
TIMECBPROPGET =
TIMECBPROPSET =
TIMECLONESET =
TIMETOSTRINGSET =
; The code necessary to define an attribute as java.types.REAL
REALDEFINE =
REALGET =
REALSET =
REALCBDROPSET =
REALCBDROPGET =
REALCBPROPGET =
REALCBPROPSET =
REALCLONESET =
REALTOSTRINGSET =
; The code necessary to define an attribute as java.types.FLOAT
FLOATDEFINE =
FLOATGET =
FLOATSET =
FLOATCBDROPSET =
FLOATCBDROPGET =
FLOATCBPROPGET =
FLOATCBPROPSET =
FLOATCLONESET =
FLOATTOSTRINGSET =
; The code necessary to define an attribute as java.types.DOUBLE
DOUBLEDEFINE =
DOUBLEGET =
DOUBLESET =
DOUBLECBDROPSET =
DOUBLECBDROPGET =
DOUBLECBPROPGET =
DOUBLECBPROPSET =
DOUBLECLONESET =
DOUBLETOSTRINGSET =
; The code necessary to define an attribute as java.types.VARBINARY
VARBINARYDEFINE =
VARBINARYGET =
VARBINARYSET =
VARBINARYCBDROPSET =
VARBINARYCBDROPGET =
VARBINARYCBPROPGET =
VARBINARYCBPROPSET =
VARBINARYCLONESET =
VARBINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.LONGVARBINARY
LONGVARBINARYDEFINE =
LONGVARBINARYGET =
LONGVARBINARYSET =
LONGVARBINARYCBDROPSET =
LONGVARBINARYCBDROPGET =
LONGVARBINARYCBPROPGET =
LONGVARBINARYCBPROPSET =
LONGVARBINARYCLONESET =
LONGVARBINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.LONGVARCHAR
LONGVARCHARDEFINE =
LONGVARCHARGET =
LONGVARCHARSET =
LONGVARCHARCBDROPSET =
LONGVARCHARCBDROPGET =
LONGVARCHARCBPROPGET =
LONGVARCHARCBPROPSET =
LONGVARCHARCLONESET =
LONGVARCHARTOSTRINGSET =
; The code necessary to define an attribute as java.types.DATE
DATEDEFINE =
DATEGET =
DATESET =
DATECBDROPSET =
DATECBDROPGET =
DATECBPROPGET =
DATECBPROPSET =
DATECLONESET =
DATETOSTRINGSET =
; The code necessary to define an attribute as java.types.BINARY
BINARYDEFINE =
BINARYGET =
BINARYSET =
BINARYCBDROPSET =
BINARYCBDROPGET =
BINARYCBPROPGET =
BINARYCBPROPSET =
BINARYCLONESET =
BINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.OTHER
UNKNOWNDEFINE =
UNKNOWNGET =
UNKNOWNSET =
UNKNOWNCBDROPSET =
UNKNOWNCBDROPGET =
UNKNOWNCBPROPGET =
UNKNOWNCBPROPSET =
UNKNOWNCLONESET =
UNKNOWNTOSTRINGSET =
; If we have and ODBMS & CBProp, this adds in the clone code to clone the
; ODBMS specific information.
COLCLONESET =
; If we have and ODBMS & CBProp, this adds in the toString code to toString the
; ODBMS specific information.
COLTOSTRINGSET =
; This ends the toString method.
CLASSTOSTRING =
; This tries to include all of the variables above the columns (such as ODBMS
; and CBProp variables).
CLASSVARS =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; getPropObjectData method.
LOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; setPropObjectData method.
LOIDPROPGET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; getPropObjectData method.
NAVLOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; setPropObjectData method.
NAVLOIDPROPGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDSET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
GETNAVLOID =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
SETNAVLOID =
; This is the method used to generate the clone() code - not used in EJBHOME.
CLONESTRING =
; This is the method used to generate the toString() code.
TOSTRINGSTRING =
; This is the method used to generate the CBDrop.setObjectData() code.
DROPSETSTRING =
; This is the method used to generate the CBDrop.getObjectData() code.
DROPGETSTRING =
; This is the method used to generate the CBProp.setPropObjectData() code.
PROPSETSTRING =
; This is the method used to generate the CBProp.getPropObjectData() code.
PROPGETSTRING =
; This comment is embedded in another comment within this file by using
; a <CBINCLUDE ODBMSCOMMENT>. It provides a great example of how to
; use the <CBINCLUDE directive>
ODBMSCOMMENT =
METHODNAV =
LINK1MDEFINE =
LINK1MGET =
LINK1MINSERT =
LINK1MUPDATE =
LINK1MDELETE =
METHODNAV =
LINK11DEFINE =
LINK11GET =
LINK11INSERT =
LINK11UPDATE =
LINK11DELETE =
PKGPREFIX = <CBIF HASPACKAGE>%packagename%.</CBIF>
PKGDIRPREFIX = <CBIF HASPACKAGE>%packagedirname%%fileseparator%</CBIF>
PKGDIRPREFIXU = <CBIF HASPACKAGE>%packagedirnameunix%%fileseparatorunix%</CBIF>
CLASSEND =%EOL%\%EOL%\public class %Classname%Client {%EOL%\
%EOL%\
%EOL%\
%EOL%\
\tpublic static Context initContext() throws Exception {%EOL%\
%EOL%\
\t\tHashtable env = new Hashtable();%EOL%\
\t\tenv.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory"
);%EOL%\
\t\tenv.put(javax.naming.Context.PROVIDER_URL, "localhost");%EOL%\
\t\tenv.put(javax.naming.Context.URL_PKG_PREFIXES, "org.jboss.naming");%EOL%\
\t\treturn new InitialContext( env );%EOL%\
%EOL%\
\t}%EOL%\
%EOL%\
\tpublic static void main( String args[] ) throws Exception{%EOL%\
%EOL%\
\t\tContext ctx = initContext();%EOL%\
\t\tObject ref = ctx.lookup("%Classname%App" );%EOL%\
%EOL%\
\t\t%Classname%Home home = (%Classname%Home) PortableRemoteObject.narrow( ref
,%Classname%Home.class);%EOL%\
\t\t//%Classname% remote = home.create();%EOL%\
\t}
1.1 contrib/cocobase/conf/JBOSS2EBDDPROP.properties
Index: JBOSS2EBDDPROP.properties
===================================================================
;
; This is the template file used to generate new java programming files
;
; The following variables are guaranteed to be provided by the CocoBase
; code generation runtime (note the variables are case sensitive!)
;
; HASPACKAGE - If we have a packagename prefix.
; packagename - The packagename (if present), such as com.thought
; Classname - The class name (such as Employee)
; supportCBDrop - If we wish to use the Properties based CBDrop interface.
; supportCBProp - If we wish to use the Properties based CBProp interface.
; supportODBMS - If we wish to generate code with ODBMS navigation.
; supportODBMSandCBProp - If we've selected both ODBMS and CBProp flags.
; EOL - The End of line character to be used when generating the java source
; code. This is OS dependent.
; supportTransObj - If we support using a Transaction object in the code
; generation for the 1-1, 1-M or M-M code.
; Column - The Java column name to use in constructin methods such as getPhone
; column - The Java column name (such as phone or empSkill);
; COLUMN - The Map's column name (such as "PHONE" or "EMP_SKILL")
; COUNT - current column count
; Targetclass - used in 1-1,1-M & M-M - The target class in the relationship
; Targetcolumn - used in 1-1,1-M & M-M - The target column in the relationship
; clonelist - The list of column attributes in the clone() method.
; tostringlist - The list of column attributes in the clone() method.
; dropsetlist - The code for the columns in the setObjectData() method.
; dropgetlist - The code for the columns in the getObjectData() method.
; propsetlist - The code for the columns in the setPropObjectData() method.
; propgetlist - The code for the columns in the getPropObjectData() method.
; iskey - Notes whether the column is part of the primary key.
; If we have a package, then insert the packing name string.
PACKAGEINFO =
; The imports for each class generated.
IMPORTS =
; The Class string to start the new java class with.
CLASSBEGIN =
; The comment used for each setAttr() method
SETCOMMENT =
; The comment used for each getAttr() method
GETCOMMENT =
; To appear just before the list of instance variables.
CLASSVARCOMMENT =
; The code necessary to define an attribute as java.types.BIT
BITDEFINE =
BITGET =
BITSET =
; Use the current position for this element fetch. %COUNT% is the reserved
; variable to specify the current location.
BITCBDROPSET =
BITCBDROPGET =
; Note the use of uppercase to denote the Property value.
BITCBPROPSET =
BITCBPROPGET =
BITCLONESET =
BITTOSTRINGSET =
; The code necessary to define an attribute as java.types.CHAR or java.types.VARCHAR
CHARDEFINE =
CHARGET =
CHARSET =
CHARCBDROPSET =
CHARCBDROPGET =
CHARCBPROPSET =
CHARCBPROPGET =
CHARCLONESET =
CHARTOSTRINGSET =
; The code necessary to define an attribute as java.types.DECIMAL or
java.types.NUMERIC
BIGDECIMALDEFINE =
BIGDECIMALGET =
BIGDECIMALSET =
BIGDECIMALCBDROPSET =
BIGDECIMALCBDROPGET =
BIGDECIMALCBPROPSET =
BIGDECIMALCBPROPGET =
BIGDECIMALCLONESET =
BIGDECIMALTOSTRINGSET =
; The code necessary to define an attribute as java.types.TINYINT
TINYINTDEFINE =
TINYINTGET =
TINYINTSET =
TINYINTCBDROPSET =
TINYINTCBDROPGET =
TINYINTCBPROPSET =
TINYINTCBPROPGET =
TINYINTCLONESET =
TINYINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.SMALLINT
SMALLINTDEFINE =
SMALLINTGET =
SMALLINTSET =
SMALLINTCBDROPSET =
SMALLINTCBDROPGET =
SMALLINTCBPROPGET =
SMALLINTCBPROPSET =
SMALLINTCLONESET =
SMALLINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.INTEGER
INTEGERDEFINE =
INTEGERGET =
INTEGERSET =
INTEGERCBDROPSET =
INTEGERCBDROPGET =
INTEGERCBPROPGET =
INTEGERCBPROPSET =
INTEGERCLONESET =
INTEGERTOSTRINGSET =
; The code necessary to define an attribute as java.types.BIGINT
BIGINTDEFINE =
BIGINTGET =
BIGINTSET =
BIGINTCBDROPSET =
BIGINTCBDROPGET =
BIGINTCBPROPGET =
BIGINTCBPROPSET =
BIGINTCLONESET =
BIGINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.TIMESTAMP
TIMESTAMPDEFINE =
TIMESTAMPGET =
TIMESTAMPSET =
TIMESTAMPCBDROPSET =
TIMESTAMPCBDROPGET =
TIMESTAMPCBPROPGET =
TIMESTAMPCBPROPSET =
TIMESTAMPCLONESET =
TIMESTAMPTOSTRINGSET =
; The code necessary to define an attribute as java.types.TIME
TIMEDEFINE =
TIMEGET =
TIMESET =
TIMECBDROPSET =
TIMECBDROPGET =
TIMECBPROPGET =
TIMECBPROPSET =
TIMECLONESET =
TIMETOSTRINGSET =
; The code necessary to define an attribute as java.types.REAL
REALDEFINE =
REALGET =
REALSET =
REALCBDROPSET =
REALCBDROPGET =
REALCBPROPGET =
REALCBPROPSET =
REALCLONESET =
REALTOSTRINGSET =
; The code necessary to define an attribute as java.types.FLOAT
FLOATDEFINE =
FLOATGET =
FLOATSET =
FLOATCBDROPSET =
FLOATCBDROPGET =
FLOATCBPROPGET =
FLOATCBPROPSET =
FLOATCLONESET =
FLOATTOSTRINGSET =
; The code necessary to define an attribute as java.types.DOUBLE
DOUBLEDEFINE =
DOUBLEGET =
DOUBLESET =
DOUBLECBDROPSET =
DOUBLECBDROPGET =
DOUBLECBPROPGET =
DOUBLECBPROPSET =
DOUBLECLONESET =
DOUBLETOSTRINGSET =
; The code necessary to define an attribute as java.types.VARBINARY
VARBINARYDEFINE =
VARBINARYGET =
VARBINARYSET =
VARBINARYCBDROPSET =
VARBINARYCBDROPGET =
VARBINARYCBPROPGET =
VARBINARYCBPROPSET =
VARBINARYCLONESET =
VARBINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.LONGVARBINARY
LONGVARBINARYDEFINE =
LONGVARBINARYGET =
LONGVARBINARYSET =
LONGVARBINARYCBDROPSET =
LONGVARBINARYCBDROPGET =
LONGVARBINARYCBPROPGET =
LONGVARBINARYCBPROPSET =
LONGVARBINARYCLONESET =
LONGVARBINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.LONGVARCHAR
LONGVARCHARDEFINE =
LONGVARCHARGET =
LONGVARCHARSET =
LONGVARCHARCBDROPSET =
LONGVARCHARCBDROPGET =
LONGVARCHARCBPROPGET =
LONGVARCHARCBPROPSET =
LONGVARCHARCLONESET =
LONGVARCHARTOSTRINGSET =
; The code necessary to define an attribute as java.types.DATE
DATEDEFINE =
DATEGET =
DATESET =
DATECBDROPSET =
DATECBDROPGET =
DATECBPROPGET =
DATECBPROPSET =
DATECLONESET =
DATETOSTRINGSET =
; The code necessary to define an attribute as java.types.BINARY
BINARYDEFINE =
BINARYGET =
BINARYSET =
BINARYCBDROPSET =
BINARYCBDROPGET =
BINARYCBPROPGET =
BINARYCBPROPSET =
BINARYCLONESET =
BINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.OTHER
UNKNOWNDEFINE =
UNKNOWNGET =
UNKNOWNSET =
UNKNOWNCBDROPSET =
UNKNOWNCBDROPGET =
UNKNOWNCBPROPGET =
UNKNOWNCBPROPSET =
UNKNOWNCLONESET =
UNKNOWNTOSTRINGSET =
; If we have and ODBMS & CBProp, this adds in the clone code to clone the
; ODBMS specific information.
COLCLONESET =
; If we have and ODBMS & CBProp, this adds in the toString code to toString the
; ODBMS specific information.
COLTOSTRINGSET =
; This ends the toString method.
CLASSTOSTRING =
; This tries to include all of the variables above the columns (such as ODBMS
; and CBProp variables).
CLASSVARS =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; getPropObjectData method.
LOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; setPropObjectData method.
LOIDPROPGET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; getPropObjectData method.
NAVLOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; setPropObjectData method.
NAVLOIDPROPGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDSET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
GETNAVLOID =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
SETNAVLOID =
; This is the method used to generate the clone() code - not used in EJBHOME.
CLONESTRING =
; This is the method used to generate the toString() code.
TOSTRINGSTRING =
; This is the method used to generate the CBDrop.setObjectData() code.
DROPSETSTRING =
; This is the method used to generate the CBDrop.getObjectData() code.
DROPGETSTRING =
; This is the method used to generate the CBProp.setPropObjectData() code.
PROPSETSTRING =
; This is the method used to generate the CBProp.getPropObjectData() code.
PROPGETSTRING =
; This comment is embedded in another comment within this file by using
; a <CBINCLUDE ODBMSCOMMENT>. It provides a great example of how to
; use the <CBINCLUDE directive>
ODBMSCOMMENT =
METHODNAV =
LINK1MDEFINE =
LINK1MGET =
LINK1MINSERT =
LINK1MUPDATE =
LINK1MDELETE =
METHODNAV =
LINK11DEFINE =
LINK11GET =
LINK11INSERT =
LINK11UPDATE =
LINK11DELETE =
PKGPREFIX = <CBIF HASPACKAGE>%packagename%.</CBIF>
PKGDIRPREFIX = <CBIF HASPACKAGE>%packagedirname%%fileseparator%</CBIF>
PKGDIRPREFIXU = <CBIF HASPACKAGE>%packagedirnameunix%%fileseparatorunix%</CBIF>
;<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>%EOL%\
CLASSEND = <?xml version='1.0'?>%EOL%\
%EOL%\
<ejb-jar>%EOL%\
\t<description>%EOL%\
\tThis ejb-jar file contains assembled enterprise beans that are part of%EOL%\
\tThe %Classname% mapped Entity Bean.%EOL%\
\t</description>%EOL%\
%EOL%\
\t<enterprise-beans>%EOL%\
\t\t<entity>%EOL%\
\t\t\t<description>%EOL%\
\t\t\tThis section defines the CMP Entity Bean %Classname%%EOL%\
\t\t\t</description>%EOL%\
\t\t\t<ejb-name>%Classname%App</ejb-name>%EOL%\
\t\t\t<home><CBINCLUDE PKGPREFIX>%Classname%%BEAN_HOME_SUFFIX%</home>%EOL%\
\t\t\t<remote><CBINCLUDE PKGPREFIX>%Classname%%BEAN_INTERFACE_SUFFIX%</remote>%EOL%\
\t\t\t<ejb-class><CBINCLUDE PKGPREFIX>%Classname%%BEAN_NAME_SUFFIX%</ejb-class>%EOL%\
\t\t\t<persistence-type>Bean</persistence-type>%EOL%\
\t\t\t<prim-key-class><CBINCLUDE
PKGPREFIX>%Classname%%BEAN_PK_SUFFIX%</prim-key-class>%EOL%\
\t\t\t<reentrant>False</reentrant>%EOL%\
\t\t\t%EOL%\
\t\t\t<env-entry>%EOL%\
\t\t\t<env-entry-name>cocosource.name</env-entry-name>%EOL%\
\t\t\t<env-entry-type>java.lang.String</env-entry-type>%EOL%\
\t\t\t<env-entry-value>thought.CocoBase.CocoPowderPlugin20</env-entry-value>%EOL%\
\t\t\t</env-entry>%EOL%\
\t\t\t<env-entry>%EOL%\
\t\t\t<env-entry-name>cocosource.driver</env-entry-name>%EOL%\
\t\t\t<env-entry-type>java.lang.String</env-entry-type>%EOL%\
\t\t\t<env-entry-value>%dbdriver%</env-entry-value>%EOL%\
\t\t\t</env-entry>%EOL%\
\t\t\t<env-entry>%EOL%\
\t\t\t<env-entry-name>cocosource.url</env-entry-name>%EOL%\
\t\t\t<env-entry-type>java.lang.String</env-entry-type>%EOL%\
\t\t\t<env-entry-value>%dburl%;cocorep=configresource:/<CBINCLUDE
PKGDIRPREFIXU>%Classname%Config.properties:cocoprop=primarykey.lookup=false,jndiurl=java:comp/env/%jndiurl%</env-entry-value>%EOL%\
\t\t\t</env-entry>%EOL%\
\t\t\t<env-entry>%EOL%\
\t\t\t<env-entry-name>cocosource.user</env-entry-name>%EOL%\
\t\t\t<env-entry-type>java.lang.String</env-entry-type>%EOL%\
\t\t\t<env-entry-value><CBIF %dbuser%>%dbuser%</CBIF><CBIFNOT
%dbuser%>NONE</CBIFNOT></env-entry-value>%EOL%\
\t\t\t</env-entry>%EOL%\
\t\t\t<env-entry>%EOL%\
\t\t\t<env-entry-name>cocosource.password</env-entry-name>%EOL%\
\t\t\t<env-entry-type>java.lang.String</env-entry-type>%EOL%\
\t\t\t<env-entry-value><CBIF %dbpassword%>%dbpassword%</CBIF><CBIFNOT
%dbpassword%>NONE</CBIFNOT></env-entry-value>%EOL%\
\t\t\t</env-entry>%EOL%\
\t\t\t<env-entry>%EOL%\
\t\t\t<env-entry-name>cocosource.autoclose</env-entry-name>%EOL%\
\t\t\t<env-entry-type>java.lang.String</env-entry-type>%EOL%\
\t\t\t<env-entry-value>true</env-entry-value>%EOL%\
\t\t\t</env-entry>%EOL%\
\t\t\t<env-entry>%EOL%\
\t\t\t<env-entry-name>cocosource.autotrans</env-entry-name>%EOL%\
\t\t\t<env-entry-type>java.lang.String</env-entry-type>%EOL%\
\t\t\t<env-entry-value>false</env-entry-value>%EOL%\
\t\t\t</env-entry>%EOL%\
\t\t\t<env-entry>%EOL%\
\t\t\t<env-entry-name>cocosource.debug</env-entry-name>%EOL%\
\t\t\t<env-entry-type>java.lang.String</env-entry-type>%EOL%\
\t\t\t<env-entry-value>false</env-entry-value>%EOL%\
\t\t\t</env-entry>%EOL%\
\t\t\t<env-entry>%EOL%\
\t\t\t<env-entry-name>cocosource.homefactory</env-entry-name>%EOL%\
\t\t\t<env-entry-type>java.lang.String</env-entry-type>%EOL%\
\t\t\t<env-entry-value>thought.CocoBase.IAS4HomeFactory</env-entry-value>%EOL%\
\t\t\t</env-entry>%EOL%\
\t\t\t<env-entry>%EOL%\
\t\t\t<env-entry-name>cocosource.cachefactory</env-entry-name>%EOL%\
\t\t\t<env-entry-type>java.lang.String</env-entry-type>%EOL%\
\t\t\t<env-entry-value>true</env-entry-value>%EOL%\
\t\t\t</env-entry>%EOL%\
\t\t\t<resource-ref>%EOL%\
\t\t\t\t<res-ref-name>%jndiurl%</res-ref-name>%EOL%\
\t\t\t\t<res-type>javax.sql.DataSource</res-type>%EOL%\
\t\t\t<res-auth>Container</res-auth>%EOL%\
</resource-ref>%EOL%\
\t\t</entity>%EOL%\
\t</enterprise-beans>%EOL%\
\t<assembly-descriptor>%EOL%\
\t\t<container-transaction>%EOL%\
\t\t\t<method>%EOL%\
\t\t\t\t<ejb-name>%Classname%App</ejb-name>%EOL%\
\t\t\t\t<method-intf>Remote</method-intf>%EOL%\
\t\t\t\t<method-name>*</method-name>%EOL%\
\t\t\t</method>%EOL%\
\t\t\t<trans-attribute>Required</trans-attribute>%EOL%\
\t\t</container-transaction>%EOL%\
\t</assembly-descriptor>%EOL%\
%EOL%\
</ejb-jar>%EOL%
1.1 contrib/cocobase/conf/JBOSS2EBENV.properties
Index: JBOSS2EBENV.properties
===================================================================
;
; This is the template file used to generate new java programming files
;
; The following variables are guaranteed to be provided by the CocoBase
; code generation runtime (note the variables are case sensitive!)
;
; HASPACKAGE - If we have a packagename prefix.
; packagename - The packagename (if present), such as com.thought
; Classname - The class name (such as Employee)
; supportCBDrop - If we wish to use the Properties based CBDrop interface.
; supportCBProp - If we wish to use the Properties based CBProp interface.
; supportODBMS - If we wish to generate code with ODBMS navigation.
; supportODBMSandCBProp - If we've selected both ODBMS and CBProp flags.
; EOL - The End of line character to be used when generating the java source
; code. This is OS dependent.
; supportTransObj - If we support using a Transaction object in the code
; generation for the 1-1, 1-M or M-M code.
; Column - The Java column name to use in constructin methods such as getPhone
; column - The Java column name (such as phone or empSkill);
; COLUMN - The Map's column name (such as "PHONE" or "EMP_SKILL")
; COUNT - current column count
; Targetclass - used in 1-1,1-M & M-M - The target class in the relationship
; Targetcolumn - used in 1-1,1-M & M-M - The target column in the relationship
; clonelist - The list of column attributes in the clone() method.
; tostringlist - The list of column attributes in the clone() method.
; dropsetlist - The code for the columns in the setObjectData() method.
; dropgetlist - The code for the columns in the getObjectData() method.
; propsetlist - The code for the columns in the setPropObjectData() method.
; propgetlist - The code for the columns in the getPropObjectData() method.
; iskey - Notes whether the column is part of the primary key.
; If we have a package, then insert the packing name string.
PACKAGEINFO =
; The imports for each class generated.
IMPORTS =
; The Class string to start the new java class with.
CLASSBEGIN =
; The comment used for each setAttr() method
SETCOMMENT =
; The comment used for each getAttr() method
GETCOMMENT =
; To appear just before the list of instance variables.
CLASSVARCOMMENT =
; The code necessary to define an attribute as java.types.BIT
BITDEFINE =
BITGET =
BITSET =
; Use the current position for this element fetch. %COUNT% is the reserved
; variable to specify the current location.
BITCBDROPSET =
BITCBDROPGET =
; Note the use of uppercase to denote the Property value.
BITCBPROPSET =
BITCBPROPGET =
BITCLONESET =
BITTOSTRINGSET =
; The code necessary to define an attribute as java.types.CHAR or java.types.VARCHAR
CHARDEFINE =
CHARGET =
CHARSET =
CHARCBDROPSET =
CHARCBDROPGET =
CHARCBPROPSET =
CHARCBPROPGET =
CHARCLONESET =
CHARTOSTRINGSET =
; The code necessary to define an attribute as java.types.DECIMAL or
java.types.NUMERIC
BIGDECIMALDEFINE =
BIGDECIMALGET =
BIGDECIMALSET =
BIGDECIMALCBDROPSET =
BIGDECIMALCBDROPGET =
BIGDECIMALCBPROPSET =
BIGDECIMALCBPROPGET =
BIGDECIMALCLONESET =
BIGDECIMALTOSTRINGSET =
; The code necessary to define an attribute as java.types.TINYINT
TINYINTDEFINE =
TINYINTGET =
TINYINTSET =
TINYINTCBDROPSET =
TINYINTCBDROPGET =
TINYINTCBPROPSET =
TINYINTCBPROPGET =
TINYINTCLONESET =
TINYINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.SMALLINT
SMALLINTDEFINE =
SMALLINTGET =
SMALLINTSET =
SMALLINTCBDROPSET =
SMALLINTCBDROPGET =
SMALLINTCBPROPGET =
SMALLINTCBPROPSET =
SMALLINTCLONESET =
SMALLINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.INTEGER
INTEGERDEFINE =
INTEGERGET =
INTEGERSET =
INTEGERCBDROPSET =
INTEGERCBDROPGET =
INTEGERCBPROPGET =
INTEGERCBPROPSET =
INTEGERCLONESET =
INTEGERTOSTRINGSET =
; The code necessary to define an attribute as java.types.BIGINT
BIGINTDEFINE =
BIGINTGET =
BIGINTSET =
BIGINTCBDROPSET =
BIGINTCBDROPGET =
BIGINTCBPROPGET =
BIGINTCBPROPSET =
BIGINTCLONESET =
BIGINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.TIMESTAMP
TIMESTAMPDEFINE =
TIMESTAMPGET =
TIMESTAMPSET =
TIMESTAMPCBDROPSET =
TIMESTAMPCBDROPGET =
TIMESTAMPCBPROPGET =
TIMESTAMPCBPROPSET =
TIMESTAMPCLONESET =
TIMESTAMPTOSTRINGSET =
; The code necessary to define an attribute as java.types.TIME
TIMEDEFINE =
TIMEGET =
TIMESET =
TIMECBDROPSET =
TIMECBDROPGET =
TIMECBPROPGET =
TIMECBPROPSET =
TIMECLONESET =
TIMETOSTRINGSET =
; The code necessary to define an attribute as java.types.REAL
REALDEFINE =
REALGET =
REALSET =
REALCBDROPSET =
REALCBDROPGET =
REALCBPROPGET =
REALCBPROPSET =
REALCLONESET =
REALTOSTRINGSET =
; The code necessary to define an attribute as java.types.FLOAT
FLOATDEFINE =
FLOATGET =
FLOATSET =
FLOATCBDROPSET =
FLOATCBDROPGET =
FLOATCBPROPGET =
FLOATCBPROPSET =
FLOATCLONESET =
FLOATTOSTRINGSET =
; The code necessary to define an attribute as java.types.DOUBLE
DOUBLEDEFINE =
DOUBLEGET =
DOUBLESET =
DOUBLECBDROPSET =
DOUBLECBDROPGET =
DOUBLECBPROPGET =
DOUBLECBPROPSET =
DOUBLECLONESET =
DOUBLETOSTRINGSET =
; The code necessary to define an attribute as java.types.VARBINARY
VARBINARYDEFINE =
VARBINARYGET =
VARBINARYSET =
VARBINARYCBDROPSET =
VARBINARYCBDROPGET =
VARBINARYCBPROPGET =
VARBINARYCBPROPSET =
VARBINARYCLONESET =
VARBINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.LONGVARBINARY
LONGVARBINARYDEFINE =
LONGVARBINARYGET =
LONGVARBINARYSET =
LONGVARBINARYCBDROPSET =
LONGVARBINARYCBDROPGET =
LONGVARBINARYCBPROPGET =
LONGVARBINARYCBPROPSET =
LONGVARBINARYCLONESET =
LONGVARBINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.LONGVARCHAR
LONGVARCHARDEFINE =
LONGVARCHARGET =
LONGVARCHARSET =
LONGVARCHARCBDROPSET =
LONGVARCHARCBDROPGET =
LONGVARCHARCBPROPGET =
LONGVARCHARCBPROPSET =
LONGVARCHARCLONESET =
LONGVARCHARTOSTRINGSET =
; The code necessary to define an attribute as java.types.DATE
DATEDEFINE =
DATEGET =
DATESET =
DATECBDROPSET =
DATECBDROPGET =
DATECBPROPGET =
DATECBPROPSET =
DATECLONESET =
DATETOSTRINGSET =
; The code necessary to define an attribute as java.types.BINARY
BINARYDEFINE =
BINARYGET =
BINARYSET =
BINARYCBDROPSET =
BINARYCBDROPGET =
BINARYCBPROPGET =
BINARYCBPROPSET =
BINARYCLONESET =
BINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.OTHER
UNKNOWNDEFINE =
UNKNOWNGET =
UNKNOWNSET =
UNKNOWNCBDROPSET =
UNKNOWNCBDROPGET =
UNKNOWNCBPROPGET =
UNKNOWNCBPROPSET =
UNKNOWNCLONESET =
UNKNOWNTOSTRINGSET =
; If we have and ODBMS & CBProp, this adds in the clone code to clone the
; ODBMS specific information.
COLCLONESET =
; If we have and ODBMS & CBProp, this adds in the toString code to toString the
; ODBMS specific information.
COLTOSTRINGSET =
; This ends the toString method.
CLASSTOSTRING =
; This tries to include all of the variables above the columns (such as ODBMS
; and CBProp variables).
CLASSVARS =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; getPropObjectData method.
LOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; setPropObjectData method.
LOIDPROPGET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; getPropObjectData method.
NAVLOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; setPropObjectData method.
NAVLOIDPROPGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDSET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
GETNAVLOID =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
SETNAVLOID =
; This is the method used to generate the clone() code - not used in EJBHOME.
CLONESTRING =
; This is the method used to generate the toString() code.
TOSTRINGSTRING =
; This is the method used to generate the CBDrop.setObjectData() code.
DROPSETSTRING =
; This is the method used to generate the CBDrop.getObjectData() code.
DROPGETSTRING =
; This is the method used to generate the CBProp.setPropObjectData() code.
PROPSETSTRING =
; This is the method used to generate the CBProp.getPropObjectData() code.
PROPGETSTRING =
; This comment is embedded in another comment within this file by using
; a <CBINCLUDE ODBMSCOMMENT>. It provides a great example of how to
; use the <CBINCLUDE directive>
ODBMSCOMMENT =
METHODNAV =
LINK1MDEFINE =
LINK1MGET =
LINK1MINSERT =
LINK1MUPDATE =
LINK1MDELETE =
METHODNAV =
LINK11DEFINE =
LINK11GET =
LINK11INSERT =
LINK11UPDATE =
LINK11DELETE =
PKGPREFIX = <CBIF HASPACKAGE>%packagename%.</CBIF>
PKGDIRPREFIX = <CBIF HASPACKAGE>%packagedirname%%fileseparatorunix%</CBIF>
PKGDIRPREFIXU = <CBIF HASPACKAGE>%packagedirnameunix%%fileseparatorunix%</CBIF>
CLASSEND = cocosource.name=thought.CocoBase.CocoPowderPlugin20%EOL%\
cocosource.driver=%dbdriver%%EOL%\
cocosource.url=%dburl%;cocorep=configresource:/<CBINCLUDE
PKGDIRPREFIXU>%Classname%Config.properties:cocoprop=primarykey.lookup=false,jndiurl=java:comp/env/%jndiurl%%EOL%\
cocosource.user=%dbuser%%EOL%\
cocosource.password=%dbpassword%%EOL%\
cocosource.autotrans=false%EOL%\
cocosource.autoclose=false%EOL%\
cocosource.debug=false%EOL%\
cocosource.cachefactory=true%EOL%\
cocosource.homefactory=thought.CocoBase.IAS4HomeFactory%EOL%
1.1 contrib/cocobase/conf/JBOSS2EBHOME.properties
Index: JBOSS2EBHOME.properties
===================================================================
;
; This is the template file used to generate new java programming files
;
; The following variables are guaranteed to be provided by the CocoBase
; code generation runtime (note the variables are case sensitive!)
;
; HASPACKAGE - If we have a packagename prefix.
; packagename - The packagename (if present), such as com.thought
; Classname - The class name (such as Employee)
; supportCBDrop - If we wish to use the Properties based CBDrop interface.
; supportCBProp - If we wish to use the Properties based CBProp interface.
; supportODBMS - If we wish to generate code with ODBMS navigation.
; supportODBMSandCBProp - If we've selected both ODBMS and CBProp flags.
; EOL - The End of line character to be used when generating the java source
; code. This is OS dependent.
; supportTransObj - If we support using a Transaction object in the code
; generation for the 1-1, 1-M or M-M code.
; Column - The Java column name to use in constructin methods such as getPhone
; column - The Java column name (such as phone or empSkill);
; COLUMN - The Map's column name (such as "PHONE" or "EMP_SKILL")
; COUNT - current column count
; Targetclass - used in 1-1,1-M & M-M - The target class in the relationship
; Targetcolumn - used in 1-1,1-M & M-M - The target column in the relationship
; clonelist - The list of column attributes in the clone() method.
; tostringlist - The list of column attributes in the clone() method.
; dropsetlist - The code for the columns in the setObjectData() method.
; dropgetlist - The code for the columns in the getObjectData() method.
; propsetlist - The code for the columns in the setPropObjectData() method.
; propgetlist - The code for the columns in the getPropObjectData() method.
; If we have a package, then insert the packing name string.
PACKAGEINFO = <CBIF HASPACKAGE>package %packagename%;%EOL%\
%EOL%</CBIF>
; The imports for each class generated.
IMPORTS = import java.rmi.RemoteException;%EOL%\
import java.util.Enumeration;%EOL%\
import javax.ejb.CreateException;%EOL%\
import javax.ejb.EJBHome;%EOL%\
import javax.ejb.FinderException;%EOL%\
import java.sql.*;%EOL%\
import java.util.*;%EOL%\
import java.math.*;%EOL%
; The Class string to start the new java class with.
CLASSBEGIN = <CBINCLUDE PACKAGEINFO>\
<CBINCLUDE IMPORTS>%EOL%\
/*%EOL%\
* EJB Home Interface Generated by CocoAdmin from THOUGHT Inc.%EOL%\
*%EOL%\
* Copyright (c) 1995-1999 THOUGHT Inc. All Rights Reserved.%EOL%\
*%EOL%\
*/%EOL%\
%EOL%\
public interface %Classname%%BEAN_HOME_SUFFIX% extends EJBHome %EOL%\
{%EOL%\
%EOL%\
\t/**%EOL%\
\t * This method will retrieve the bean when the complete primary key is known.%EOL%\
\t * @param %Classname%%BEAN_PK_SUFFIX% The primary key to find by.%EOL%\
\t * @return %Classname%%BEAN_INTERFACE_SUFFIX% The interface of the bean.%EOL%\
\t */%EOL%\
\tpublic %Classname%%BEAN_INTERFACE_SUFFIX%
findByPrimaryKey(%Classname%%BEAN_PK_SUFFIX% pk)%EOL%\
\t\tthrows RemoteException, FinderException;%EOL%\
%EOL%\
\t/**%EOL%\
\t * This method will All beans, returning an enumeration of
%Classname%%BEAN_INTERFACE_SUFFIX% instances.%EOL%\
\t * @return %Classname%%BEAN_INTERFACE_SUFFIX% An enumeration of bean
interfaces.%EOL%\
\t */%EOL%\
\tpublic Enumeration findAll%Classname%es()%EOL%\
\t\tthrows RemoteException, FinderException;%EOL%%EOL%\
%EOL%\
\t/**%EOL%\
\t * This method will user %Classname% state class to do a Query By Example %EOL%\
\t * and return one or more %Classname%%BEAN_INTERFACE_SUFFIX% instances.%EOL%\
\t * @return %Classname%%BEAN_INTERFACE_SUFFIX% An enumeration of bean
interfaces.%EOL%\
\t */%EOL%\
\tpublic Enumeration findBy%Classname%(%Classname% lookupInstance)%EOL%\
\t\tthrows RemoteException, FinderException;%EOL%%EOL%\
<CBSET firstattr=true>
CLASSEND = /**%EOL%\
* This method will create a new bean instance.%EOL%\
* @return %Classname%%BEAN_INTERFACE_SUFFIX% The return interface.%EOL%\
* @param (Attribute Instances) The paramaters necessary to create a new
instance.%EOL%\
*/%EOL%\
\tpublic %Classname%%BEAN_INTERFACE_SUFFIX% create(%persistattr%)%EOL%\
\t\t throws RemoteException, CreateException;%EOL%
; The comment used for each setAttr() method
SETCOMMENT = \t/**%EOL%\
\t * Set the attribute %column% value.%EOL%\
\t * @param n_%column% the database attribute value to set the variable to.%EOL%\
\t */
; The comment used for each getAttr() method
GETCOMMENT = \t/**%EOL%\
\t * Get the attribute %column% value.%EOL%\
\t * @return %column% Returns the database attribute value is current set to.%EOL%\
\t */
; To appear just before the list of instance variables.
CLASSVARCOMMENT =
ATTRDEF = <CBIF firstattr=false><CBAPPEND persistattr+, ></CBIF><CBIF
firstattr=true><CBSET firstattr=false></CBIF>
; The code necessary to define an attribute as java.types.BIT
BITDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+Boolean %column%>
BITGET =
BITSET =
; Use the current position for this element fetch. %COUNT% is the reserved
; variable to specify the current location.
BITCBDROPSET = \t\t%column% = ((Boolean)resultSet.elementAt(%COUNT%));%EOL%
BITCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
; Note the use of uppercase to denote the Property value.
BITCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = ((Boolean)resultSet.get("COLUMN"));%EOL%
BITCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
BITCLONESET = \t\tretObject.set%Column%(get%Column%());%EOL%
BITTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.CHAR or java.types.VARCHAR
CHARDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+String %column%>
CHARGET =
CHARSET =
CHARCBDROPSET = \t\t%column% = (String)resultSet.elementAt(%COUNT%);%EOL%
CHARCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
CHARCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (String)resultSet.get("%COLUMN%");%EOL%
CHARCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
CHARCLONESET = \t\tretObject.set%Column%(%column%);%EOL%
CHARTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.DECIMAL or
java.types.NUMERIC
BIGDECIMALDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+BigDecimal %column%>
BIGDECIMALGET =
BIGDECIMALSET =
BIGDECIMALCBDROPSET = \t\t%column% = (BigDecimal)resultSet.elementAt(%COUNT%);%EOL%
BIGDECIMALCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
BIGDECIMALCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (BigDecimal)resultSet.get("%COLUMN%");%EOL%
BIGDECIMALCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
BIGDECIMALCLONESET = \t\tretObject.set%Column%(%column%);%EOL%
BIGDECIMALTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.TINYINT
TINYINTDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+Short %column%>
TINYINTGET =
TINYINTSET =
TINYINTCBDROPSET = \t\t%column% = ((Short)resultSet.elementAt(%COUNT%));%EOL%
TINYINTCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
TINYINTCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = ((Short)resultSet.get("%COLUMN%"));%EOL%
TINYINTCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
TINYINTCLONESET = \t\tretObject.set%Column%(get%Column%());%EOL%
TINYINTTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.SMALLINT
SMALLINTDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+Integer %column%>
SMALLINTGET =
SMALLINTSET =
SMALLINTCBDROPSET = \t\t%column% = ((Integer)resultSet.elementAt(%COUNT%));%EOL%
SMALLINTCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
SMALLINTCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
SMALLINTCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = ((Integer)resultSet.get("%COLUMN%"));%EOL%
SMALLINTCLONESET = \t\tretObject.set%Column%(get%Column%());%EOL%
SMALLINTTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.INTEGER
INTEGERDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+Integer %column%>
INTEGERGET =
INTEGERSET =
INTEGERCBDROPSET = \t\t%column% = ((Integer)resultSet.elementAt(%COUNT%));%EOL%
INTEGERCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
INTEGERCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
INTEGERCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = ((Integer)resultSet.get("%COLUMN%"));%EOL%
INTEGERCLONESET = \t\tretObject.set%Column%(get%Column%());%EOL%
INTEGERTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.BIGINT
BIGINTDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+Long %column%>
BIGINTGET =
BIGINTSET =
BIGINTCBDROPSET = \t\t%column% = ((Long)resultSet.elementAt(%COUNT%));%EOL%
BIGINTCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
BIGINTCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
BIGINTCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = ((Long)resultSet.get("%COLUMN%"));%EOL%
BIGINTCLONESET = \t\tretObject.set%Column%(get%Column%());%EOL%
BIGINTTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.TIMESTAMP
TIMESTAMPDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+Timestamp %column%>
TIMESTAMPGET =
TIMESTAMPSET =
TIMESTAMPCBDROPSET = \t\t%column% = (Timestamp)resultSet.elementAt(%COUNT%);%EOL%
TIMESTAMPCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
TIMESTAMPCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
TIMESTAMPCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (Timestamp)resultSet.get("%COLUMN%");%EOL%
TIMESTAMPCLONESET = \t\tretObject.set%Column%(%column%);%EOL%
TIMESTAMPTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.TIME
TIMEDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+Time %column%>
TIMEGET =
TIMESET =
TIMECBDROPSET = \t\t%column% = (Time)resultSet.elementAt(%COUNT%);%EOL%
TIMECBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
TIMECBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
TIMECBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (Time)resultSet.get("%COLUMN%");%EOL%
TIMECLONESET = \t\tretObject.set%Column%(%column%);%EOL%
TIMETOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.REAL
REALDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+Float %column%>
REALGET =
REALSET =
REALCBDROPSET = \t\t%column% = ((Float)resultSet.elementAt(%COUNT%));%EOL%
REALCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
REALCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
REALCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = ((Float)resultSet.get("%COLUMN%"));%EOL%
REALCLONESET = \t\tretObject.set%Column%(get%Column%());%EOL%
REALTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.FLOAT
FLOATDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+Double %column%>
FLOATGET =
FLOATSET =
FLOATCBDROPSET = \t\t%column% = ((Double)resultSet.elementAt(%COUNT%));%EOL%
FLOATCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
FLOATCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
FLOATCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = ((Double)resultSet.get("%COLUMN%"));%EOL%
FLOATCLONESET = \t\tretObject.set%Column%(get%Column%());%EOL%
FLOATTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.DOUBLE
DOUBLEDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+Double %column%>
DOUBLEGET =
DOUBLESET =
DOUBLECBDROPSET = \t\t%column% = ((Double)resultSet.elementAt(%COUNT%));%EOL%
DOUBLECBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
DOUBLECBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
DOUBLECBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = ((Double)resultSet.get("%COLUMN%"));%EOL%
DOUBLECLONESET = \t\tretObject.set%Column%(get%Column%());%EOL%
DOUBLETOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.VARBINARY
VARBINARYDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+byte[] %column%>
VARBINARYGET =
VARBINARYSET =
VARBINARYCBDROPSET = \t\t%column% = (byte[])resultSet.elementAt(%COUNT%);%EOL%
VARBINARYCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
VARBINARYCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
VARBINARYCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (byte[])resultSet.get("%COLUMN%");%EOL%
VARBINARYCLONESET = \t\tretObject.set%Column%(%column%);%EOL%
VARBINARYTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.LONGVARBINARY
LONGVARBINARYDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+byte[] %column%>
LONGVARBINARYGET =
LONGVARBINARYSET =
LONGVARBINARYCBDROPSET = \t\t%column% = (byte[])resultSet.elementAt(%COUNT%);%EOL%
LONGVARBINARYCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
LONGVARBINARYCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
LONGVARBINARYCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (byte[])resultSet.get("%COLUMN%");%EOL%
LONGVARBINARYCLONESET = \t\tretObject.set%Column%(%column%);%EOL%
LONGVARBINARYTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.LONGVARCHAR
LONGVARCHARDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+String %column%>
LONGVARCHARGET =
LONGVARCHARSET =
LONGVARCHARCBDROPSET = \t\t%column% = (String)resultSet.elementAt(%COUNT%);%EOL%
LONGVARCHARCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
LONGVARCHARCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
LONGVARCHARCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (String)resultSet.get("%COLUMN%");%EOL%
LONGVARCHARCLONESET = \t\tretObject.set%Column%(%column%);%EOL%
LONGVARCHARTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.DATE
DATEDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+java.sql.Date %column%>
DATEGET =
DATESET =
DATECBDROPSET = \t\t%column% = (Date)resultSet.elementAt(%COUNT%);%EOL%
DATECBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
DATECBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
DATECBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (Date)resultSet.get("%COLUMN%");%EOL%
DATECLONESET = \t\tretObject.set%Column%(%column%);%EOL%
DATETOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.BINARY
BINARYDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+byte[] %column%>
BINARYGET =
BINARYSET =
BINARYCBDROPSET = \t\t%column% = (byte[])resultSet.elementAt(%COUNT%);%EOL%
BINARYCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
BINARYCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
BINARYCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (byte[])resultSet.get("%COLUMN%");%EOL%
BINARYCLONESET = \t\tretObject.set%Column%(%column%);%EOL%
BINARYTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.OTHER
UNKNOWNDEFINE = <CBINCLUDE ATTRDEF><CBAPPEND persistattr+ byte[] %column%>
UNKNOWNGET =
UNKNOWNSET =
UNKNOWNCBDROPSET = \t\t%column% = (byte[])resultSet.elementAt(%COUNT%);%EOL%
UNKNOWNCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
UNKNOWNCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
UNKNOWNCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (byte[])resultSet.get("%COLUMN%");%EOL%
UNKNOWNCLONESET = \t\tretObject.set%Column%(%column%);%EOL%
UNKNOWNTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; If we have and ODBMS & CBProp, this adds in the clone code to clone the
; ODBMS specific information.
COLCLONESET =
; If we have and ODBMS & CBProp, this adds in the toString code to toString the
; ODBMS specific information.
COLTOSTRINGSET =
; This ends the toString method.
CLASSTOSTRING =
; This tries to include all of the variables above the columns (such as ODBMS
; and CBProp variables).
CLASSVARS =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; getPropObjectData method.
LOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; setPropObjectData method.
LOIDPROPGET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; getPropObjectData method.
NAVLOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; setPropObjectData method.
NAVLOIDPROPGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDSET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
GETNAVLOID =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
SETNAVLOID =
; This is the method used to generate the clone() code - not used in EJBHOME.
CLONESTRING =
; This is the method used to generate the toString() code.
TOSTRINGSTRING =
; This is the method used to generate the CBDrop.setObjectData() code.
DROPSETSTRING =
; This is the method used to generate the CBDrop.getObjectData() code.
DROPGETSTRING =
; This is the method used to generate the CBProp.setPropObjectData() code.
PROPSETSTRING =
; This is the method used to generate the CBProp.getPropObjectData() code.
PROPGETSTRING =
; This comment is embedded in another comment within this file by using
; a <CBINCLUDE ODBMSCOMMENT>. It provides a great example of how to
; use the <CBINCLUDE directive>
ODBMSCOMMENT =
METHODNAV =
LINK1MDEFINE =
LINK1MGET =
LINK1MINSERT =
LINK1MUPDATE =
LINK1MDELETE =
METHODNAV =
LINK11DEFINE =
LINK11GET =
LINK11INSERT =
LINK11UPDATE =
LINK11DELETE =
1.1 contrib/cocobase/conf/JBOSS2EBINT.properties
Index: JBOSS2EBINT.properties
===================================================================
;
; This is the template file used to generate new java programming files
;
; The following variables are guaranteed to be provided by the CocoBase
; code generation runtime (note the variables are case sensitive!)
;
; HASPACKAGE - If we have a packagename prefix.
; packagename - The packagename (if present), such as com.thought
; Classname - The class name (such as Employee)
; supportCBDrop - If we wish to use the Properties based CBDrop interface.
; supportCBProp - If we wish to use the Properties based CBProp interface.
; supportODBMS - If we wish to generate code with ODBMS navigation.
; supportODBMSandCBProp - If we've selected both ODBMS and CBProp flags.
; EOL - The End of line character to be used when generating the java source
; code. This is OS dependent.
; supportTransObj - If we support using a Transaction object in the code
; generation for the 1-1, 1-M or M-M code.
; Column - The Java column name to use in constructin methods such as getPhone
; column - The Java column name (such as phone or empSkill);
; COLUMN - The Map's column name (such as "PHONE" or "EMP_SKILL")
; COUNT - current column count
; Targetclass - used in 1-1,1-M & M-M - The target class in the relationship
; Targetcolumn - used in 1-1,1-M & M-M - The target column in the relationship
; clonelist - The list of column attributes in the clone() method.
; tostringlist - The list of column attributes in the clone() method.
; dropsetlist - The code for the columns in the setObjectData() method.
; dropgetlist - The code for the columns in the getObjectData() method.
; propsetlist - The code for the columns in the setPropObjectData() method.
; propgetlist - The code for the columns in the getPropObjectData() method.
; iskey - Is this column a part of the primary key - value is true if it is.
; If we have a package, then insert the packing name string.
PACKAGEINFO = <CBIF HASPACKAGE>package %packagename%;%EOL%\
%EOL%</CBIF>
; The imports for each class generated.
IMPORTS = import java.rmi.RemoteException;%EOL%\
import javax.ejb.EJBObject;%EOL%\
import java.sql.*;%EOL%\
import java.math.*;%EOL%\
import java.util.*;%EOL%
CLASSEND = \t/**%EOL%\
\t * This method returns the attribute state as an instance of '%Classname%'%EOL%\
\t * @return %Classname% The serialized state object attributes.%EOL%\
\t */%EOL%\
\tpublic %Classname% retrieveState() throws RemoteException;%EOL%%EOL%\
\t/**%EOL%\
\t * This method sets the attribute state as an instance of '%Classname%'%EOL%\
\t * @param %Classname% The new serialized state object attributes.%EOL%\
\t */%EOL%\
\tpublic void changeState(%Classname% stateInstance) throws
RemoteException;%EOL%%EOL%
; The Class string to start the new java class with.
CLASSBEGIN = <CBINCLUDE PACKAGEINFO>\
<CBINCLUDE IMPORTS>%EOL%\
/*%EOL%\
* EJB Interface Generated by CocoAdmin from THOUGHT Inc.%EOL%\
*%EOL%\
* Copyright (c) 1995-1999 THOUGHT Inc. All Rights Reserved.%EOL%\
*%EOL%\
*/%EOL%\
%EOL%\
public interface %Classname%%BEAN_INTERFACE_SUFFIX% extends EJBObject %EOL%\
{%EOL%
; The comment used for each setAttr() method
SETCOMMENT = \t/**%EOL%\
\t * Interface for setting the attribute %column% value.%EOL%\
\t * @param n_%column% the database attribute value to set the variable to.%EOL%\
\t */
; The comment used for each getAttr() method
GETCOMMENT = \t/**%EOL%\
\t * Interface for getting the attribute %column% value.%EOL%\
\t * @return %column% Returns the database attribute value is current set to.%EOL%\
\t */
; To appear just before the list of instance variables.
CLASSVARCOMMENT =
; The code necessary to define an attribute as java.types.BIT
BITDEFINE =
BITGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic boolean get%Column%() throws
RemoteException;%EOL%%EOL%
BITSET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(boolean n_%column%)
throws RemoteException;%EOL%%EOL%
; Use the current position for this element fetch. %COUNT% is the reserved
; variable to specify the current location.
BITCBDROPSET =
BITCBDROPGET =
; Note the use of uppercase to denote the Property value.
BITCBPROPSET =
\t\t\t%column% = ((Boolean)resultSet.get("COLUMN"));%EOL%
BITCBPROPGET =
BITCLONESET =
BITTOSTRINGSET =
; The code necessary to define an attribute as java.types.CHAR or java.types.VARCHAR
CHARDEFINE =
CHARGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic String get%Column%() throws
RemoteException;%EOL%%EOL%
CHARSET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(String n_%column%)
throws RemoteException;%EOL%%EOL%
CHARCBDROPSET =
CHARCBDROPGET =
CHARCBPROPSET =
CHARCBPROPGET =
CHARCLONESET =
CHARTOSTRINGSET =
; The code necessary to define an attribute as java.types.DECIMAL or
java.types.NUMERIC
BIGDECIMALDEFINE =
BIGDECIMALGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic BigDecimal get%Column%() throws
RemoteException;%EOL%%EOL%
BIGDECIMALSET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(BigDecimal
t_%column%) throws RemoteException;%EOL%%EOL%
BIGDECIMALCBDROPSET =
BIGDECIMALCBDROPGET =
BIGDECIMALCBPROPSET =
BIGDECIMALCBPROPGET =
BIGDECIMALCLONESET =
BIGDECIMALTOSTRINGSET =
; The code necessary to define an attribute as java.types.TINYINT
TINYINTDEFINE =
TINYINTGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic Short get%Column%() throws
RemoteException;%EOL%%EOL%
TINYINTSET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(Short t_%column%)
throws RemoteException;%EOL%%EOL%
TINYINTCBDROPSET =
TINYINTCBDROPGET =
TINYINTCBPROPSET =
TINYINTCBPROPGET =
TINYINTCLONESET =
TINYINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.SMALLINT
SMALLINTDEFINE =
SMALLINTGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic Integer get%Column%() throws
RemoteException;%EOL%%EOL%
SMALLINTSET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(Integer
t_%column%) throws RemoteException;%EOL%%EOL%
SMALLINTCBDROPSET =
SMALLINTCBDROPGET =
SMALLINTCBPROPGET =
SMALLINTCBPROPSET =
SMALLINTCLONESET =
SMALLINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.INTEGER
INTEGERDEFINE =
INTEGERGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic Integer get%Column%() throws
RemoteException;%EOL%%EOL%
INTEGERSET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(Integer
t_%column%) throws RemoteException;%EOL%%EOL%
INTEGERCBDROPSET =
INTEGERCBDROPGET =
INTEGERCBPROPGET =
INTEGERCBPROPSET =
INTEGERCLONESET =
INTEGERTOSTRINGSET =
; The code necessary to define an attribute as java.types.BIGINT
BIGINTDEFINE =
BIGINTGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic Long get%Column%() throws
RemoteException;%EOL%%EOL%
BIGINTSET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(Long t_%column%)
throws RemoteException;%EOL%%EOL%
BIGINTCBDROPSET =
BIGINTCBDROPGET =
BIGINTCBPROPGET =
BIGINTCBPROPSET =
BIGINTCLONESET =
BIGINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.TIMESTAMP
TIMESTAMPDEFINE =
TIMESTAMPGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic Timestamp get%Column%() throws
RemoteException;%EOL%%EOL%
TIMESTAMPSET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(Timestamp
t_%column%) throws RemoteException;%EOL%%EOL%
TIMESTAMPCBDROPSET =
TIMESTAMPCBDROPGET =
TIMESTAMPCBPROPGET =
TIMESTAMPCBPROPSET =
TIMESTAMPCLONESET =
TIMESTAMPTOSTRINGSET =
; The code necessary to define an attribute as java.types.TIME
TIMEDEFINE =
TIMEGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic Time get%Column%() throws
RemoteException;%EOL%%EOL%
TIMESET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(Time t_%column%)
throws RemoteException;%EOL%%EOL%
TIMECBDROPSET =
TIMECBDROPGET =
TIMECBPROPGET =
TIMECBPROPSET =
TIMECLONESET =
TIMETOSTRINGSET =
; The code necessary to define an attribute as java.types.REAL
REALDEFINE =
REALGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic Float get%Column%() throws
RemoteException;%EOL%%EOL%
REALSET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(Float t_%column%)
throws RemoteException;%EOL%%EOL%
REALCBDROPSET =
REALCBDROPGET =
REALCBPROPGET =
REALCBPROPSET =
REALCLONESET =
REALTOSTRINGSET =
; The code necessary to define an attribute as java.types.FLOAT
FLOATDEFINE =
FLOATGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic Double get%Column%() throws
RemoteException;%EOL%%EOL%
FLOATSET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(Double t_%column%)
throws RemoteException;%EOL%%EOL%
FLOATCBDROPSET =
FLOATCBDROPGET =
FLOATCBPROPGET =
FLOATCBPROPSET =
FLOATCLONESET =
FLOATTOSTRINGSET =
; The code necessary to define an attribute as java.types.DOUBLE
DOUBLEDEFINE =
DOUBLEGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic Double get%Column%() throws
RemoteException;%EOL%%EOL%
DOUBLESET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(Double t_%column%)
throws RemoteException;%EOL%%EOL%
DOUBLECBDROPSET =
DOUBLECBDROPGET =
DOUBLECBPROPGET =
DOUBLECBPROPSET =
DOUBLECLONESET =
DOUBLETOSTRINGSET =
; The code necessary to define an attribute as java.types.VARBINARY
VARBINARYDEFINE =
VARBINARYGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic byte[] get%Column%() throws
RemoteException;%EOL%%EOL%
VARBINARYSET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(byte[]
t_%column%) throws RemoteException;%EOL%%EOL%
VARBINARYCBDROPSET =
VARBINARYCBDROPGET =
VARBINARYCBPROPGET =
VARBINARYCBPROPSET =
VARBINARYCLONESET =
VARBINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.LONGVARBINARY
LONGVARBINARYDEFINE =
LONGVARBINARYGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic byte[] get%Column%() throws
RemoteException;%EOL%%EOL%
LONGVARBINARYSET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(byte[]
t_%column%) throws RemoteException;%EOL%%EOL%
LONGVARBINARYCBDROPSET =
LONGVARBINARYCBDROPGET =
LONGVARBINARYCBPROPGET =
LONGVARBINARYCBPROPSET =
LONGVARBINARYCLONESET =
LONGVARBINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.LONGVARCHAR
LONGVARCHARDEFINE =
LONGVARCHARGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic String get%Column%() throws
RemoteException;%EOL%%EOL%
LONGVARCHARSET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(String
n_%column%) throws RemoteException;%EOL%%EOL%
LONGVARCHARCBDROPSET =
LONGVARCHARCBDROPGET =
LONGVARCHARCBPROPGET =
LONGVARCHARCBPROPSET =
LONGVARCHARCLONESET =
LONGVARCHARTOSTRINGSET =
; The code necessary to define an attribute as java.types.DATE
DATEDEFINE =
DATEGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic java.sql.Date get%Column%() throws
RemoteException;%EOL%%EOL%
DATESET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(java.sql.Date
n_%column%) throws RemoteException;%EOL%%EOL%
DATECBDROPSET =
DATECBDROPGET =
DATECBPROPGET =
DATECBPROPSET =
DATECLONESET =
DATETOSTRINGSET =
; The code necessary to define an attribute as java.types.BINARY
BINARYDEFINE =
BINARYGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic byte[] get%Column%() throws
RemoteException;%EOL%%EOL%
BINARYSET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(byte[] n_%column%)
throws RemoteException;%EOL%%EOL%
BINARYCBDROPSET =
BINARYCBDROPGET =
BINARYCBPROPGET =
BINARYCBPROPSET =
BINARYCLONESET =
BINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.OTHER
UNKNOWNDEFINE =
UNKNOWNGET = <CBINCLUDE GETCOMMENT>%EOL%\tpublic byte[] get%Column%() throws
RemoteException;%EOL%%EOL%
UNKNOWNSET = <CBINCLUDE SETCOMMENT>%EOL%\tpublic void set%Column%(byte[] n_%column%)
throws RemoteException;%EOL%%EOL%
UNKNOWNCBDROPSET =
UNKNOWNCBDROPGET =
UNKNOWNCBPROPGET =
UNKNOWNCBPROPSET =
UNKNOWNCLONESET =
UNKNOWNTOSTRINGSET =
; If we have and ODBMS & CBProp, this adds in the clone code to clone the
; ODBMS specific information.
COLCLONESET =
; If we have and ODBMS & CBProp, this adds in the toString code to toString the
; ODBMS specific information.
COLTOSTRINGSET =
; This ends the toString method.
CLASSTOSTRING =
; This tries to include all of the variables above the columns (such as ODBMS
; and CBProp variables).
CLASSVARS =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; getPropObjectData method.
LOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; setPropObjectData method.
LOIDPROPGET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; getPropObjectData method.
NAVLOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; setPropObjectData method.
NAVLOIDPROPGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDSET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
GETNAVLOID =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
SETNAVLOID =
; This is the method used to generate the clone() code - not used in EJBHOME.
CLONESTRING =
; This is the method used to generate the toString() code.
TOSTRINGSTRING =
; This is the method used to generate the CBDrop.setObjectData() code.
DROPSETSTRING =
; This is the method used to generate the CBDrop.getObjectData() code.
DROPGETSTRING =
; This is the method used to generate the CBProp.setPropObjectData() code.
PROPSETSTRING =
; This is the method used to generate the CBProp.getPropObjectData() code.
PROPGETSTRING =
; This comment is embedded in another comment within this file by using
; a <CBINCLUDE ODBMSCOMMENT>. It provides a great example of how to
; use the <CBINCLUDE directive>
ODBMSCOMMENT =
METHODNAV =
LINK1MDEFINE =
LINK1MGET = <CBIF linkqualifier=STD_LINK><CBINCLUDE LINKSTD1MGET></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN1MGET></CBIF>
LINKBEAN1MGET = \t/**%EOL%\
\t * This method selects a 1 to Many Non-Bean link.%EOL%\
\t * @return %Targetclass%%BEAN_INTERFACE_SUFFIX%[] The selected instances.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic %Targetclass%%BEAN_INTERFACE_SUFFIX%[]
select%methodsuffix%()%EOL%</CBIF>\
<CBIFNOT methodsuffix>\tpublic %Targetclass%%BEAN_INTERFACE_SUFFIX%[]
select%Targetclassnopkg%_%column%_%targetcolumn%es()%EOL%</CBIFNOT>\
\tthrows RemoteException;%EOL%\
LINKSTD1MGET = \t/**%EOL%\
\t * This method selects a 1 to many Non-Bean link.%EOL%\
\t * @return %Classname% The list of selected objects.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic Vector select%methodsuffix%() %EOL%</CBIF>\
<CBIFNOT methodsuffix>\tpublic Vector
select%Targetclassnopkg%_%column%_%targetcolumn%_s() %EOL%</CBIFNOT>\
%EOL%\t\tthrows RemoteException;%EOL%%EOL%
LINK1MINSERT = <CBIF linkqualifier=STD_LINK><CBINCLUDE LINKSTD1MINSERT></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN1MINSERT></CBIF>
LINKBEAN1MINSERT =
LINKSTD1MINSERT = \t/**%EOL%\
\t * This method inserts a 1 to 1 Non-Bean link instance.%EOL%\
\t * @param %Classname% The object to insert.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic int insert%methodsuffix%(</CBIF>\
<CBIFNOT methodsuffix>\tpublic int
insert%Targetclassnopkg%_%column%_%targetcolumn%_s(</CBIFNOT>\
%Targetclass% newValue)%EOL%\tthrows RemoteException;%EOL%%EOL%
LINK1MUPDATE = <CBIF linkqualifier=STD_LINK><CBINCLUDE LINKSTD1MUPDATE></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN1MUPDATE></CBIF>
LINKBEAN1MUPDATE =
LINKSTD1MUPDATE = \t/**%EOL%\
\t * This method updates a 1 to many Non-Bean link instance.%EOL%\
\t * @param %Classname% The object to update.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic int update%methodsuffix%(</CBIF>\
<CBIFNOT methodsuffix>\tpublic int
update%Targetclassnopkg%_%column%_%targetcolumn%_s(</CBIFNOT>\
%Targetclass% newValue)%EOL%\tthrows RemoteException;%EOL%%EOL%
LINK1MDELETE = <CBIF linkqualifier=STD_LINK><CBINCLUDE LINKSTD1MDELETE></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN1MDELETE></CBIF>
LINKBEAN1MDELETE =
LINKSTD1MDELETE = \t/**%EOL%\
\t * This method deletes a 1 to many Non-Bean link instance.%EOL%\
\t * @param %Classname% The object to delete.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic int delete%methodsuffix%(</CBIF>\
<CBIFNOT methodsuffix>\tpublic int
delete%Targetclassnopkg%_%column%_%targetcolumn%_s(</CBIFNOT>\
%Targetclassnopkg% newValue)%EOL%\tthrows RemoteException;%EOL%%EOL%
; The method name based on current class and methodsuffix
LINKMETHODNAME = <CBIF methodsuffix>%methodsuffix%</CBIF><CBIFNOT
methodsuffix>%Targetclass_%column%_%targetcolumn%</CBIFNOT>
LINK11DEFINE =
LINK11GET = <CBIF linkqualifier=STD_LINK><CBINCLUDE LINKSTD11GET></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN11GET></CBIF>
LINKBEAN11GET = \t/**%EOL%\
\t * This method gets a 1 to 1 Bean link.%EOL%\
\t * @return %Targetclass%%BEAN_INTERFACE_SUFFIX% The selected object.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic %Targetclass%%BEAN_INTERFACE_SUFFIX%
select%methodsuffix%()%EOL%</CBIF>\
<CBIFNOT methodsuffix>\tpublic %Targetclass%%BEAN_INTERFACE_SUFFIX%
select%Targetclassnopkg%_%column%_%targetcolumn%()%EOL%</CBIFNOT>\
\tthrows RemoteException;%EOL%\
LINKSTD11GET = \t/**%EOL%\
\t * This method gets a 1 to 1 Non-Bean link.%EOL%\
\t * @param %Classname% The object to update.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic %Targetclass% select%methodsuffix%()%EOL%</CBIF>\
<CBIFNOT methodsuffix>\tpublic %Targetclass%
select%Targetclassnopkg%_%column%_%targetcolumn%_s()%EOL%</CBIFNOT>%EOL%\tthrows
RemoteException;%EOL%%EOL%
LINK11INSERT = <CBIF linkqualifier=STD_LINK><CBINCLUDE LINKSTD11INSERT></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN11INSERT></CBIF>
LINKBEAN11INSERT =
LINKSTD11INSERT = \t/**%EOL%\
\t * This method inserts a 1 to 1 Non-Bean link.%EOL%\
\t * @param %Classname% The object to insert.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic int insert%methodsuffix%(</CBIF>\
<CBIFNOT methodsuffix>\tpublic int
insert%Targetclassnopkg%_%column%_%targetcolumn%_s(</CBIFNOT>%Targetclass%
newValue)%EOL%\tthrows RemoteException;%EOL%%EOL%
LINK11UPDATE = <CBIF linkqualifier=STD_LINK><CBINCLUDE LINKSTD11UPDATE></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN11UPDATE></CBIF>
LINKBEAN11UPDATE =
LINKSTD11UPDATE = \t/**%EOL%\
\t * This method updates a 1 to 1 Non-Bean link.%EOL%\
\t * @param %Classname% The object to update.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic int update%methodsuffix%(</CBIF>\
<CBIFNOT methodsuffix>\tpublic int
update%Targetclassnopkg%_%column%_%targetcolumn%(</CBIFNOT>%Targetclass%
newValue)%EOL%\tthrows RemoteException;%EOL%%EOL%
LINK11DELETE = <CBIF linkqualifier=STD_LINK><CBINCLUDE LINKSTD11DELETE></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN11DELETE></CBIF>
LINKBEAN11DELETE =
LINKSTD11DELETE = \t/**%EOL%\
\t * This method deletes a 1 to 1 Non-Bean link.%EOL%\
\t * @param %Classname% The object to delete.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic int delete%methodsuffix%()</CBIF>\
<CBIFNOT methodsuffix>\tpublic int
delete%Targetclassnopkg%_%column%_%targetcolumn%_s()</CBIFNOT>%EOL%\
\tthrows RemoteException;%EOL%%EOL%
1.1 contrib/cocobase/conf/JBOSS2EBMAKEBAT.properties
Index: JBOSS2EBMAKEBAT.properties
===================================================================
;
; This is the template file used to generate new java programming files
;
; The following variables are guaranteed to be provided by the CocoBase
; code generation runtime (note the variables are case sensitive!)
;
; HASPACKAGE - If we have a packagename prefix.
; packagename - The packagename (if present), such as com.thought
; Classname - The class name (such as Employee)
; supportCBDrop - If we wish to use the Properties based CBDrop interface.
; supportCBProp - If we wish to use the Properties based CBProp interface.
; supportODBMS - If we wish to generate code with ODBMS navigation.
; supportODBMSandCBProp - If we've selected both ODBMS and CBProp flags.
; EOL - The End of line character to be used when generating the java source
; code. This is OS dependent.
; supportTransObj - If we support using a Transaction object in the code
; generation for the 1-1, 1-M or M-M code.
; Column - The Java column name to use in constructin methods such as getPhone
; column - The Java column name (such as phone or empSkill);
; COLUMN - The Map's column name (such as "PHONE" or "EMP_SKILL")
; COUNT - current column count
; Targetclass - used in 1-1,1-M & M-M - The target class in the relationship
; Targetcolumn - used in 1-1,1-M & M-M - The target column in the relationship
; clonelist - The list of column attributes in the clone() method.
; tostringlist - The list of column attributes in the clone() method.
; dropsetlist - The code for the columns in the setObjectData() method.
; dropgetlist - The code for the columns in the getObjectData() method.
; propsetlist - The code for the columns in the setPropObjectData() method.
; propgetlist - The code for the columns in the getPropObjectData() method.
; iskey - Notes whether the column is part of the primary key.
; If we have a package, then insert the packing name string.
PACKAGEINFO =
; The imports for each class generated.
IMPORTS =
; The Class string to start the new java class with.
CLASSBEGIN = <CBSET linkedclasses= ><CBSET linkedser=rem Make related beans and
serialization files.%EOL%><CBSET linkedstd= ><CBSET linkedcmp= >
; The comment used for each setAttr() method
SETCOMMENT =
; The comment used for each getAttr() method
GETCOMMENT =
; To appear just before the list of instance variables.
CLASSVARCOMMENT =
; The code necessary to define an attribute as java.types.BIT
BITDEFINE =
BITGET =
BITSET =
; Use the current position for this element fetch. %COUNT% is the reserved
; variable to specify the current location.
BITCBDROPSET =
BITCBDROPGET =
; Note the use of uppercase to denote the Property value.
BITCBPROPSET =
BITCBPROPGET =
BITCLONESET =
BITTOSTRINGSET =
; The code necessary to define an attribute as java.types.CHAR or java.types.VARCHAR
CHARDEFINE =
CHARGET =
CHARSET =
CHARCBDROPSET =
CHARCBDROPGET =
CHARCBPROPSET =
CHARCBPROPGET =
CHARCLONESET =
CHARTOSTRINGSET =
; The code necessary to define an attribute as java.types.DECIMAL or
java.types.NUMERIC
BIGDECIMALDEFINE =
BIGDECIMALGET =
BIGDECIMALSET =
BIGDECIMALCBDROPSET =
BIGDECIMALCBDROPGET =
BIGDECIMALCBPROPSET =
BIGDECIMALCBPROPGET =
BIGDECIMALCLONESET =
BIGDECIMALTOSTRINGSET =
; The code necessary to define an attribute as java.types.TINYINT
TINYINTDEFINE =
TINYINTGET =
TINYINTSET =
TINYINTCBDROPSET =
TINYINTCBDROPGET =
TINYINTCBPROPSET =
TINYINTCBPROPGET =
TINYINTCLONESET =
TINYINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.SMALLINT
SMALLINTDEFINE =
SMALLINTGET =
SMALLINTSET =
SMALLINTCBDROPSET =
SMALLINTCBDROPGET =
SMALLINTCBPROPGET =
SMALLINTCBPROPSET =
SMALLINTCLONESET =
SMALLINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.INTEGER
INTEGERDEFINE =
INTEGERGET =
INTEGERSET =
INTEGERCBDROPSET =
INTEGERCBDROPGET =
INTEGERCBPROPGET =
INTEGERCBPROPSET =
INTEGERCLONESET =
INTEGERTOSTRINGSET =
; The code necessary to define an attribute as java.types.BIGINT
BIGINTDEFINE =
BIGINTGET =
BIGINTSET =
BIGINTCBDROPSET =
BIGINTCBDROPGET =
BIGINTCBPROPGET =
BIGINTCBPROPSET =
BIGINTCLONESET =
BIGINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.TIMESTAMP
TIMESTAMPDEFINE =
TIMESTAMPGET =
TIMESTAMPSET =
TIMESTAMPCBDROPSET =
TIMESTAMPCBDROPGET =
TIMESTAMPCBPROPGET =
TIMESTAMPCBPROPSET =
TIMESTAMPCLONESET =
TIMESTAMPTOSTRINGSET =
; The code necessary to define an attribute as java.types.TIME
TIMEDEFINE =
TIMEGET =
TIMESET =
TIMECBDROPSET =
TIMECBDROPGET =
TIMECBPROPGET =
TIMECBPROPSET =
TIMECLONESET =
TIMETOSTRINGSET =
; The code necessary to define an attribute as java.types.REAL
REALDEFINE =
REALGET =
REALSET =
REALCBDROPSET =
REALCBDROPGET =
REALCBPROPGET =
REALCBPROPSET =
REALCLONESET =
REALTOSTRINGSET =
; The code necessary to define an attribute as java.types.FLOAT
FLOATDEFINE =
FLOATGET =
FLOATSET =
FLOATCBDROPSET =
FLOATCBDROPGET =
FLOATCBPROPGET =
FLOATCBPROPSET =
FLOATCLONESET =
FLOATTOSTRINGSET =
; The code necessary to define an attribute as java.types.DOUBLE
DOUBLEDEFINE =
DOUBLEGET =
DOUBLESET =
DOUBLECBDROPSET =
DOUBLECBDROPGET =
DOUBLECBPROPGET =
DOUBLECBPROPSET =
DOUBLECLONESET =
DOUBLETOSTRINGSET =
; The code necessary to define an attribute as java.types.VARBINARY
VARBINARYDEFINE =
VARBINARYGET =
VARBINARYSET =
VARBINARYCBDROPSET =
VARBINARYCBDROPGET =
VARBINARYCBPROPGET =
VARBINARYCBPROPSET =
VARBINARYCLONESET =
VARBINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.LONGVARBINARY
LONGVARBINARYDEFINE =
LONGVARBINARYGET =
LONGVARBINARYSET =
LONGVARBINARYCBDROPSET =
LONGVARBINARYCBDROPGET =
LONGVARBINARYCBPROPGET =
LONGVARBINARYCBPROPSET =
LONGVARBINARYCLONESET =
LONGVARBINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.LONGVARCHAR
LONGVARCHARDEFINE =
LONGVARCHARGET =
LONGVARCHARSET =
LONGVARCHARCBDROPSET =
LONGVARCHARCBDROPGET =
LONGVARCHARCBPROPGET =
LONGVARCHARCBPROPSET =
LONGVARCHARCLONESET =
LONGVARCHARTOSTRINGSET =
; The code necessary to define an attribute as java.types.DATE
DATEDEFINE =
DATEGET =
DATESET =
DATECBDROPSET =
DATECBDROPGET =
DATECBPROPGET =
DATECBPROPSET =
DATECLONESET =
DATETOSTRINGSET =
; The code necessary to define an attribute as java.types.BINARY
BINARYDEFINE =
BINARYGET =
BINARYSET =
BINARYCBDROPSET =
BINARYCBDROPGET =
BINARYCBPROPGET =
BINARYCBPROPSET =
BINARYCLONESET =
BINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.OTHER
UNKNOWNDEFINE =
UNKNOWNGET =
UNKNOWNSET =
UNKNOWNCBDROPSET =
UNKNOWNCBDROPGET =
UNKNOWNCBPROPGET =
UNKNOWNCBPROPSET =
UNKNOWNCLONESET =
UNKNOWNTOSTRINGSET =
; If we have and ODBMS & CBProp, this adds in the clone code to clone the
; ODBMS specific information.
COLCLONESET =
; If we have and ODBMS & CBProp, this adds in the toString code to toString the
; ODBMS specific information.
COLTOSTRINGSET =
; This ends the toString method.
CLASSTOSTRING =
; This tries to include all of the variables above the columns (such as ODBMS
; and CBProp variables).
CLASSVARS =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; getPropObjectData method.
LOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; setPropObjectData method.
LOIDPROPGET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; getPropObjectData method.
NAVLOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; setPropObjectData method.
NAVLOIDPROPGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDSET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
GETNAVLOID =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
SETNAVLOID =
; This is the method used to generate the clone() code - not used in EJBHOME.
CLONESTRING =
; This is the method used to generate the toString() code.
TOSTRINGSTRING =
; This is the method used to generate the CBDrop.setObjectData() code.
DROPSETSTRING =
; This is the method used to generate the CBDrop.getObjectData() code.
DROPGETSTRING =
; This is the method used to generate the CBProp.setPropObjectData() code.
PROPSETSTRING =
; This is the method used to generate the CBProp.getPropObjectData() code.
PROPGETSTRING =
; This comment is embedded in another comment within this file by using
; a <CBINCLUDE ODBMSCOMMENT>. It provides a great example of how to
; use the <CBINCLUDE directive>
ODBMSCOMMENT =
METHODNAV =
LINK1MDEFINE = <CBIF linkqualifier=BEAN_LINK><CBIFNOT linkedclasses contains
%Targetclassnopkg%><CBAPPEND
linkedclasses+%packagedirname%%fileseparator%%Targetclassnopkg%* >\
<CBAPPEND linkedser+if NOT EXIST
%packagedirname%%fileseparator%%Targetclassnopkg%DD.ser call
%packagedirname%%fileseparator%%Targetclassnopkg%%EOL%></CBIFNOT></CBIF>\
<CBIF linkqualifier=STD_LINK><CBIFNOT linkedstd contains
%Targetclassnopkg%><CBAPPEND
linkedstd+%packagedirname%%fileseparator%%Targetclassnopkg%*.class ></CBIFNOT></CBIF>\
<CBIF linkqualifier=STD_LINK><CBIFNOT linkedcmp contains
%Targetclassnopkg%><CBAPPEND
linkedcmp+%packagedirname%%fileseparator%%Targetclassnopkg%*.java ></CBIFNOT></CBIF>
LINK1MGET =
LINK1MINSERT =
LINK1MUPDATE =
LINK1MDELETE =
METHODNAV =
LINK11DEFINE = <CBIF linkqualifier=BEAN_LINK><CBIFNOT linkedclasses contains
%Targetclassnopkg%><CBAPPEND
linkedclasses+%packagedirname%%fileseparator%%Targetclassnopkg%* >\
<CBAPPEND linkedser+if NOT EXIST
%packagedirname%%fileseparator%%Targetclassnopkg%DD.ser call
%packagedirname%%fileseparator%%Targetclassnopkg%%EOL%></CBIFNOT></CBIF>\
<CBIF linkqualifier=STD_LINK><CBIFNOT linkedstd contains
%Targetclassnopkg%><CBAPPEND
linkedstd+%packagedirname%%fileseparator%%Targetclassnopkg%*.class ></CBIFNOT></CBIF>\
<CBIF linkqualifier=STD_LINK><CBIFNOT linkedcmp contains
%Targetclassnopkg%><CBAPPEND
linkedcmp+%packagedirname%%fileseparator%%Targetclassnopkg%*.java ></CBIFNOT></CBIF>
LINK11GET =
LINK11INSERT =
LINK11UPDATE =
LINK11DELETE =
PKGPREFIX = <CBIF HASPACKAGE>%packagename%.</CBIF>
PKGDIRPREFIX = <CBIF HASPACKAGE>%packagedirname%%fileseparator%</CBIF>
CLASSEND = @echo off%EOL%\
echo ----------------%EOL%\
echo Please edit jboss.conf and add in your datasource '%confDataSource%' before
running.%EOL%\
@rem Comment line if you don't want to Creates CocoBase dirs and copy latest
CocoBase classfiles%EOL%\
call seticocovars%EOL%\
echo Compiling bean%EOL%\
@echo on%EOL%\
javac <CBIF
HASPACKAGE>%packagedirname%%fileseparatorwindows%</CBIF>%Classname%*.java %linkedcmp%
%EOL%\
mkdir META-INF %EOL%\
copy <CBIF HASPACKAGE>%packagedirname%%fileseparatorwindows%</CBIF>%Classname%DD.xml
META-INF\\ejb-jar.xml%EOL%\
copy <CBIF
HASPACKAGE>%packagedirname%%fileseparatorwindows%</CBIF>%Classname%IDD.xml
META-INF\\jboss.xml%EOL%\
java com.thought.CocoUtils.CreateDeploy <CBINCLUDE PKGDIRPREFIX>%Classname%DD %EOL%\
jar cfM %Classname%.jar <CBINCLUDE PKGDIRPREFIX>*%Classname%*.class <CBINCLUDE
PKGDIRPREFIX>%Classname%Config.properties <CBINCLUDE
PKGDIRPREFIX>%Classname%Entity.properties META-INF %linkedclasses% %linkedstd%%EOL%\
rmdir META-INF
@echo off%EOL%\
echo Jar file created, Copying Beans and CocoBase classes.%EOL%\
rem Install latest version of CocoBase classes into classes directory%EOL%\
call unseticoco%EOL%\
echo Jar %Classname%.jar created.%EOL%\
echo File is ready to deploy into jboss environment.%EOL%
1.1 contrib/cocobase/conf/JBOSS2EBMAKESH.properties
Index: JBOSS2EBMAKESH.properties
===================================================================
;
; This is the template file used to generate new java programming files
;
; The following variables are guaranteed to be provided by the CocoBase
; code generation runtime (note the variables are case sensitive!)
;
; HASPACKAGE - If we have a packagename prefix.
; packagename - The packagename (if present), such as com.thought
; Classname - The class name (such as Employee)
; supportCBDrop - If we wish to use the Properties based CBDrop interface.
; supportCBProp - If we wish to use the Properties based CBProp interface.
; supportODBMS - If we wish to generate code with ODBMS navigation.
; supportODBMSandCBProp - If we've selected both ODBMS and CBProp flags.
; EOL - The End of line character to be used when generating the java source
; code. This is OS dependent.
; supportTransObj - If we support using a Transaction object in the code
; generation for the 1-1, 1-M or M-M code.
; Column - The Java column name to use in constructin methods such as getPhone
; column - The Java column name (such as phone or empSkill);
; COLUMN - The Map's column name (such as "PHONE" or "EMP_SKILL")
; COUNT - current column count
; Targetclass - used in 1-1,1-M & M-M - The target class in the relationship
; Targetcolumn - used in 1-1,1-M & M-M - The target column in the relationship
; clonelist - The list of column attributes in the clone() method.
; tostringlist - The list of column attributes in the clone() method.
; dropsetlist - The code for the columns in the setObjectData() method.
; dropgetlist - The code for the columns in the getObjectData() method.
; propsetlist - The code for the columns in the setPropObjectData() method.
; propgetlist - The code for the columns in the getPropObjectData() method.
; iskey - Notes whether the column is part of the primary key.
; If we have a package, then insert the packing name string.
PACKAGEINFO =
; The imports for each class generated.
IMPORTS =
; The Class string to start the new java class with.
CLASSBEGIN = <CBSET linkedclasses= ><CBSET linkedser=# Make related serialization
files.%EOL%><CBSET linkedstd= ><CBSET linkedcmp= >
; The comment used for each setAttr() method
SETCOMMENT =
; The comment used for each getAttr() method
GETCOMMENT =
; To appear just before the list of instance variables.
CLASSVARCOMMENT =
; The code necessary to define an attribute as java.types.BIT
BITDEFINE =
BITGET =
BITSET =
; Use the current position for this element fetch. %COUNT% is the reserved
; variable to specify the current location.
BITCBDROPSET =
BITCBDROPGET =
; Note the use of uppercase to denote the Property value.
BITCBPROPSET =
BITCBPROPGET =
BITCLONESET =
BITTOSTRINGSET =
; The code necessary to define an attribute as java.types.CHAR or java.types.VARCHAR
CHARDEFINE =
CHARGET =
CHARSET =
CHARCBDROPSET =
CHARCBDROPGET =
CHARCBPROPSET =
CHARCBPROPGET =
CHARCLONESET =
CHARTOSTRINGSET =
; The code necessary to define an attribute as java.types.DECIMAL or
java.types.NUMERIC
BIGDECIMALDEFINE =
BIGDECIMALGET =
BIGDECIMALSET =
BIGDECIMALCBDROPSET =
BIGDECIMALCBDROPGET =
BIGDECIMALCBPROPSET =
BIGDECIMALCBPROPGET =
BIGDECIMALCLONESET =
BIGDECIMALTOSTRINGSET =
; The code necessary to define an attribute as java.types.TINYINT
TINYINTDEFINE =
TINYINTGET =
TINYINTSET =
TINYINTCBDROPSET =
TINYINTCBDROPGET =
TINYINTCBPROPSET =
TINYINTCBPROPGET =
TINYINTCLONESET =
TINYINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.SMALLINT
SMALLINTDEFINE =
SMALLINTGET =
SMALLINTSET =
SMALLINTCBDROPSET =
SMALLINTCBDROPGET =
SMALLINTCBPROPGET =
SMALLINTCBPROPSET =
SMALLINTCLONESET =
SMALLINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.INTEGER
INTEGERDEFINE =
INTEGERGET =
INTEGERSET =
INTEGERCBDROPSET =
INTEGERCBDROPGET =
INTEGERCBPROPGET =
INTEGERCBPROPSET =
INTEGERCLONESET =
INTEGERTOSTRINGSET =
; The code necessary to define an attribute as java.types.BIGINT
BIGINTDEFINE =
BIGINTGET =
BIGINTSET =
BIGINTCBDROPSET =
BIGINTCBDROPGET =
BIGINTCBPROPGET =
BIGINTCBPROPSET =
BIGINTCLONESET =
BIGINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.TIMESTAMP
TIMESTAMPDEFINE =
TIMESTAMPGET =
TIMESTAMPSET =
TIMESTAMPCBDROPSET =
TIMESTAMPCBDROPGET =
TIMESTAMPCBPROPGET =
TIMESTAMPCBPROPSET =
TIMESTAMPCLONESET =
TIMESTAMPTOSTRINGSET =
; The code necessary to define an attribute as java.types.TIME
TIMEDEFINE =
TIMEGET =
TIMESET =
TIMECBDROPSET =
TIMECBDROPGET =
TIMECBPROPGET =
TIMECBPROPSET =
TIMECLONESET =
TIMETOSTRINGSET =
; The code necessary to define an attribute as java.types.REAL
REALDEFINE =
REALGET =
REALSET =
REALCBDROPSET =
REALCBDROPGET =
REALCBPROPGET =
REALCBPROPSET =
REALCLONESET =
REALTOSTRINGSET =
; The code necessary to define an attribute as java.types.FLOAT
FLOATDEFINE =
FLOATGET =
FLOATSET =
FLOATCBDROPSET =
FLOATCBDROPGET =
FLOATCBPROPGET =
FLOATCBPROPSET =
FLOATCLONESET =
FLOATTOSTRINGSET =
; The code necessary to define an attribute as java.types.DOUBLE
DOUBLEDEFINE =
DOUBLEGET =
DOUBLESET =
DOUBLECBDROPSET =
DOUBLECBDROPGET =
DOUBLECBPROPGET =
DOUBLECBPROPSET =
DOUBLECLONESET =
DOUBLETOSTRINGSET =
; The code necessary to define an attribute as java.types.VARBINARY
VARBINARYDEFINE =
VARBINARYGET =
VARBINARYSET =
VARBINARYCBDROPSET =
VARBINARYCBDROPGET =
VARBINARYCBPROPGET =
VARBINARYCBPROPSET =
VARBINARYCLONESET =
VARBINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.LONGVARBINARY
LONGVARBINARYDEFINE =
LONGVARBINARYGET =
LONGVARBINARYSET =
LONGVARBINARYCBDROPSET =
LONGVARBINARYCBDROPGET =
LONGVARBINARYCBPROPGET =
LONGVARBINARYCBPROPSET =
LONGVARBINARYCLONESET =
LONGVARBINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.LONGVARCHAR
LONGVARCHARDEFINE =
LONGVARCHARGET =
LONGVARCHARSET =
LONGVARCHARCBDROPSET =
LONGVARCHARCBDROPGET =
LONGVARCHARCBPROPGET =
LONGVARCHARCBPROPSET =
LONGVARCHARCLONESET =
LONGVARCHARTOSTRINGSET =
; The code necessary to define an attribute as java.types.DATE
DATEDEFINE =
DATEGET =
DATESET =
DATECBDROPSET =
DATECBDROPGET =
DATECBPROPGET =
DATECBPROPSET =
DATECLONESET =
DATETOSTRINGSET =
; The code necessary to define an attribute as java.types.BINARY
BINARYDEFINE =
BINARYGET =
BINARYSET =
BINARYCBDROPSET =
BINARYCBDROPGET =
BINARYCBPROPGET =
BINARYCBPROPSET =
BINARYCLONESET =
BINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.OTHER
UNKNOWNDEFINE =
UNKNOWNGET =
UNKNOWNSET =
UNKNOWNCBDROPSET =
UNKNOWNCBDROPGET =
UNKNOWNCBPROPGET =
UNKNOWNCBPROPSET =
UNKNOWNCLONESET =
UNKNOWNTOSTRINGSET =
; If we have and ODBMS & CBProp, this adds in the clone code to clone the
; ODBMS specific information.
COLCLONESET =
; If we have and ODBMS & CBProp, this adds in the toString code to toString the
; ODBMS specific information.
COLTOSTRINGSET =
; This ends the toString method.
CLASSTOSTRING =
; This tries to include all of the variables above the columns (such as ODBMS
; and CBProp variables).
CLASSVARS =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; getPropObjectData method.
LOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; setPropObjectData method.
LOIDPROPGET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; getPropObjectData method.
NAVLOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; setPropObjectData method.
NAVLOIDPROPGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDSET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
GETNAVLOID =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
SETNAVLOID =
; This is the method used to generate the clone() code - not used in EJBHOME.
CLONESTRING =
; This is the method used to generate the toString() code.
TOSTRINGSTRING =
; This is the method used to generate the CBDrop.setObjectData() code.
DROPSETSTRING =
; This is the method used to generate the CBDrop.getObjectData() code.
DROPGETSTRING =
; This is the method used to generate the CBProp.setPropObjectData() code.
PROPSETSTRING =
; This is the method used to generate the CBProp.getPropObjectData() code.
PROPGETSTRING =
; This comment is embedded in another comment within this file by using
; a <CBINCLUDE ODBMSCOMMENT>. It provides a great example of how to
; use the <CBINCLUDE directive>
ODBMSCOMMENT =
METHODNAV =
LINK1MDEFINE = <CBIF linkqualifier=BEAN_LINK><CBIFNOT linkedclasses contains
%Targetclassnopkg%><CBAPPEND
linkedclasses+%packagedirnameunix%%fileseparatorunix%%Targetclassnopkg%* >\
<CBAPPEND linkedser+if ( test ! -f
%packagedirnameunix%%fileseparatorunix%%Targetclassnopkg%DD.ser )%EOL%then%EOL%\tsh
%packagedirname%%fileseparator%%Targetclassnopkg%.sh%EOL%fi%EOL%></CBIFNOT></CBIF>\
<CBIF linkqualifier=STD_LINK><CBIFNOT linkedstd contains
%Targetclassnopkg%><CBAPPEND
linkedstd+%packagedirname%%fileseparatorunix%%Targetclassnopkg%*.class
></CBIFNOT></CBIF>\
<CBIF linkqualifier=STD_LINK><CBIFNOT linkedcmp contains
%Targetclassnopkg%><CBAPPEND
linkedcmp+%packagedirname%%fileseparatorunix%%Targetclassnopkg%*.java
></CBIFNOT></CBIF>
LINK1MGET =
LINK1MINSERT =
LINK1MUPDATE =
LINK1MDELETE =
METHODNAV =
LINK11DEFINE = <CBIF linkqualifier=BEAN_LINK><CBIFNOT linkedclasses contains
%Targetclassnopkg%><CBAPPEND
linkedclasses+%packagedirnameunix%%fileseparatorunix%%Targetclassnopkg%* >\
<CBAPPEND linkedser+if ( test ! -f
%packagedirnameunix%%fileseparatorunix%%Targetclassnopkg%DD.ser )%EOL%then%EOL%\tsh
%packagedirname%%fileseparator%%Targetclassnopkg%.sh%EOL%fi%EOL%></CBIFNOT></CBIF>\
<CBIF linkqualifier=STD_LINK><CBIFNOT linkedstd contains
%Targetclassnopkg%><CBAPPEND
linkedstd+%packagedirname%%fileseparatorunix%%Targetclassnopkg%*.class
></CBIFNOT></CBIF>\
<CBIF linkqualifier=STD_LINK><CBIFNOT linkedcmp contains
%Targetclassnopkg%><CBAPPEND
linkedcmp+%packagedirname%%fileseparatorunix%%Targetclassnopkg%*.java
></CBIFNOT></CBIF>
LINK11GET =
LINK11INSERT =
LINK11UPDATE =
LINK11DELETE =
PKGPREFIX = <CBIF HASPACKAGE>%packagename%.</CBIF>
PKGDIRPREFIX = <CBIF HASPACKAGE>%packagedirnameunix%%fileseparatorunix%</CBIF>
CLASSEND = #!/bin/sh%EOL%\
echo "----------------"%EOL%\
echo "Please edit <CBINCLUDE PKGDIRPREFIX>%Classname%Entity.properties to set
database userid/password before running."%EOL%\
./seticocovars.sh%EOL%\
echo "Compiling bean%"EOL%\
vbjc <CBIF
HASPACKAGE>%packagedirnameunix%%fileseparatorunix%</CBIF>%Classname%*.java %linkedcmp%
%EOL%\
java2iiop <CBINCLUDE PKGPREFIX>%Classname%%BEAN_HOME_SUFFIX% %EOL%\
vbjc <CBIF HASPACKAGE>%packagedirnameunix%%fileseparatorunix%</CBIF>*.java %EOL%\
vbj com.thought.CocoUtils.CreateDeploy <CBINCLUDE PKGDIRPREFIX>%Classname%DD %EOL%\
copy <CBIF HASPACKAGE>%packagedirname%%fileseparatorunix%</CBIF>%Classname%DD.xml
META-INF/ejb-jar.xml%EOL%\
copy <CBIF HASPACKAGE>%packagedirname%%fileseparatorunix%</CBIF>%Classname%IDD.xml
META-INF/jboss.xml%EOL%\
%linkedser%\
jar cfM %Classname%.jar <CBINCLUDE PKGDIRPREFIX>*%Classname%*.class <CBINCLUDE
PKGDIRPREFIX>%Classname%DD.ser <CBINCLUDE PKGDIRPREFIX>%Classname%Config.properties
<CBINCLUDE PKGDIRPREFIX>%Classname%Entity.properties META-INF %linkedclasses%
%linkedstd%%EOL%\
./unseticoco.sh%EOL%\
echo "Jar %Classname%.jar created."%EOL%\
echo "File is ready to deploy into jboss environment."%EOL%
1.1 contrib/cocobase/conf/JBOSS2EBPK.properties
Index: JBOSS2EBPK.properties
===================================================================
;
; This is the template file used to generate new java programming files
;
; The following variables are guaranteed to be provided by the CocoBase
; code generation runtime (note the variables are case sensitive!)
;
; HASPACKAGE - If we have a packagename prefix.
; packagename - The packagename (if present), such as com.thought
; Classname - The class name (such as Employee)
; supportCBDrop - If we wish to use the Properties based CBDrop interface.
; supportCBProp - If we wish to use the Properties based CBProp interface.
; supportODBMS - If we wish to generate code with ODBMS navigation.
; supportODBMSandCBProp - If we've selected both ODBMS and CBProp flags.
; EOL - The End of line character to be used when generating the java source
; code. This is OS dependent.
; supportTransObj - If we support using a Transaction object in the code
; generation for the 1-1, 1-M or M-M code.
; Column - The Java column name to use in constructin methods such as getPhone
; column - The Java column name (such as phone or empSkill);
; COLUMN - The Map's column name (such as "PHONE" or "EMP_SKILL")
; COUNT - current column count
; Targetclass - used in 1-1,1-M & M-M - The target class in the relationship
; Targetcolumn - used in 1-1,1-M & M-M - The target column in the relationship
; clonelist - The list of column attributes in the clone() method.
; tostringlist - The list of column attributes in the clone() method.
; dropsetlist - The code for the columns in the setObjectData() method.
; dropgetlist - The code for the columns in the getObjectData() method.
; propsetlist - The code for the columns in the setPropObjectData() method.
; propgetlist - The code for the columns in the getPropObjectData() method.
; iskey - Notes whether the column is part of the primary key.
; If we have a package, then insert the packing name string.
PACKAGEINFO = <CBIF HASPACKAGE>package %packagename%;%EOL%\
%EOL%</CBIF>
; The imports for each class generated.
IMPORTS = import java.sql.*;%EOL%\
import java.util.*;%EOL%\
import java.math.*;%EOL%
ATTRSETS = <CBIF iskey=true><CBAPPEND
equalsattr+\t\tif(t_Compare%Classname%%BEAN_PK_SUFFIX%.%column% == null)
{%EOL%\t\t\tif(%column% != null) return
false;%EOL%\t\t}%EOL%\t\telse%EOL%\t\t\tif(!t_Compare%Classname%%BEAN_PK_SUFFIX%.%column%.equals(%column%))%EOL%\t\t\treturn
false;%EOL%\t\t%EOL%></CBIF>
; The Class string to start the new java class with.
CLASSBEGIN = <CBINCLUDE PACKAGEINFO>\
<CBINCLUDE IMPORTS>%EOL%\
/*%EOL%\
* EJB Primary Key object Generated by CocoAdmin from THOUGHT Inc.%EOL%\
*%EOL%\
* Copyright (c) 1995-1999 THOUGHT Inc. All Rights Reserved.%EOL%\
*%EOL%\
*/%EOL%\
%EOL%\
public class %Classname%%BEAN_PK_SUFFIX% implements java.io.Serializable %EOL%\
{%EOL%
CLASSEND = <CBINCLUDE HASHCODESTRING><CBINCLUDE EQUALSET>
EQUALSET = \t/**%EOL%\
\t * Check to see if values are equal - this should be based on key fields.%EOL%\
\t * @param n_%column% the primary key instance to compare to.%EOL%\
\t */%EOL%\
\tpublic boolean equals(Object t_%Classname%%BEAN_PK_SUFFIX%)%EOL%\
\t{%EOL%\
\t\tif(! (t_%Classname%%BEAN_PK_SUFFIX% instanceof %Classname%%BEAN_PK_SUFFIX%))
return false;%EOL%\
\t\t%Classname%%BEAN_PK_SUFFIX% t_Compare%Classname%%BEAN_PK_SUFFIX% =
(%Classname%%BEAN_PK_SUFFIX%)t_%Classname%%BEAN_PK_SUFFIX%;%EOL%\
<CBIF equalsattr>%equalsattr%%EOL%\
\t\treturn true;%EOL%</CBIF>\
<CBIFNOT equalsattr>\t\treturn
super.equals(t_%Classname%%BEAN_PK_SUFFIX%);</CBIFNOT>\
\t}%EOL%
; The comment used for each setAttr() method
SETCOMMENT =
; The comment used for each getAttr() method
GETCOMMENT =
; To appear just before the list of instance variables.
CLASSVARCOMMENT =
; The code necessary to define an attribute as java.types.BIT
BITDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic Boolean %column% =
null;%EOL%%EOL%</CBIF>
BITGET =
BITSET =
; Use the current position for this element fetch. %COUNT% is the reserved
; variable to specify the current location.
BITCBDROPSET =
BITCBDROPGET =
; Note the use of uppercase to denote the Property value.
BITCBPROPSET =
BITCBPROPGET =
BITCLONESET =
BITTOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; The code necessary to define an attribute as java.types.CHAR or java.types.VARCHAR
CHARDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic String %column% =
null;%EOL%%EOL%</CBIF>
CHARGET =
CHARSET =
CHARCBDROPSET =
CHARCBDROPGET =
CHARCBPROPSET =
CHARCBPROPGET =
CHARCLONESET =
CHARTOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; The code necessary to define an attribute as java.types.DECIMAL or
java.types.NUMERIC
BIGDECIMALDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic BigDecimal %column%
= null;%EOL%%EOL%</CBIF>
BIGDECIMALGET =
BIGDECIMALSET =
BIGDECIMALCBDROPSET =
BIGDECIMALCBDROPGET =
BIGDECIMALCBPROPSET =
BIGDECIMALCBPROPGET =
BIGDECIMALCLONESET =
BIGDECIMALTOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; The code necessary to define an attribute as java.types.TINYINT
TINYINTDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic Short %column% =
null;%EOL%%EOL%</CBIF>
TINYINTGET =
TINYINTSET =
TINYINTCBDROPSET =
TINYINTCBDROPGET =
TINYINTCBPROPSET =
TINYINTCBPROPGET =
TINYINTCLONESET =
TINYINTTOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; The code necessary to define an attribute as java.types.SMALLINT
SMALLINTDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic Integer %column% =
null;%EOL%%EOL%</CBIF>
SMALLINTGET =
SMALLINTSET =
SMALLINTCBDROPSET =
SMALLINTCBDROPGET =
SMALLINTCBPROPGET =
SMALLINTCBPROPSET =
SMALLINTCLONESET =
SMALLINTTOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; The code necessary to define an attribute as java.types.INTEGER
INTEGERDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic Integer %column% =
null;%EOL%%EOL%</CBIF>
INTEGERGET =
INTEGERSET =
INTEGERCBDROPSET =
INTEGERCBDROPGET =
INTEGERCBPROPGET =
INTEGERCBPROPSET =
INTEGERCLONESET =
INTEGERTOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; The code necessary to define an attribute as java.types.BIGINT
BIGINTDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic Long %column% =
null;%EOL%%EOL%</CBIF>
BIGINTGET =
BIGINTSET =
BIGINTCBDROPSET =
BIGINTCBDROPGET =
BIGINTCBPROPGET =
BIGINTCBPROPSET =
BIGINTCLONESET =
BIGINTTOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; The code necessary to define an attribute as java.types.TIMESTAMP
TIMESTAMPDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic Timestamp %column% =
null;%EOL%%EOL%</CBIF>
TIMESTAMPGET =
TIMESTAMPSET =
TIMESTAMPCBDROPSET =
TIMESTAMPCBDROPGET =
TIMESTAMPCBPROPGET =
TIMESTAMPCBPROPSET =
TIMESTAMPCLONESET =
TIMESTAMPTOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; The code necessary to define an attribute as java.types.TIME
TIMEDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic Time %column% =
null;%EOL%%EOL%</CBIF>
TIMEGET =
TIMESET =
TIMECBDROPSET =
TIMECBDROPGET =
TIMECBPROPGET =
TIMECBPROPSET =
TIMECLONESET =
TIMETOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; The code necessary to define an attribute as java.types.REAL
REALDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic Float %column% =
null;%EOL%%EOL%</CBIF>
REALGET =
REALSET =
REALCBDROPSET =
REALCBDROPGET =
REALCBPROPGET =
REALCBPROPSET =
REALCLONESET =
REALTOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; The code necessary to define an attribute as java.types.FLOAT
FLOATDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic Double %column% =
null;%EOL%%EOL%</CBIF>
FLOATGET =
FLOATSET =
FLOATCBDROPSET =
FLOATCBDROPGET =
FLOATCBPROPGET =
FLOATCBPROPSET =
FLOATCLONESET =
FLOATTOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; The code necessary to define an attribute as java.types.DOUBLE
DOUBLEDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic Double %column% =
null;%EOL%%EOL%</CBIF>
DOUBLEGET =
DOUBLESET =
DOUBLECBDROPSET =
DOUBLECBDROPGET =
DOUBLECBPROPGET =
DOUBLECBPROPSET =
DOUBLECLONESET =
DOUBLETOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; The code necessary to define an attribute as java.types.VARBINARY
VARBINARYDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic byte[] %column% =
null;%EOL%%EOL%</CBIF>
VARBINARYGET =
VARBINARYSET =
VARBINARYCBDROPSET =
VARBINARYCBDROPGET =
VARBINARYCBPROPGET =
VARBINARYCBPROPSET =
VARBINARYCLONESET =
VARBINARYTOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; The code necessary to define an attribute as java.types.LONGVARBINARY
LONGVARBINARYDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic byte[] %column%
= null;%EOL%%EOL%</CBIF>
LONGVARBINARYGET =
LONGVARBINARYSET =
LONGVARBINARYCBDROPSET =
LONGVARBINARYCBDROPGET =
LONGVARBINARYCBPROPGET =
LONGVARBINARYCBPROPSET =
LONGVARBINARYCLONESET =
LONGVARBINARYTOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; The code necessary to define an attribute as java.types.LONGVARCHAR
LONGVARCHARDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic String %column% =
null;%EOL%%EOL%</CBIF>
LONGVARCHARGET =
LONGVARCHARSET =
LONGVARCHARCBDROPSET =
LONGVARCHARCBDROPGET =
LONGVARCHARCBPROPGET =
LONGVARCHARCBPROPSET =
LONGVARCHARCLONESET =
LONGVARCHARTOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; The code necessary to define an attribute as java.types.DATE
DATEDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic java.sql.Date %column% =
null;%EOL%%EOL%</CBIF>
DATEGET =
DATESET =
DATECBDROPSET =
DATECBDROPGET =
DATECBPROPGET =
DATECBPROPSET =
DATECLONESET =
DATETOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; The code necessary to define an attribute as java.types.BINARY
BINARYDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic byte[] %column% =
null;%EOL%%EOL%</CBIF>
BINARYGET =
BINARYSET =
BINARYCBDROPSET =
BINARYCBDROPGET =
BINARYCBPROPGET =
BINARYCBPROPSET =
BINARYCLONESET =
BINARYTOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; The code necessary to define an attribute as java.types.OTHER
UNKNOWNDEFINE = <CBIF iskey=true><CBINCLUDE ATTRSETS>\tpublic byte[] %column% =
null;%EOL%%EOL%</CBIF>
UNKNOWNGET =
UNKNOWNSET =
UNKNOWNCBDROPSET =
UNKNOWNCBDROPGET =
UNKNOWNCBPROPGET =
UNKNOWNCBPROPSET =
UNKNOWNCLONESET =
UNKNOWNTOSTRINGSET = <CBIF iskey=true>\t\t" %column%="+%column%+%EOL%</CBIF>
; If we have and ODBMS & CBProp, this adds in the clone code to clone the
; ODBMS specific information.
COLCLONESET =
; If we have and ODBMS & CBProp, this adds in the toString code to toString the
; ODBMS specific information.
COLTOSTRINGSET =
; This ends the toString method.
CLASSTOSTRING = \t\t""
; This tries to include all of the variables above the columns (such as ODBMS
; and CBProp variables).
CLASSVARS =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; getPropObjectData method.
LOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; setPropObjectData method.
LOIDPROPGET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; getPropObjectData method.
NAVLOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; setPropObjectData method.
NAVLOIDPROPGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDSET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
GETNAVLOID =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
SETNAVLOID =
; This is the method used to generate the clone() code - not used in EJBHOME.
CLONESTRING =
; This is the method used to generate the toString() code.
TOSTRINGSTRING =
HASHCODESTRING = \t/**%EOL%\
\t * Implement hashCode() to properly print contents%EOL%\
\t */%EOL%\
\tpublic int hashCode()%EOL%\
\t{%EOL%\
\t\t// Use java.lang.String.hashCode() method to calculate.%EOL%\
\t\treturn (this.getClass().getName()+%EOL%\
%tostringlist%).hashCode();%EOL%\
\t}%EOL%
; This is the method used to generate the CBDrop.setObjectData() code.
DROPSETSTRING =
; This is the method used to generate the CBDrop.getObjectData() code.
DROPGETSTRING =
; This is the method used to generate the CBProp.setPropObjectData() code.
PROPSETSTRING =
; This is the method used to generate the CBProp.getPropObjectData() code.
PROPGETSTRING =
; This comment is embedded in another comment within this file by using
; a <CBINCLUDE ODBMSCOMMENT>. It provides a great example of how to
; use the <CBINCLUDE directive>
ODBMSCOMMENT =
METHODNAV =
LINK1MDEFINE =
LINK1MGET =
LINK1MINSERT =
LINK1MUPDATE =
LINK1MDELETE =
METHODNAV =
LINK11DEFINE =
LINK11GET =
LINK11INSERT =
LINK11UPDATE =
LINK11DELETE =
1.1 contrib/cocobase/conf/JBOSS2EBSP.properties
Index: JBOSS2EBSP.properties
===================================================================
;
; This is the template file used to generate new java programming files
;
; The following variables are guaranteed to be provided by the CocoBase
; code generation runtime (note the variables are case sensitive!)
;
; HASPACKAGE - If we have a packagename prefix.
; packagename - The packagename (if present), such as com.thought
; Classname - The class name (such as Employee)
; Mapname - The Mapname name if different from Classname(such as Employee)
; supportCBDrop - If we wish to use the Properties based CBDrop interface.
; supportCBProp - If we wish to use the Properties based CBProp interface.
; supportODBMS - If we wish to generate code with ODBMS navigation.
; supportODBMSandCBProp - If we've selected both ODBMS and CBProp flags.
; EOL - The End of line character to be used when generating the java source
; code. This is OS dependent.
; supportTransObj - If we support using a Transaction object in the code
; generation for the 1-1, 1-M or M-M code.
; Column - The Java column name to use in constructin methods such as getPhone
; column - The Java column name (such as phone or empSkill);
; COLUMN - The Map's column name (such as "PHONE" or "EMP_SKILL")
; COUNT - current column count
; Targetclass - used in 1-1,1-M & M-M - The target class in the relationship
; Targetcolumn - used in 1-1,1-M & M-M - The target column in the relationship
; clonelist - The list of column attributes in the clone() method.
; tostringlist - The list of column attributes in the clone() method.
; dropsetlist - The code for the columns in the setObjectData() method.
; dropgetlist - The code for the columns in the getObjectData() method.
; propsetlist - The code for the columns in the setPropObjectData() method.
; propgetlist - The code for the columns in the getPropObjectData() method.
; If we have a package, then insert the packing name string.
PACKAGEINFO = <CBIF HASPACKAGE>package %packagename%;%EOL%\
%EOL%</CBIF>
PKGPREFIX = <CBIF HASPACKAGE>%packagename%.</CBIF>
PKGDIRPREFIX = <CBIF HASPACKAGE>%packagedirname%%fileseparator%</CBIF>
; The imports for each class generated.
IMPORTS = import java.rmi.RemoteException;%EOL%\
import javax.ejb.CreateException;%EOL%\
import java.util.Enumeration;%EOL%\
import java.util.Properties;%EOL%\
import java.util.Vector;%EOL%\
import javax.ejb.EntityBean;%EOL%\
import javax.ejb.EntityContext;%EOL%\
import javax.ejb.FinderException;%EOL%\
import javax.ejb.RemoveException;%EOL%\
import javax.naming.Context;%EOL%\
import javax.naming.InitialContext;%EOL%\
import thought.CocoBase.*;%EOL%\
import java.sql.*;%EOL%\
import java.math.*;%EOL%\
import java.util.*;%EOL%
; The Class string to start the new java class with.
CLASSBEGIN = <CBINCLUDE PACKAGEINFO>\
<CBINCLUDE IMPORTS>%EOL%\
/*%EOL%\
* EJB Entity Bean Implementation Generated by CocoAdmin from THOUGHT Inc.%EOL%\
*%EOL%\
* Copyright (c) 1995-1999 THOUGHT Inc. All Rights Reserved.%EOL%\
*%EOL%\
*/%EOL%\
%EOL%\
public class %Classname%%BEAN_NAME_SUFFIX% implements EntityBean %EOL%\
{%EOL%\
\t%EOL%\
\t/**%EOL%\
\t * Info for Database, Connections managed by the Container and OTM.%EOL%\
\t */%EOL%\
\tprotected CocoDriverInterface dataSource = null;%EOL%\
<CBIF supportTransObj>\t/**%EOL%\
\t * This CocoBase Transaction object is used in the bean exclusively%EOL%\
\t * to provide update buffering. It is generated only when%EOL%\
\t * transaction management is requested during code generation.%EOL%\
\t * The purpose of this object is to track changes to non-bean%EOL%\
\t * instances, and commit those changes in the ejbStore method.%EOL%\
\t * It leaves all 'actual' transaction issues to the Container as per%EOL%\
\t * the EJB specification via its 'commitconnection=false' flag.%EOL%\
\t */%EOL%\
\tprotected thought.CocoBase.Transaction cocoTxn = null;%EOL%</CBIF>\
\t/**%EOL%\
\t * This flag determines if we auto close the db connection after%EOL%\
\t * every database related call in the bean. This should typically%EOL%\
\t * be set to true since nay EJB servers require this for connection%EOL%\
\t * pooling and scaling management. If this is set to false, the%EOL%\
\t * connection will only be closed on ejbPassivate, so each bean %EOL%\
\t * will retain an open connection to the database while it is active.%EOL%\
\t */%EOL%\
\tprotected boolean autoCloseFlag = true;%EOL%\
\t%EOL%\
\t// Keep the reference on the EntityContext%EOL%\
\tprotected EntityContext entityContext;%EOL%\
\t%EOL%\
\t/**%EOL%\
\t * This method checks and closes the non-null dataSource - database%EOL%\
\t * connection and sets the dataSource variable to null.%EOL%\
\t */%EOL%\
\tprivate void closeDataSource() {%EOL%\
\t\ttry {%EOL%\
\t\t\t// Make sure connection isn't null before closing.%EOL%\
\t\t\tif(dataSource != null)%EOL%\
\t\t\t\tdataSource.close();%EOL%\
\t\t} catch (Exception e) {%EOL%\
\t\t}%EOL%\
\t\tdataSource = null;%EOL%\
\t}%EOL%\
\t%EOL%\
\t/**%EOL%\
\t * This method sets the attribute state as an instance of '%Classname%'%EOL%\
\t * @param %Classname% The new serialized state object attributes.%EOL%\
\t */%EOL%\
\tpublic void changeState(%Classname% stateInstance) throws RemoteException {%EOL%\
\t\ttry {%EOL%\
\t\t\t/*%EOL%\
\t\t\t * If our state object implements the CBProp Interface%EOL%\
\t\t\t * then we directly copy its attributes into the bean, %EOL%\
\t\t\t * otherwise we use a CocoProxyM class to extract attributes%EOL%\
\t\t\t * first, so they can easily be copied.%EOL%\
\t\t\t */%EOL%\
\t\t\tif(stateInstance instanceof thought.CocoBase.CBProp)%EOL%\
\t\t\t\t(new
CocoProxyM(this)).setPropObjectData(stateInstance.getPropObjectData().getFieldValues());%EOL%\
\t\t\telse%EOL%\
\t\t\t\t(new CocoProxyM(this)).setPropObjectData((new
CocoProxyM(stateInstance)).getPropObjectData().getFieldValues());%EOL%\
\t\t} catch (Exception e) {%EOL%\
\t\t\tthrow new RemoteException("Setting state failed with exception "+e);%EOL%\
\t\t}%EOL%\
\t}%EOL%\
\t%EOL%\
\t/**%EOL%\
\t * This method returns the attribute state as an instance%EOL%\
\t * of '%Classname%'.%EOL%\
\t * @return %Classname% The serialized state object attributes.%EOL%\
\t */%EOL%\
\tpublic %Classname% retrieveState() throws RemoteException {%EOL%\
\t\ttry {%EOL%\
\t\t\t%Classname% stateInstance = new %Classname%();%EOL%\
\t\t\t/*%EOL%\
\t\t\t * If our state object implements the CBProp Interface%EOL%\
\t\t\t * then we directly copy its attributes from the bean, %EOL%\
\t\t\t * otherwise we use a CocoProxyM class to populate attributes%EOL%\
\t\t\t * from the bean into the new instance.%EOL%\
\t\t\t */%EOL%\
\t\t\tif(stateInstance instanceof thought.CocoBase.CBProp)%EOL%\
\t\t\t\tstateInstance.setPropObjectData((new
CocoProxyM(this)).getPropObjectData().getFieldValues());%EOL%\
\t\t\telse%EOL%\
\t\t\t\t(new CocoProxyM(stateInstance)).setPropObjectData((new
CocoProxyM(this)).getPropObjectData().getFieldValues());%EOL%\
\t\t\treturn stateInstance;%EOL%\
\t\t} catch (Exception e) {%EOL%\
\t\t\tthrow new RemoteException("Setting state failed with exception "+e);%EOL%\
\t\t}%EOL%\
\t}%EOL%\
<CBSET firstattr=true><CBSET firstkeyattr=true><CBSET keylist=%EOL%><CBSET
haslinks=false>
CLASSEND = <CBIF firstkeyattr=true><CBEXCEPTION Key must be
specified!></CBIF>\t/*============ ejbCreate methods ===============*/%EOL%\
\t%EOL%\
\t/**%EOL%\
\t * There must be one ejbCreate() method per create() method on the %EOL%\
\t * Home interface and it must have the same parameter, return value%EOL%\
\t * signature.%EOL%\
\t *%EOL%\
\t * @param %EOL%\
\t *%EOL%\
\t * @return pk primary key%EOL%\
\t *%EOL%\
\t * @exception RemoteException If the instance could not perform the %EOL%\
\t *\t\t function requested by the create request. %EOL%\
\t */%EOL%\
\tpublic %Classname%%BEAN_PK_SUFFIX% ejbCreate(%persistattr%)%EOL%\
\t\tthrows RemoteException,CreateException {%EOL%\
\t%EOL%\
\t\t// Initialize object state values based on parameters passed in.%EOL%\
<CBIF haslinks=true>\t\tclearLinks();%EOL%</CBIF>\
\t\t// Call method to reset any bean related attributes.%EOL%\
\t\tresetCols();%EOL%\
%setattr%%EOL%\
\t\t// Create the primary key Object based on primary key attribute(s).%EOL%\
\t\t%Classname%%BEAN_PK_SUFFIX% pk = new %Classname%%BEAN_PK_SUFFIX%();%EOL%\
%pksetattr%%EOL%\
\t\t%EOL%\
\t\ttry {%EOL%\
\t\t\topenDataSource();%EOL%\
<CBIF supportTransObj>\t\t\tcocoTxn = new
thought.CocoBase.Transaction(dataSource);%EOL%\
\t\t\tProperties cocoTransProps = new Properties();%EOL%\
\t\t\tcocoTransProps.put("preserveCommit","true");%EOL%\
\t\t\tcocoTransProps.put("commitconnection","false");%EOL%\
\t\t\tcocoTransProps.put("throwExceptions","true");%EOL%\
\t\t\tcocoTxn.setProperties(cocoTransProps);%EOL%\
\t\t\tcocoTxn.begin();%EOL%</CBIF>\
\t\t\t// insert object into database.%EOL%\
\t\t\tdataSource.insert(new CocoProxyM(this)<CBIF
Mapname>,"%Mapname%"</CBIF><CBIFNOT Mapname>,"<CBINCLUDE
PKGPREFIX>%Classname%"</CBIFNOT>);%EOL%\
\t\t} catch (Exception e) {%EOL%\
\t\t\tthrow new java.rmi.RemoteException("Failed to create bean in database",
e);%EOL%\
\t\t}%EOL%\
\t\tfinally {%EOL%\
\t\t\tif(autoCloseFlag) {%EOL%\
\t\t\t\tcloseDataSource();%EOL%\
\t\t\t}%EOL%\
\t\t}%EOL%\
\t\tbeanModified = false;%EOL%\
\t\t%EOL%\
\t\t// Return the primary key which can be used to lookup our instance%EOL%\
\t\treturn pk;%EOL%\
\t}%EOL%\
\t%EOL%\
\t/**%EOL%\
\t * Each ejbCreate method should have a matching ejbPostCreate method even%EOL%\
\t * if the method doesn't implement any logic - as per the EJB spec.%EOL%\
\t */%EOL%\
\tpublic void ejbPostCreate(%persistattr%) %EOL%\
\t\tthrows RemoteException {%EOL%\
\t\t// Nothing to be done for this simple example.%EOL%\
\t}%EOL%\
\t%EOL%\
\t%EOL%\
\t%EOL%\
\t/*============ javax.ejb.EntityBean implementation ==========*/%EOL%\
\t%EOL%\
\t/** %EOL%\
\t * A server invokes this method when the instance is taken out of the %EOL%\
\t * pool of available instances to become associated with a specific %EOL%\
\t * EJB object. %EOL%\
\t * This method transitions the instance to the ready state. In the%EOL%\
\t * case of this example, we do not implement any logic for this method.%EOL%\
\t * %EOL%\
\t * This method executes in an unspecified transaction context. %EOL%\
\t *%EOL%\
\t * @exception RemoteException If the instance could not perform the %EOL%\
\t *\t\t function requested by the container because of a%EOL%\
\t *\t\t system-level error. %EOL%\
\t */%EOL%\
\tpublic void ejbActivate() throws RemoteException {%EOL%\
\t\t// Nothing to be done for this simple example%EOL%\
\t\t// Since data source is loaded on demand.%EOL%\
\t\t//openDataSource();%EOL%\
\t}%EOL%\
\t%EOL%\
\t/**%EOL%\
\t * A server invokes this method to instruct the instance to synchronize %EOL%\
\t * its data by loading it from the underlying database. %EOL%\
\t * This method always executes in the proper transaction context. %EOL%\
\t * %EOL%\
\t * @exception RemoteException If the instance could not perform the %EOL%\
\t *\t\t function requested by the container because of a system-level %EOL%\
\t *\t\t error. %EOL%\
\t *%EOL%\
\t */%EOL%\
\tpublic void ejbLoad() throws RemoteException {%EOL%\
\t%EOL%\
\t\ttry {%EOL%\
<CBIF haslinks=true>\t\t\tclearLinks();%EOL%</CBIF>\
\t\t\t// Call method to reset any bean related attributes.%EOL%\
\t\t\tresetCols();%EOL%\
\t\t\t// find account in DB%EOL%\
\t\t\t%Classname%%BEAN_PK_SUFFIX% pk = (%Classname%%BEAN_PK_SUFFIX%)
entityContext.getPrimaryKey();%EOL%\
\t\t\t//Try to retrieve EJB from Factory cache first.%EOL%\
\t\t\tif(EJBFactory.getEJBFromCache(pk, this, <CBIF Mapname>
"%Mapname%"</CBIF><CBIFNOT Mapname> "<CBINCLUDE PKGPREFIX>%Classname%"</CBIFNOT>,
false) != null) {%EOL%\
\t\t\t\tbeanModified = false;%EOL%\
\t\t\t\treturn; // Cache Load successful!%EOL%\
\t\t\t}%EOL%\
\t\t\topenDataSource();%EOL%\
<CBIF supportTransObj>\t\t\tcocoTxn = new
thought.CocoBase.Transaction(dataSource);%EOL%\
\t\t\tProperties cocoTransProps = new Properties();%EOL%\
\t\t\tcocoTransProps.put("preserveCommit","true");%EOL%\
\t\t\tcocoTransProps.put("commitconnection","false");%EOL%\
\t\t\tcocoTransProps.put("throwExceptions","true");%EOL%\
\t\t\tcocoTxn.setProperties(cocoTransProps);%EOL%\
\t\t\tcocoTxn.begin();%EOL%</CBIF>\
%psetattr%\
\t\t\t// EJBFactory understand to set this instance automatically.%EOL%\
\t\t\tdataSource.select(new CocoProxyM(pk, this)<CBIF Mapname>,
"%Mapname%"</CBIF><CBIFNOT Mapname>,"<CBINCLUDE
PKGPREFIX>%Classname%"</CBIFNOT>);%EOL%\
\t%EOL%\
\t\t} catch (Exception e) { %EOL%\
\t\t\tthrow new RemoteException("Failed to load bean from database", e);%EOL%\
\t\t} %EOL%\
\t\tfinally {%EOL%\
\t\t\tif(autoCloseFlag) {%EOL%\
\t\t\t\tcloseDataSource();%EOL%\
\t\t\t}%EOL%\
\t\t}%EOL%\
\t\tbeanModified = false;%EOL%\
\t}%EOL%\
\t%EOL%\
\t/**%EOL%\
\t * A container invokes this method on an instance before the instance %EOL%\
\t * becomes disassociated with a specific EJB object. After this %EOL%\
\t * method completes, the server will place the instance into the %EOL%\
\t * pool of available instances. %EOL%\
\t * In the case of this example, we do not implement any logic for this %EOL%\
\t * method.%EOL%\
\t * %EOL%\
\t * This method executes in an unspecified transaction context.%EOL%\
\t * %EOL%\
\t * @exception RemoteException If the instance could not perform the %EOL%\
\t *\t\t function requested by the container because of a system-level %EOL%\
\t *\t\t error. %EOL%\
\t */%EOL%\
\tpublic void ejbPassivate() throws RemoteException {%EOL%\
\t\t// We close our connection and reset our variables!.%EOL%\
\t\tcloseDataSource();%EOL%\
\t}%EOL%\
\t%EOL%\
\t/**%EOL%\
\t * Reset all of the local variables to ensure.%EOL%\
\t */%EOL%\
\tpublic void resetCols() {%EOL%\
%resetcols%\
\t}%EOL%\
\t%EOL%\
<CBIF haslinks=true>\t/**%EOL%\
\t * Clear all of the links.%EOL%\
\t */%EOL%\
\tpublic void clearLinks() {%EOL%\
%linkclears%\
\t}%EOL%</CBIF>\
\t%EOL%\
\t/**%EOL%\
\t * A container invokes this method before it removes the EJB object %EOL%\
\t * that is currently associated with the instance. This method is invoked %EOL%\
\t * when a client invokes a remove operation on the enterprise Bean's home %EOL%\
\t * interface or the EJB object's remote interface. This method transitions %EOL%\
\t * the instance from the ready state to the pool of available instances. %EOL%\
\t *%EOL%\
\t * This method is called in the transaction context of the remove operation.%EOL%\
\t *%EOL%\
\t * @exception RemoteException Thrown if the instance could not perform the%EOL%\
\t *\t\t function requested by the container because of a system-level %EOL%\
\t *\t\t error. %EOL%\
\t * @exception RemoveException The enterprise Bean was unable to%EOL%\
\t *\t\t destroy the database object data. %EOL%\
\t *%EOL%\
\t */%EOL%\
\tpublic void ejbRemove() throws RemoteException, RemoveException {%EOL%\
\t%EOL%\
\t\ttry {%EOL%\
\t\t\topenDataSource();%EOL%\
\t\t\t// find account in DB%EOL%\
\t\t\t%Classname%%BEAN_PK_SUFFIX% pk = (%Classname%%BEAN_PK_SUFFIX%)
entityContext.getPrimaryKey();%EOL%\
%psetattr%\
\t\t\tdataSource.delete(new CocoProxy(pk)<CBIF Mapname>,"%Mapname%"</CBIF><CBIFNOT
Mapname>,"<CBINCLUDE PKGPREFIX>%Classname%"</CBIFNOT>);%EOL%\
\t\t} catch (Exception e) {%EOL%\
\t\t\tthrow new java.rmi.RemoteException("Failed to delete bean from database",
e);%EOL%\
\t\t}%EOL%\
\t\tfinally {%EOL%\
\t\t\tif(autoCloseFlag) {%EOL%\
\t\t\t\tcloseDataSource();%EOL%\
\t\t\t}%EOL%\
\t\t}%EOL%\
\t}%EOL%\
\t%EOL%\
\t/**%EOL%\
\t * A container invokes this method to instruct the instance to synchronize %EOL%\
\t * its state by storing it to the underlying database. %EOL%\
\t * %EOL%\
\t * This method always executes in the proper transaction context. %EOL%\
\t * %EOL%\
\t * @exception: RemoteException Thrown if the instance could not perform %EOL%\
\t *\t\t the function requested by the container because of a %EOL%\
\t *\t\t system-level error. %EOL%\
\t */%EOL%\
\tpublic void ejbStore() throws RemoteException {%EOL%\
\t%EOL%\
\t\ttry {%EOL%\
\t\t\topenDataSource();%EOL%\
\t\t\t%Classname%%BEAN_PK_SUFFIX% pk = (%Classname%%BEAN_PK_SUFFIX%)
entityContext.getPrimaryKey();%EOL%\
\t\t\t// This uses the primary key object as the where condition of%EOL%\
\t\t\t// the Object, so it will automatically update the object based%EOL%\
\t\t\t// on that key. Note that when using proxies, the variable%EOL%\
\t\t\t// names MUST match the CocoBase Field names defined in the map.%EOL%\
\t\t\t// For performance reason we don't execute updates if unmodified%EOL%\
\t\t\t// We also tell CocoProxyM to pass null values into update statement.%EOL%\
\t\t\tif(beanModified)%EOL%\
\t\t\t\tdataSource.update(new CocoProxy(pk), new CocoProxyM(this,true)<CBIF
Mapname>,"%Mapname%"</CBIF><CBIFNOT Mapname>,"<CBINCLUDE
PKGPREFIX>%Classname%"</CBIFNOT>);%EOL%\
\t\t\tbeanModified = false;%EOL%\
<CBIF supportTransObj=true>\t\t\t// Commit Objects managed by the Coco
Transaction%EOL%\
\t\t\t// PreserveCommit will remember the managed Objects.%EOL%\
\t\t\tif(cocoTxn != null) {%EOL%\
\t\t\t\tcocoTxn.setDatabase(dataSource);%EOL%\
\t\t\t\tcocoTxn.commit();%EOL%\
\t\t\t}%EOL%</CBIF>\
\t\t} catch (Exception e) {%EOL%\
\t\t\tthrow new java.rmi.RemoteException("Failed to store bean to database",
e);%EOL%\
\t\t}%EOL%\
\t\tfinally {%EOL%\
\t\t\tif(autoCloseFlag) {%EOL%\
\t\t\t\tcloseDataSource();%EOL%\
\t\t\t}%EOL%\
\t\t}%EOL%\
\t}%EOL%\
\t %EOL%\
\t%EOL%\
\t/**%EOL%\
\t * Sets the associated entity context. The container invokes this method %EOL%\
\t * on an instance after the instance has been created. %EOL%\
\t * %EOL%\
\t * This method is called in an unspecified transaction context. %EOL%\
\t * %EOL%\
\t * @param ctx - An EntityContext interface for the instance. The instance %EOL%\
\t *\t\t should store the reference to the context in an %EOL%\
\t *\t\t instance variable. %EOL%\
\t * @exception RemoteException Thrown if the instance could not perform %EOL%\
\t *\t\tthe function requested by the container because of a %EOL%\
\t *\t\tsystem-level error.%EOL%\
\t */%EOL%\
\tpublic void setEntityContext(EntityContext ctx) throws RemoteException { %EOL%\
\t%EOL%\
\t\t// Keep the entity context in object%EOL%\
\t\tentityContext = ctx;%EOL%\
\t}%EOL%\
\t%EOL%\
\tContext initialContext = null;%EOL%\
\tCocoEJBHomeFactoryInterface homeFactoryInterface = null;%EOL%\
\tboolean beanModified = false;%EOL%\
\t/**%EOL%\
\t * Establishes a connection to our datasource if one doesn't exist,%EOL%\
\t * otherwise a new instance is created!%EOL%\
\t * %EOL%\
\t * @exception RemoteException Thrown if the instance could not perform %EOL%\
\t *\t\tthe function requested by the container because of a %EOL%\
\t *\t\tsystem-level error.%EOL%\
\t */%EOL%\
\tprotected void openDataSource() throws RemoteException{%EOL%\
\t%EOL%\
\t\t// First time only: lookup for Datasource in JNDI.%EOL%\
\t\tif (dataSource == null) {%EOL%\
\t\t\tString dataSourceName = null;%EOL%\
\t\t\tString dataSourceDriver = null;%EOL%\
\t\t\tString dataSourceUrl = null;%EOL%\
\t\t\tString dataSourceUser = null;%EOL%\
\t\t\tString dataSourcePassword = null;%EOL%\
\t\t\tString autoTransactions = null;%EOL%\
\t\t\tString homeFactoryName = null;%EOL%\
\t\t\tString useFetchCaching = null;%EOL%\
\t\t\tString autoClose = null;%EOL%\
\t\t\tString debug = null;%EOL%\
\t\t\t// We don't have a transaction context yet, so we'll use our%EOL%\
\t\t\t// resource bundle <CBINCLUDE PKGPREFIX>%Classname%Entity.properties for this
info!%EOL%\
\t\t\t// We'll check the Environment for these properties!%EOL%\
\t\t\tContext envContext = null;%EOL%\
\t\t\ttry {%EOL%\
\t\t\t\tinitialContext = new InitialContext();%EOL%\
\t\t\t} catch (Exception re) {%EOL%\
\t\t\t\tthrow new RemoteException("Cannot get InitialContext ", re);%EOL%\
\t\t\t}%EOL%\
\t\t\ttry {%EOL%\
\t\t\t\tenvContext = (Context)initialContext.lookup("java:comp/env");%EOL%\
\t\t\t} catch (Exception re) {%EOL%\
\t\t\t\tthrow new RemoteException("Cannot get environment context", re);%EOL%\
\t\t\t}%EOL%\
\t\t%EOL%\
\t\t\ttry {%EOL%\
\t\t\t\tdataSourceName = (String)envContext.lookup("cocosource.name");%EOL%\
\t\t\t\tdataSourceDriver = (String)envContext.lookup("cocosource.driver");%EOL%\
\t\t\t\tdataSourceUrl = (String)envContext.lookup("cocosource.url");%EOL%\
\t\t\t\tdataSourceUser = (String)envContext.lookup("cocosource.user");%EOL%\
\t\t\t\tdataSourcePassword = (String)envContext.lookup("cocosource.password"); %EOL%\
\t\t\t\tautoTransactions = (String)envContext.lookup("cocosource.autotrans"); %EOL%\
\t\t\t\tautoClose = (String)envContext.lookup("cocosource.autoclose"); %EOL%\
\t\t\t\thomeFactoryName = (String)envContext.lookup("cocosource.homefactory"); %EOL%\
\t\t\t\tuseFetchCaching = (String)envContext.lookup("cocosource.cachefactory");
%EOL%\
\t\t\t\tdebug = (String)envContext.lookup("cocosource.debug"); %EOL%\
\t\t\t} catch (Exception re) {%EOL%\
\t\t\t\tthrow new RemoteException("Cannot get environment variable from context",
re);%EOL%\
\t\t\t}%EOL%\
\t\t\t// We'll see if attributes not properly loaded in the Environment%EOL%\
\t\t\t// and if not we'll attempt to load them from the properties file!%EOL%\
\t\t\tif(entityContext == null || dataSourceName == null) {%EOL%\
\t\t\t\ttry {%EOL%\
\t\t\t\t\tinitialContext = new InitialContext();%EOL%\
\t\t\t\t} catch (Exception e) {%EOL%\
\t\t\t\t\tthrow new RemoteException("Cannot get InitialContext ", e);%EOL%\
\t\t\t\t}%EOL%\
\t\t\t\tjava.util.ResourceBundle resourceMap =
java.util.ResourceBundle.getBundle("<CBINCLUDE PKGPREFIX>%Classname%Entity");%EOL%\
\t\t\t\tdataSourceName = resourceMap.getString("cocosource.name");%EOL%\
\t\t\t\tdataSourceDriver = resourceMap.getString("cocosource.driver");%EOL%\
\t\t\t\tdataSourceUrl = resourceMap.getString("cocosource.url");%EOL%\
\t\t\t\tdataSourceUser = resourceMap.getString("cocosource.user");%EOL%\
\t\t\t\tdataSourcePassword = resourceMap.getString("cocosource.password"); %EOL%\
\t\t\t\tautoTransactions = resourceMap.getString("cocosource.autotrans"); %EOL%\
\t\t\t\tautoClose = resourceMap.getString("cocosource.autoclose"); %EOL%\
\t\t\t\thomeFactoryName = resourceMap.getString("cocosource.homefactory"); %EOL%\
\t\t\t\tuseFetchCaching = resourceMap.getString("cocosource.cachefactory"); %EOL%\
\t\t\t\tdebug = resourceMap.getString("cocosource.debug"); %EOL%\
\t\t\t}%EOL%\
\t\t\ttry {%EOL%\
\t\t\t\tdataSource = CocoDriver.getCocoDriver(%EOL%\
\t\t\t\t\tdataSourceName,dataSourceDriver,dataSourceUrl,%EOL%\
\t\t\t\t\tdataSourceUser,dataSourcePassword);%EOL%\
\t\t\t\tif(dataSource instanceof thought.CocoBase.CocoPowder) {%EOL%\
\t\t\t\t\tthought.CocoBase.CocoPowder.setSilentFlag(true);%EOL%\
\t\t\t\t}%EOL%\
\t\t\t\tdataSource.setThrowExceptions(true);%EOL%\
\t\t\t\tif(debug != null && debug.equalsIgnoreCase("true"))%EOL%\
\t\t\t\t\tdataSource.setDebug(true);%EOL%\
\t\t\t\telse%EOL%\
\t\t\t\t\tdataSource.setDebug(false);%EOL%\
\t\t\t\tdataSource.connect();%EOL%\
\t\t\t\tEJBFactory ejbFactory = new EJBFactory();%EOL%\
\t\t\t\tif(useFetchCaching != null && useFetchCaching.equalsIgnoreCase("true"))%EOL%\
\t\t\t\t\tejbFactory.setUseFetchCaching(true);%EOL%\
\t\t\t\tejbFactory.setDebug(false);%EOL%\
\t\t\t\t((CocoFactoryDefineInterface)dataSource).setFactory(ejbFactory);%EOL%\
\t\t\t\t// Create a home factory in case we want to link beans.%EOL%\
\t\t\t\tClass cocoFactory = Class.forName(homeFactoryName);%EOL%\
\t\t\t\thomeFactoryInterface =
(CocoEJBHomeFactoryInterface)cocoFactory.newInstance();%EOL%\
\t\t\t\tif(autoClose != null && autoClose.equalsIgnoreCase("false"))%EOL%\
\t\t\t\t\tautoCloseFlag = false;%EOL%\
\t\t\t\telse%EOL%\
\t\t\t\t\tautoCloseFlag = true; // default to autoclose=true if undefined%EOL%\
\t\t\t\tif(autoTransactions != null && autoTransactions.equalsIgnoreCase("true"))
{%EOL%\
\t\t\t\t\tdataSource.setAutoCommit(true);%EOL%\
\t\t\t\t\tSystem.out.println("Transactions disabled - presuming non-OTS compatible
source!");%EOL%\
\t\t\t\t}%EOL%\
\t\t\t} catch (Exception e) {%EOL%\
\t\t\t\tthrow new RemoteException("cannot lookup " + dataSourceName, e);%EOL%\
\t\t\t}%EOL%\
\t\t}%EOL%\
\t}%EOL%\
\t%EOL%\
\t%EOL%\
\t/**%EOL%\
\t * Unsets the associated entity context. The container calls this method %EOL%\
\t * before removing the instance. This is the last method that the server %EOL%\
\t * invokes on the instance. The Java garbage collector will eventually %EOL%\
\t * invoke the finalize() method on the instance. %EOL%\
\t *%EOL%\
\t * This method is called in an unspecified transaction context. %EOL%\
\t * %EOL%\
\t * @exception RemoteException Thrown if the instance could not perform %EOL%\
\t *\t\t the function requested by the container because of a %EOL%\
\t *\t\t system-level error. %EOL%\
\t */%EOL%\
\tpublic void unsetEntityContext() {%EOL%\
\t\tentityContext = null;%EOL%\
\t}%EOL%\
\t%EOL%\
\t%EOL%\
\t/*================ ejbFind methods ================*/%EOL%\
\t%EOL%\
\t/**%EOL%\
\t * There must be one ejbFind method per find method on the Home interface, %EOL%\
\t * and with the same signature.%EOL%\
\t * ejbFindByPrimaryKey is the only mandatory ejbFind method.%EOL%\
\t *%EOL%\
\t * @param pk The primary key%EOL%\
\t *%EOL%\
\t * @return pk The primary key%EOL%\
\t *%EOL%\
\t * @exception FinderException - Failed to execute the query.%EOL%\
\t */%EOL%\
\tpublic %Classname%%BEAN_PK_SUFFIX% ejbFindByPrimaryKey(%Classname%%BEAN_PK_SUFFIX%
pk) %EOL%\
\t\tthrows RemoteException, FinderException {%EOL%\
\t%EOL%\
\t\ttry {%EOL%\
\t\t\t// initialize connection in case we haven't done so for this%EOL%\
\t\t\t// bean type!%EOL%\
\t\t\t//Try to see if EJB key is in Factory cache first.%EOL%\
\t\t\tif(EJBFactory.isEJBInCache(pk, <CBIF Mapname>"%Mapname%"</CBIF><CBIFNOT
Mapname>"<CBINCLUDE PKGPREFIX>%Classname%"</CBIFNOT>, false)) {%EOL%\
\t\t\t\treturn pk; // Key is in cache & already found!%EOL%\
\t\t\t}%EOL%\
\t\t\topenDataSource();%EOL%\
\t\t\t// EJBFactory understands how to handle CocoProxy Objects,%EOL%\
\t\t\t// so adata should = 'pk' values, not null if lookup has succeeded.%EOL%\
\t\t\tObject adata = dataSource.select(new CocoProxy(pk)<CBIF
Mapname>,"%Mapname%"</CBIF><CBIFNOT Mapname>,"<CBINCLUDE
PKGPREFIX>%Classname%"</CBIFNOT>);%EOL%\
\t\t\tif(adata == null)%EOL%\
\t\t\t\tthrow new javax.ejb.FinderException("Object "+%prtattr%+" not found!");%EOL%\
\t\t} catch (Exception e) {%EOL%\
\t\t\tthrow new javax.ejb.FinderException("Failed to executeQuery " +e);%EOL%\
\t\t}%EOL%\
\t\tfinally {%EOL%\
\t\t\tif(autoCloseFlag) {%EOL%\
\t\t\t\tcloseDataSource();%EOL%\
\t\t\t}%EOL%\
\t\t}%EOL%\
\t%EOL%\
\t\t// return primary key%EOL%\
\t\treturn pk;%EOL%\
\t}%EOL%\
\t%EOL%\
\t/**%EOL%\
\t * Creates an enumeration of primary keys for all
%Classname%%BEAN_INTERFACE_SUFFIX% beans.%EOL%\
\t * This method uses a Query by example model consistent with CocoBase%EOL%\
\t * querying in general to produce SQL based on the pkLookup attributes%EOL%\
\t * Please consult the CocoBase programmers Guide on QBE querying for %EOL%\
\t * more technical details.%EOL%\
\t *%EOL%\
\t * @param %Classname% An instance of the related state object to use%EOL%\
\t * in a Query By Example to find related primary keys.%EOL%\
\t *%EOL%\
\t * @return Enumeration The primary keys which match the lookup.%EOL%\
\t *%EOL%\
\t * @exception FinderException - Failed to execute the query.%EOL%\
\t */%EOL%\
\tpublic Enumeration ejbFindBy%Classname%(%Classname% pkLookup) %EOL%\
\t\tthrows RemoteException, FinderException%EOL%\
\t{%EOL%\
\t\tVector pkv = null;%EOL%\
\t\ttry {%EOL%\
\t\t\t// initialize connection in case we haven't done so for this%EOL%\
\t\t\t// bean type!%EOL%\
\t\t\topenDataSource();%EOL%\
\t\t\tpkv = dataSource.selectAll(pkLookup<CBIF Mapname>,"%Mapname%"</CBIF><CBIFNOT
Mapname>,"<CBINCLUDE PKGPREFIX>%Classname%"</CBIFNOT>);%EOL%\
\t\t\tif (pkv == null || pkv.size() == 0) {%EOL%\
\t\t\t\tthrow new javax.ejb.FinderException("Table Empty.");%EOL%\
\t\t\t}%EOL%\
\t\t\t%EOL%\
\t\t} catch (Exception e) {%EOL%\
\t\t\te.printStackTrace();%EOL%\
\t\t\tthrow new javax.ejb.FinderException("Failed to executeQuery " +e);%EOL%\
\t\t}%EOL%\
\t\tfinally {%EOL%\
\t\t\tif(autoCloseFlag) {%EOL%\
\t\t\t\tcloseDataSource();%EOL%\
\t\t\t}%EOL%\
\t\t}%EOL%\
\t\t// Extract primary keys from CocoProxy return objects%EOL%\
\t\tVector pkfs = new Vector();%EOL%\
\t\tfor(int i=0; i<pkv.size();i++) {%EOL%\
\t\t\t%Classname% pks = (%Classname%)pkv.elementAt(i);%EOL%\
\t\t\t%Classname%%BEAN_PK_SUFFIX% pk = new %Classname%%BEAN_PK_SUFFIX%();%EOL%\
%pksetstate%%EOL%\
\t\t\tpkfs.addElement(pk);%EOL%\
\t\t}%EOL%\
\t%EOL%\
\t\t// return primary keys%EOL%\
\t\treturn pkfs.elements();%EOL%\
\t}%EOL%\
\t%EOL%\
\t/**%EOL%\
\t * Creates an enumeration of primary keys for all accounts%EOL%\
\t *%EOL%\
\t * @return pkv The primary keys%EOL%\
\t *%EOL%\
\t * @exception FinderException - Failed to execute the query.%EOL%\
\t */%EOL%\
\tpublic Enumeration ejbFindAll%Classname%es() %EOL%\
\t\tthrows RemoteException, FinderException%EOL%\
\t{%EOL%\
\t\tVector pkv = null;%EOL%\
\t\ttry {%EOL%\
\t\t\t// initialize connection in case we haven't done so for this%EOL%\
\t\t\t// bean type!%EOL%\
\t\t\topenDataSource();%EOL%\
\t\t\t%Classname%%BEAN_PK_SUFFIX% pkLookup = new %Classname%%BEAN_PK_SUFFIX%();%EOL%\
\t\t\tpkv = dataSource.selectAll(new CocoProxy(pkLookup)<CBIF
Mapname>,"%Mapname%"</CBIF><CBIFNOT Mapname>,"<CBINCLUDE
PKGPREFIX>%Classname%"</CBIFNOT>);%EOL%\
\t\t\tif (pkv == null || pkv.size() == 0) {%EOL%\
\t\t\t\tthrow new javax.ejb.FinderException("Table Empty.");%EOL%\
\t\t\t}%EOL%\
\t\t\t%EOL%\
\t\t} catch (Exception e) {%EOL%\
\t\t\te.printStackTrace();%EOL%\
\t\t\tthrow new javax.ejb.FinderException("Failed to executeQuery " +e);%EOL%\
\t\t}%EOL%\
\t\tfinally {%EOL%\
\t\t\tif(autoCloseFlag) {%EOL%\
\t\t\t\tcloseDataSource();%EOL%\
\t\t\t}%EOL%\
\t\t}%EOL%\
\t\t// Extract primary keys from CocoProxy return objects%EOL%\
\t\tVector pkfs = new Vector();%EOL%\
\t\tfor(int i=0; i<pkv.size();i++) {%EOL%\
\t\t\tCocoProxy cproxy = (CocoProxy)pkv.elementAt(i);%EOL%\
\t\t\tpkfs.addElement(cproxy.getObject());%EOL%\
\t\t}%EOL%\
\t%EOL%\
\t\t// return primary keys%EOL%\
\t\treturn pkfs.elements();%EOL%\
\t}%EOL%\
\t%EOL%\
\t%EOL%
; The comment used for each setAttr() method
SETCOMMENT = \t/**%EOL%\
\t * Set the attribute %column% value.%EOL%\
\t * @param n_%column% the database attribute value to set the variable to.%EOL%\
\t */
; The comment used for each getAttr() method
GETCOMMENT = \t/**%EOL%\
\t * Get the attribute %column% value.%EOL%\
\t * @return %column% Returns the database attribute value is current set to.%EOL%\
\t */
; To appear just before the list of instance variables.
CLASSVARCOMMENT =
ATTRDEF1 = <CBIF firstattr=false><CBAPPEND persistattr+, ><CBAPPEND paramattr+,
></CBIF>
ATTRDEF2 = <CBIF firstattr=true><CBSET firstattr=false></CBIF>
ATTRDEF3 = <CBIF iskey=true><CBINCLUDE ATTRKEY></CBIF>
ATTRDEF = <CBINCLUDE ATTRDEF1><CBINCLUDE ATTRDEF2><CBINCLUDE ATTRDEF3>
ATTRKEY1 = <CBIF firstkeyattr=false><CBAPPEND prtattr++><CBAPPEND pkattr+, ></CBIF>
ATTRKEY2 = <CBIF firstkeyattr=true><CBSET firstkeyattr=false></CBIF>
ATTRKEY = <CBIF iskey=true><CBINCLUDE ATTRKEY1><CBINCLUDE ATTRKEY2></CBIF>
ATTRSETS = <CBINCLUDE ATTRDEF><CBAPPEND paramattr+t_%column%><CBIF
iskey=true><CBAPPEND pkattr+pk.%column%></CBIF><CBIF iskey=true><CBAPPEND
prtattr+pk.%column%></CBIF><CBIF iskey=true><CBAPPEND
psetattr+\t\t\t%column%=pk.%column%;%EOL%></CBIF><CBIF iskey=true><CBAPPEND
pksetattr+\t\t\tpk.%column% = %column%;%EOL%><CBAPPEND pksetstate+\t\t\tpk.%column% =
pks.get%Column%();%EOL%></CBIF><CBAPPEND setattr+\t\t\t%column% =
t_%column%;%EOL%><CBAPPEND resetcols+\t\t%column% = null;%EOL%>
; The code necessary to define an attribute as java.types.BIT
BITDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+Boolean t_%column%>\tBoolean
%column% = null; // Persistable attribute.%EOL%
BITGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic Boolean get%Column%()%EOL%\
\t{%EOL%\
\t\t\treturn %column%;%EOL%\
\t}%EOL%
BITSET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(Boolean n_%column%)%EOL%\
\t{%EOL%\
\t\t%column% = n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
; Use the current position for this element fetch. %COUNT% is the reserved
; variable to specify the current location.
BITCBDROPSET = \t\t%column% = ((Boolean)resultSet.elementAt(%COUNT%));%EOL%
BITCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
; Note the use of uppercase to denote the Property value.
BITCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = ((Boolean)resultSet.get("COLUMN"));%EOL%
BITCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
BITCLONESET = \t\tretObject.set%Column%(get%Column%());%EOL%
BITTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.CHAR or java.types.VARCHAR
CHARDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+String t_%column%>\tString
%column% = null; // Persistable attribute.%EOL%
CHARGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic String get%Column%()%EOL%\
\t{%EOL%\
\t\treturn %column%;%EOL%\
\t}%EOL%
CHARSET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(String n_%column%)%EOL%\
\t{%EOL%\
\t\t%column%= n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
CHARCBDROPSET = \t\t%column% = (String)resultSet.elementAt(%COUNT%);%EOL%
CHARCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
CHARCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (String)resultSet.get("%COLUMN%");%EOL%
CHARCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
CHARCLONESET = \t\tretObject.set%Column%(%column%);%EOL%
CHARTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.DECIMAL or
java.types.NUMERIC
BIGDECIMALDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+BigDecimal
t_%column%>\tBigDecimal %column% = null; // Persistable attribute.%EOL%
BIGDECIMALGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic BigDecimal get%Column%()%EOL%\
\t{%EOL%\
\t\treturn %column%;%EOL%\
\t}%EOL%
BIGDECIMALSET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(BigDecimal n_%column%)%EOL%\
\t{%EOL%\
\t\t%column%= n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
BIGDECIMALCBDROPSET = \t\t%column% = (BigDecimal)resultSet.elementAt(%COUNT%);%EOL%
BIGDECIMALCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
BIGDECIMALCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (BigDecimal)resultSet.get("%COLUMN%");%EOL%
BIGDECIMALCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
BIGDECIMALCLONESET = \t\tretObject.set%Column%(%column%);%EOL%
BIGDECIMALTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.TINYINT
TINYINTDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+Short t_%column%>\tShort
%column% = null; // Persistable attribute.%EOL%
TINYINTGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic Short get%Column%()%EOL%\
\t{%EOL%\
\t\t\treturn %column%;%EOL%\
\t}%EOL%
TINYINTSET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(Short n_%column%)%EOL%\
\t{%EOL%\
\t\t%column%= n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
TINYINTCBDROPSET = \t\t%column% = ((Short)resultSet.elementAt(%COUNT%));%EOL%
TINYINTCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
TINYINTCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = ((Short)resultSet.get("%COLUMN%"));%EOL%
TINYINTCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
TINYINTCLONESET = \t\tretObject.set%Column%(get%Column%());%EOL%
TINYINTTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.SMALLINT
SMALLINTDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+Integer
t_%column%>\t\tInteger %column% = null; // Persistable attribute.%EOL%
SMALLINTGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic Integer get%Column%()%EOL%\
\t{%EOL%\
\t\t\treturn %column%;%EOL%\
\t}%EOL%
SMALLINTSET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(Integer n_%column%)%EOL%\
\t{%EOL%\
\t\t%column% = n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
SMALLINTCBDROPSET = \t\t%column% = ((Integer)resultSet.elementAt(%COUNT%));%EOL%
SMALLINTCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
SMALLINTCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
SMALLINTCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = ((Integer)resultSet.get("%COLUMN%"));%EOL%
SMALLINTCLONESET = \t\tretObject.set%Column%(get%Column%());%EOL%
SMALLINTTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.INTEGER
INTEGERDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+Integer
t_%column%>\tInteger %column% = null; // Persistable attribute.%EOL%
INTEGERGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic Integer get%Column%()%EOL%\
\t{%EOL%\
\t\t\treturn %column%;%EOL%\
\t}%EOL%
INTEGERSET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(Integer n_%column%)%EOL%\
\t{%EOL%\
\t\t%column%= n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
INTEGERCBDROPSET = \t\t%column% = ((Integer)resultSet.elementAt(%COUNT%));%EOL%
INTEGERCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
INTEGERCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
INTEGERCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = ((Integer)resultSet.get("%COLUMN%"));%EOL%
INTEGERCLONESET = \t\tretObject.set%Column%(get%Column%());%EOL%
INTEGERTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.BIGINT
BIGINTDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+Long t_%column%>\tLong
%column% = null; // Persistable attribute.%EOL%
BIGINTGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic Long get%Column%()%EOL%\
\t{%EOL%\
\t\t\treturn %column%;%EOL%\
\t}%EOL%
BIGINTSET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(Long n_%column%)%EOL%\
\t{%EOL%\
\t\t%column%= n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
BIGINTCBDROPSET = \t\t%column% = ((Long)resultSet.elementAt(%COUNT%));%EOL%
BIGINTCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
BIGINTCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
BIGINTCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = ((Long)resultSet.get("%COLUMN%"));%EOL%
BIGINTCLONESET = \t\tretObject.set%Column%(get%Column%());%EOL%
BIGINTTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.TIMESTAMP
TIMESTAMPDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+Timestamp
t_%column%>\tTimestamp %column% = null; // Persistable attribute.%EOL%
TIMESTAMPGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic Timestamp get%Column%()%EOL%\
\t{%EOL%\
\t\treturn %column%;%EOL%\
\t}%EOL%
TIMESTAMPSET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(Timestamp n_%column%)%EOL%\
\t{%EOL%\
\t\t%column%= n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
TIMESTAMPCBDROPSET = \t\t%column% = (Timestamp)resultSet.elementAt(%COUNT%);%EOL%
TIMESTAMPCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
TIMESTAMPCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
TIMESTAMPCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (Timestamp)resultSet.get("%COLUMN%");%EOL%
TIMESTAMPCLONESET = \t\tretObject.set%Column%(%column%);%EOL%
TIMESTAMPTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.TIME
TIMEDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+Time t_%column%>\tTime
%column% = null; // Persistable attribute.%EOL%
TIMEGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic Time get%Column%()%EOL%\
\t{%EOL%\
\t\treturn %column%;%EOL%\
\t}%EOL%
TIMESET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(Time n_%column%)%EOL%\
\t{%EOL%\
\t\t%column%= n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
TIMECBDROPSET = \t\t%column% = (Time)resultSet.elementAt(%COUNT%);%EOL%
TIMECBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
TIMECBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
TIMECBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (Time)resultSet.get("%COLUMN%");%EOL%
TIMECLONESET = \t\tretObject.set%Column%(%column%);%EOL%
TIMETOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.REAL
REALDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+Float t_%column%>\tFloat
%column% = null; // Persistable attribute.%EOL%
REALGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic Float get%Column%()%EOL%\
\t{%EOL%\
\t\t\treturn %column%;%EOL%\
\t}%EOL%
REALSET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(Float n_%column%)%EOL%\
\t{%EOL%\
\t\t%column%= n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
REALCBDROPSET = \t\t%column% = ((Float)resultSet.elementAt(%COUNT%));%EOL%
REALCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
REALCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
REALCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = ((Float)resultSet.get("%COLUMN%"));%EOL%
REALCLONESET = \t\tretObject.set%Column%(get%Column%());%EOL%
REALTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.FLOAT
FLOATDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+Double t_%column%>\tDouble
%column% = null; // Persistable attribute.%EOL%
FLOATGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic Double get%Column%()%EOL%\
\t{%EOL%\
\t\t\treturn %column%;%EOL%\
\t}%EOL%
FLOATSET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(Double n_%column%)%EOL%\
\t{%EOL%\
\t\t%column%= n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
FLOATCBDROPSET = \t\t%column% = ((Double)resultSet.elementAt(%COUNT%));%EOL%
FLOATCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
FLOATCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
FLOATCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = ((Double)resultSet.get("%COLUMN%"));%EOL%
FLOATCLONESET = \t\tretObject.set%Column%(get%Column%());%EOL%
FLOATTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.DOUBLE
DOUBLEDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+Double t_%column%>\tDouble
%column% = null; // Persistable attribute.%EOL%
DOUBLEGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic Double get%Column%()%EOL%\
\t{%EOL%\
\t\t\treturn %column%;%EOL%\
\t}%EOL%
DOUBLESET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(Double n_%column%)%EOL%\
\t{%EOL%\
\t\t%column%= n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
DOUBLECBDROPSET = \t\t%column% = ((Double)resultSet.elementAt(%COUNT%));%EOL%
DOUBLECBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
DOUBLECBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
DOUBLECBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = ((Double)resultSet.get("%COLUMN%"));%EOL%
DOUBLECLONESET = \t\tretObject.set%Column%(get%Column%());%EOL%
DOUBLETOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.VARBINARY
VARBINARYDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+byte[]
t_%column%>\tbyte[] %column% = null; // Persistable attribute.%EOL%
VARBINARYGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic byte[] get%Column%()%EOL%\
\t{%EOL%\
\t\treturn %column%;%EOL%\
\t}%EOL%
VARBINARYSET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(byte[] n_%column%)%EOL%\
\t{%EOL%\
\t\t%column%= n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
VARBINARYCBDROPSET = \t\t%column% = (byte[])resultSet.elementAt(%COUNT%);%EOL%
VARBINARYCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
VARBINARYCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
VARBINARYCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (byte[])resultSet.get("%COLUMN%");%EOL%
VARBINARYCLONESET = \t\tretObject.set%Column%(%column%);%EOL%
VARBINARYTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.LONGVARBINARY
LONGVARBINARYDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+byte[]
t_%column%>\tbyte[] %column% = null; // Persistable attribute.%EOL%
LONGVARBINARYGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic byte[] get%Column%()%EOL%\
\t{%EOL%\
\t\treturn %column%;%EOL%\
\t}%EOL%
LONGVARBINARYSET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(byte[] n_%column%)%EOL%\
\t{%EOL%\
\t\t%column%= n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
LONGVARBINARYCBDROPSET = \t\t%column% = (byte[])resultSet.elementAt(%COUNT%);%EOL%
LONGVARBINARYCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
LONGVARBINARYCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
LONGVARBINARYCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (byte[])resultSet.get("%COLUMN%");%EOL%
LONGVARBINARYCLONESET = \t\tretObject.set%Column%(%column%);%EOL%
LONGVARBINARYTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.LONGVARCHAR
LONGVARCHARDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+String
t_%column%>\tString %column% = null; // Persistable attribute.%EOL%
LONGVARCHARGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic String get%Column%()%EOL%\
\t{%EOL%\
\t\treturn %column%;%EOL%\
\t}%EOL%
LONGVARCHARSET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(String n_%column%)%EOL%\
\t{%EOL%\
\t\t%column%= n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
LONGVARCHARCBDROPSET = \t\t%column% = (String)resultSet.elementAt(%COUNT%);%EOL%
LONGVARCHARCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
LONGVARCHARCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
LONGVARCHARCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (String)resultSet.get("%COLUMN%");%EOL%
LONGVARCHARCLONESET = \t\tretObject.set%Column%(%column%);%EOL%
LONGVARCHARTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.DATE
DATEDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+java.sql.Date
t_%column%>\tjava.sql.Date %column% = null; // Persistable attribute.%EOL%
DATEGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic java.sql.Date get%Column%()%EOL%\
\t{%EOL%\
\t\treturn %column%;%EOL%\
\t}%EOL%
DATESET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(java.sql.Date n_%column%)%EOL%\
\t{%EOL%\
\t\t%column%= n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
DATECBDROPSET = \t\t%column% = (java.sql.Date)resultSet.elementAt(%COUNT%);%EOL%
DATECBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
DATECBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
DATECBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (java.sql.Date)resultSet.get("%COLUMN%");%EOL%
DATECLONESET = \t\tretObject.set%Column%(%column%);%EOL%
DATETOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.BINARY
BINARYDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+byte[] t_%column%>\tbyte[]
%column% = null; // Persistable attribute.%EOL%
BINARYGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic byte[] get%Column%()%EOL%\
\t{%EOL%\
\t\treturn %column%;%EOL%\
\t}%EOL%
BINARYSET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(byte[] n_%column%)%EOL%\
\t{%EOL%\
\t\t%column%= n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
BINARYCBDROPSET = \t\t%column% = (byte[])resultSet.elementAt(%COUNT%);%EOL%
BINARYCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
BINARYCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
BINARYCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (byte[])resultSet.get("%COLUMN%");%EOL%
BINARYCLONESET = \t\tretObject.set%Column%(%column%);%EOL%
BINARYTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; The code necessary to define an attribute as java.types.OTHER
UNKNOWNDEFINE = <CBINCLUDE ATTRSETS><CBAPPEND persistattr+byte[] t_%column%>\tbyte[]
%column% = null; // Persistable attribute.%EOL%
UNKNOWNGET = <CBINCLUDE GETCOMMENT>%EOL%\
\tpublic byte[] get%Column%()%EOL%\
\t{%EOL%\
\t\treturn %column%;%EOL%\
\t}%EOL%
UNKNOWNSET = <CBINCLUDE SETCOMMENT>%EOL%\
\tpublic void set%Column%(byte[] n_%column%)%EOL%\
\t{%EOL%\
\t\t%column%= n_%column%;%EOL%\
\t\tbeanModified = true;%EOL%\
\t}%EOL%
UNKNOWNCBDROPSET = \t\t%column% = (byte[])resultSet.elementAt(%COUNT%);%EOL%
UNKNOWNCBDROPGET = \t\tsetVector.addElement(%column%);%EOL%
UNKNOWNCBPROPGET = \t\tif(%column% != null)%EOL%\
\t\t\tsetProps.put("%COLUMN%",%column%);%EOL%
UNKNOWNCBPROPSET = \t\tif(resultSet.get("%COLUMN%") != null)%EOL%\
\t\t\t%column% = (byte[])resultSet.get("%COLUMN%");%EOL%
UNKNOWNCLONESET = \t\tretObject.set%Column%(%column%);%EOL%
UNKNOWNTOSTRINGSET = \t\t" %column%="+%column%+%EOL%
; If we have and ODBMS & CBProp, this adds in the clone code to clone the
; ODBMS specific information.
COLCLONESET =
; If we have and ODBMS & CBProp, this adds in the toString code to toString the
; ODBMS specific information.
COLTOSTRINGSET =
; This ends the toString method.
CLASSTOSTRING =
; This tries to include all of the variables above the columns (such as ODBMS
; and CBProp variables).
CLASSVARS =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; getPropObjectData method.
LOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; setPropObjectData method.
LOIDPROPGET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; getPropObjectData method.
NAVLOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; setPropObjectData method.
NAVLOIDPROPGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDSET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
GETNAVLOID =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
SETNAVLOID =
; This is the method used to generate the clone() code - not used in EJBHOME.
CLONESTRING =
; This is the method used to generate the toString() code.
TOSTRINGSTRING =
; This is the method used to generate the CBDrop.setObjectData() code.
DROPSETSTRING =
; This is the method used to generate the CBDrop.getObjectData() code.
DROPGETSTRING =
; This is the method used to generate the CBProp.setPropObjectData() code.
PROPSETSTRING =
; This is the method used to generate the CBProp.getPropObjectData() code.
PROPGETSTRING =
; This comment is embedded in another comment within this file by using
; a <CBINCLUDE ODBMSCOMMENT>. It provides a great example of how to
; use the <CBINCLUDE directive>
ODBMSCOMMENT =
; The method name based on current class and methodsuffix
LINKNAME = lnk<CBIF methodsuffix>_%methodsuffix%</CBIF><CBIFNOT
methodsuffix>%Targetclassnopkg%_%column%_%targetcolumn%</CBIFNOT>
LINKBEAN1MDEFINE = \t// Persistent link type is - %linkqualifier%%EOL%\tprivate
%Targetclass%%BEAN_INTERFACE_SUFFIX%[] <CBINCLUDE LINKNAME> = null;%EOL%<CBAPPEND
linkclears+\t\t<CBINCLUDE LINKNAME> = null;%EOL%><CBSET haslinks=true>
LINKBEAN1MINSERT =
LINKBEAN1MUPDATE =
LINKBEAN1MDELETE =
LINKBEAN11DEFINE = \t// Persistent link type is - %linkqualifier%%EOL%\tprivate
%Targetclass%%BEAN_INTERFACE_SUFFIX% <CBINCLUDE LINKNAME> = null;%EOL%<CBAPPEND
linkclears+\t\t<CBINCLUDE LINKNAME> = null;%EOL%><CBSET haslinks=true>
LINKBEAN11INSERT =
LINKBEAN11UPDATE =
LINKBEAN11DELETE =
METHODNAV =
\t\t\tkey%Targetclassnopkg%pks.set%Targetcolumn%(get%Column%());%EOL%<CBIFNOT keylist
contains key%Targetclassnopkg%pks.%targetcolumn% = %column%;><CBAPPEND
keylist+\t\t\tkey%Targetclassnopkg%pks.%targetcolumn% = %column%;%EOL%></CBIFNOT>
LINKCOMMENT11 = <CBIF linkqualifier=STD_LINK><CBINCLUDE
LINKSTDCOMMENT11></CBIF><CBIF linkqualifier=BEAN_LINK><CBINCLUDE
LINKBEANCOMMENT11></CBIF>
LINKCOMMENT1M = <CBIF linkqualifier=STD_LINK><CBINCLUDE
LINKSTDCOMMENT1M></CBIF><CBIF linkqualifier=BEAN_LINK><CBINCLUDE
LINKBEANCOMMENT1M></CBIF>
LINKMETHODNAME = %Targetclassnopkg%<CBIF
methodsuffix>_%methodsuffix%</CBIF>_%column%_%targetcolumn%
LINKBEAN11GET = \t/**%EOL%\
\t * This method looks up a 1 to 1 Bean link.%EOL%\
\t * @return %Targetclass%%BEAN_INTERFACE_SUFFIX% The selected object.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic %Targetclass%%BEAN_INTERFACE_SUFFIX%
select%methodsuffix%()%EOL%</CBIF>\
<CBIFNOT methodsuffix>\tpublic %Targetclass%%BEAN_INTERFACE_SUFFIX%
select%Targetclassnopkg%_%column%_%targetcolumn%()%EOL%</CBIFNOT>\
\t\tthrows RemoteException%EOL%\
\t{%EOL%\
%EOL%\
\t\t// Check to see if we've already loaded the link.%EOL%\
\t\tif(<CBINCLUDE LINKNAME> != null)%EOL%\
\t\t\treturn <CBINCLUDE LINKNAME>;%EOL%\
\t\ttry {%EOL%\
%EOL%\
\t\t\t// Change this call if the bean or related bean are%EOL%\
\t\t\t// different from %Classname%App or %Targetclassnopkg%App%EOL%\
\t\t\tObject homeObj = homeFactoryInterface.getHomeInstance(this, "%Classname%App",
initialContext, entityContext, "%Targetclassnopkg%App", "%Targetclassnopkg%");%EOL%\
\t\t\t%Targetclass%%BEAN_HOME_SUFFIX% home_%Targetclassnopkg% = %EOL%\
\t\t\t (%Targetclass%%BEAN_HOME_SUFFIX%)
javax.rmi.PortableRemoteObject.narrow(homeObj,
%Targetclass%%BEAN_HOME_SUFFIX%.class);%EOL%\
%EOL%\
\t\t\t%Targetclass%%BEAN_PK_SUFFIX% key%Targetclassnopkg%pks = new
%Targetclass%%BEAN_PK_SUFFIX%();%EOL%\
%keylist%%EOL%\
\t\t\t// Use primary/foreign key to lookup relationship%EOL%\
\t\t\t<CBINCLUDE LINKNAME> =
home_%Targetclassnopkg%.findByPrimaryKey(key%Targetclassnopkg%pks);%EOL%\
\t\t\treturn <CBINCLUDE LINKNAME>;%EOL%\
\t\t} catch (Exception e) {%EOL%\
\t\t\te.printStackTrace();%EOL%\
\t\t\tthrow new RemoteException(e.getMessage());%EOL%\
\t\t}%EOL%\
\t}%EOL%%EOL%<CBSET keylist=%EOL%>
LINKBEAN1MGET = \t/**%EOL%\
\t * This method selects a 1 to Many Non-Bean link.%EOL%\
\t * @return %Targetclass%%BEAN_INTERFACE_SUFFIX%[] The selected instances.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic %Targetclass%%BEAN_INTERFACE_SUFFIX%[]
select%methodsuffix%()%EOL%</CBIF>\
<CBIFNOT methodsuffix>\tpublic %Targetclass%%BEAN_INTERFACE_SUFFIX%[]
select%Targetclassnopkg%_%column%_%targetcolumn%es()%EOL%</CBIFNOT>\
\t\tthrows RemoteException%EOL%\
\t{%EOL%\
%EOL%\
\t\t// Check to see if we've already loaded the link.%EOL%\
\t\tif(<CBINCLUDE LINKNAME> != null)%EOL%\
\t\t\treturn <CBINCLUDE LINKNAME>;%EOL%\
\t\ttry {%EOL%\
%EOL%\
\t\t\t// Change this call if the bean or related bean are%EOL%\
\t\t\t// different from %Classname%App or %Targetclassnopkg%App%EOL%\
\t\t\tObject homeObj = homeFactoryInterface.getHomeInstance(this, "%Classname%App",
initialContext, entityContext, "%Targetclassnopkg%App", "%Targetclassnopkg%");%EOL%\
\t\t\t%Targetclass%%BEAN_HOME_SUFFIX% home_%Targetclassnopkg% = %EOL%\
\t\t\t (%Targetclass%%BEAN_HOME_SUFFIX%)
javax.rmi.PortableRemoteObject.narrow(homeObj,
%Targetclass%%BEAN_HOME_SUFFIX%.class);%EOL%\
%EOL%\
\t\t\t%Targetclass% key%Targetclassnopkg%pks = new %Targetclass%();%EOL%\
%linksetlist%%EOL%\
\t\t\t// Use primary/foreign key to lookup relationship%EOL%\
\t\t\tEnumeration enum =
home_%Targetclassnopkg%.findBy%Targetclassnopkg%(key%Targetclassnopkg%pks);%EOL%\
\t\t\tVector v = new Vector();%EOL%\
\t\t\twhile(enum.hasMoreElements()) {%EOL%\
\t\t\t\tv.addElement(enum.nextElement());%EOL%\
\t\t\t}%EOL%\
\t\t\t<CBINCLUDE LINKNAME> = new
%Targetclass%%BEAN_INTERFACE_SUFFIX%[v.size()];%EOL%\
\t\t\tfor(int i=0; i<v.size(); i++) {%EOL%\
\t\t\t\t<CBINCLUDE LINKNAME>[i] =
(%Targetclass%%BEAN_INTERFACE_SUFFIX%)v.elementAt(i);%EOL%\
\t\t\t}%EOL%\
\t\t\treturn <CBINCLUDE LINKNAME>;%EOL%\
\t\t} catch (Exception e) {%EOL%\
\t\t\te.printStackTrace();%EOL%\
\t\t\tthrow new RemoteException(e.getMessage());%EOL%\
\t\t}%EOL%\
\t}%EOL%%EOL%
LINKCOMMENT1M = <CBIF linkqualifier=STD_LINK><CBINCLUDE
LINKSTDCOMMENT1M></CBIF><CBIF linkqualifier=BEAN_LINK><CBINCLUDE
LINKBEANCOMMENT1M></CBIF>
LINK1MDEFINE = \t//linkqualifier = %linkqualifier%%EOL%<CBIF
linkqualifier=STD_LINK><CBINCLUDE LINKSTD1MDEFINE></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN1MDEFINE></CBIF>
LINK1MGET = <CBIF linkqualifier=STD_LINK><CBINCLUDE LINKSTD1MGET></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN1MGET></CBIF>
LINK1MINSERT = <CBIF linkqualifier=STD_LINK><CBINCLUDE LINKSTD1MINSERT></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN1MINSERT></CBIF>
LINK1MUPDATE = <CBIF linkqualifier=STD_LINK><CBINCLUDE LINKSTD1MUPDATE></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN1MUPDATE></CBIF>
LINK1MDELETE = <CBIF linkqualifier=STD_LINK><CBINCLUDE LINKSTD1MDELETE></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN1MDELETE></CBIF>
LINK11DEFINE = <CBIF linkqualifier=STD_LINK><CBINCLUDE LINKSTD11DEFINE></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN11DEFINE></CBIF>
LINK11GET = <CBIF linkqualifier=STD_LINK><CBINCLUDE LINKSTD11GET></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN11GET></CBIF>
LINK11INSERT = <CBIF linkqualifier=STD_LINK><CBINCLUDE LINKSTD11INSERT></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN11INSERT></CBIF>
LINK11UPDATE = <CBIF linkqualifier=STD_LINK><CBINCLUDE LINKSTD11UPDATE></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN11UPDATE></CBIF>
LINK11DELETE = <CBIF linkqualifier=STD_LINK><CBINCLUDE LINKSTD11DELETE></CBIF><CBIF
linkqualifier=BEAN_LINK><CBINCLUDE LINKBEAN11DELETE></CBIF>
LINKBEANCOMMENT1M = \t/**%EOL%\
\t * This link represents a one to many bean to bean relationship from%EOL%\
\t * column - %column% to %Targetclass%.%targetcolumn%.%EOL%\
\t */%EOL%
LINKSTDCOMMENT1M = \t/**%EOL%\
\t * This link represents a one to many non-bean relationship from%EOL%\
\t * column - %column% to %Targetclass%.%targetcolumn%.%EOL%\
\t */%EOL%
; The method name based on current class and methodsuffix
LINKSTDNAME = \tlnk<CBIF methodsuffix>_%methodsuffix%</CBIF><CBIFNOT
methodsuffix>%Targetclassnopkg%_%column%_%targetcolumn%</CBIFNOT>
; Generate variable for the link.
LINKSTD1MDEFINE = <CBINCLUDE LINKCOMMENT1M>\
\tprotected Vector <CBINCLUDE LINKNAME> = null; // Persistent link type is -
%linkqualifier%%EOL%<CBAPPEND linkclears+\t\t<CBINCLUDE LINKNAME> = null;%EOL%><CBSET
haslinks=true>
; Get a 1-M relationship object.
LINKSTD1MGET = \t/**%EOL%\
\t * Get the %Targetclassnopkg% objects. This uses <CBINCLUDE ODBMSCOMMENT>
the%EOL%\
\t * %targetcolumn% to return a linked %targetclass% object list.%EOL%\
\t * @return Vector the %Targetclassnopkg% vector.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic Vector select%methodsuffix%()%EOL%</CBIF>\
<CBIFNOT methodsuffix>\tpublic Vector
select%Targetclassnopkg%_%column%_%targetcolumn%_s()%EOL%</CBIFNOT>\
\t\tthrows RemoteException%EOL%\
\t{%EOL%\
\t\ttry {%EOL%\
\t\t\tif(<CBINCLUDE LINKNAME> != null) return <CBINCLUDE LINKNAME>;%EOL%\
\t\t\topenDataSource();%EOL%\
\t\t\t// Check to see if we're in a transaction, if not, cocoTxn wil be null%EOL%\
\t\t\t%Targetclass% key%Targetclassnopkg%pks = new %Targetclass%();%EOL%\
%linksetlist%\
<CBIF ODMS>\t\t\t// ODBMS sample LOID code.%EOL%\
\t\t\t//
key%Targetclassnopkg%.setNavloid("PARENTLOID="+getLoid()+";ATTRIBUTE=%targetclass%_s\");%EOL%\
</CBIF>\t\t\t<CBINCLUDE LINKNAME> =
dataSource.selectAll(key%Targetclassnopkg%pks<CBIF mapname>, "%mapname%"</CBIF>);%EOL%\
<CBIF supportTransObj>%EOL%\t\t\t// Transaction Note: We can also use the
Transaction Factory to do%EOL%\
\t\t\t// this bind, but double binding will have no negative effect%EOL%\
\t\t\t// because the Transaction Object is smart enough to detect this.%EOL%\
\t\t\tif(cocoTxn != null)%EOL%\
\t\t\tfor(int i=0; i<<CBINCLUDE LINKNAME>.size(); i++)%EOL%\
\t\t\t\tcocoTxn.bind(<CBINCLUDE LINKNAME>.elementAt(i)<CBINCLUDE
MAPNAMEPARAM>);%EOL%</CBIF>\
\t\t} catch (Exception e) {%EOL%\
\t\t\tthrow new java.rmi.RemoteException("Failed to fetch data from database",
e);%EOL%\
\t\t}%EOL%\
\t\tfinally {%EOL%\
\t\t\tif(autoCloseFlag) {%EOL%\
\t\t\t\tcloseDataSource();%EOL%\
\t\t\t}%EOL%\
\t\t}%EOL%\
\t\treturn <CBINCLUDE LINKNAME>;%EOL%\
\t}%EOL%
; Insert a 1-M relationship object.
LINKSTD1MINSERT = \t/**%EOL%\
\t * Insert the %Targetclassnopkg% objects. This only connects to the database%EOL%\
\t * if it's relational, otherwise nothing occurs, and saves occur%EOL%\
\t * automatically when %Targetclassnopkg% is saved.%EOL%\
\t * @param newValue the %Targetclassnopkg%_s instance to insert.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic int insert%methodsuffix%(</CBIF>\
<CBIFNOT methodsuffix>\tpublic int
insert%Targetclassnopkg%_%column%_%targetcolumn%_s(</CBIFNOT>\
%Targetclass% newValue) throws RemoteException {%EOL%\
\t\tint retVal = 0;%EOL%\
\t\ttry {%EOL%\
\t\t\t// Make sure complete list retrieved first.%EOL%\
<CBIF methodsuffix>\t\t\tselect%methodsuffix%();%EOL%</CBIF>\
<CBIFNOT
methodsuffix>\t\t\tselect%Targetclassnopkg%_%column%_%targetcolumn%_s();%EOL%</CBIFNOT>\
\t\t\topenDataSource();%EOL%\
\t\t\tfor(int i=0; i<<CBINCLUDE LINKNAME>.size(); i++) {%EOL%\
\t\t\t\t%Targetclass% t_%Targetclassnopkg% = (%Targetclass%)<CBINCLUDE
LINKNAME>.elementAt(i);%EOL%\
\t\t\t\t// Make sure equals is overridden properly for the %Targetclassnopkg%
class.%EOL%\
\t\t\t\tif(newValue.equals(t_%Targetclassnopkg%))%EOL%\
\t\t\t\t\treturn 0;%EOL%\
\t\t\t}%EOL%\
<CBIF supportTransObj>\t\t\tif(cocoTxn != null)%EOL%\
\t\t\t\tretVal = cocoTxn.bindnew(newValue<CBINCLUDE MAPNAMEPARAM>);%EOL%\
\t\t\telse%EOL%\
\t</CBIF>\t\t\tretVal = dataSource.insert(newValue<CBIF mapname>, "%mapname%"</CBIF>
);%EOL%\
\t\t} catch (Exception e) {%EOL%\
\t\t\tthrow new java.rmi.RemoteException("Failed to fetch data from database",
e);%EOL%\
\t\t}%EOL%\
\t\tfinally {%EOL%\
\t\t\tif(autoCloseFlag) {%EOL%\
\t\t\t\tcloseDataSource();%EOL%\
\t\t\t}%EOL%\
\t\t}%EOL%\
\t\tif(<CBIF supportTransObj>cocoTxn != null || </CBIF>retVal > 0) {%EOL%\
\t\t\t<CBINCLUDE LINKNAME>.addElement(newValue);%EOL%\
\t\t}%EOL%\
\t\treturn retVal;%EOL%\
\t}%EOL%
; Update 1-M relationship object.
LINKSTD1MUPDATE = \t/**%EOL%\
\t * Update the %Targetclassnopkg% objects. This only connects to the database%EOL%\
\t * if it's relational, otherwise nothing occurs, and saves occur%EOL%\
\t * automatically when %Targetclassnopkg% is saved.%EOL%\
\t * @param newValue the new value to save %Targetclassnopkg%_s instance to.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic int update%methodsuffix%(</CBIF>\
<CBIFNOT methodsuffix>\tpublic int
update%Targetclassnopkg%_%column%_%targetcolumn%_s(</CBIFNOT>\
%Targetclass% newValue) throws RemoteException {%EOL%\
\t\tint retVal = 0;%EOL%\
\t\ttry {%EOL%\
\t\t\t// Make sure complete list retrieved first.%EOL%\
<CBIF methodsuffix>\t\t\tselect%methodsuffix%();%EOL%</CBIF>\
<CBIFNOT
methodsuffix>\t\t\tselect%Targetclassnopkg%_%column%_%targetcolumn%_s();%EOL%</CBIFNOT>\
\t\t\topenDataSource();%EOL%\
\t\t\tfor(int i=0; i<<CBINCLUDE LINKNAME>.size(); i++) {%EOL%\
\t\t\t\t%Targetclass% t_%Targetclassnopkg% = (%Targetclass%)<CBINCLUDE
LINKNAME>.elementAt(i);%EOL%\
\t\t\t\t// Make sure equals is overridden properly for the %Targetclassnopkg%
class.%EOL%\
\t\t\t\tif(newValue.equals(t_%Targetclassnopkg%))%EOL%\
\t\t\t\t{%EOL%\
<CBIF supportTransObj>\t\t\t\t\tif(cocoTxn != null) {%EOL%\
\t\t\t\t\t\tt_%Targetclassnopkg%.setPropObjectData(newValue.getPropObjectData().getFieldValues());%EOL%\
\t\t\t\t\t\tretVal = 1;%EOL%\
\t\t\t\t\t}%EOL%\
\t\t\t\t\telse%EOL%\
\t</CBIF>\t\t\t\t\tretVal = dataSource.update(t_%Targetclassnopkg%, newValue<CBIF
mapname>, "%mapname%"</CBIF> );%EOL%\
\t\t\t\t\t<CBINCLUDE LINKNAME>.setElementAt(newValue,i);%EOL%\
\t\t\t\t\treturn retVal;%EOL%\
\t\t\t\t}%EOL%\
\t\t\t}%EOL%\
\t\t} catch (Exception e) {%EOL%\
\t\t\tthrow new java.rmi.RemoteException("Failed to fetch data from database",
e);%EOL%\
\t\t}%EOL%\
\t\tfinally {%EOL%\
\t\t\tif(autoCloseFlag) {%EOL%\
\t\t\t\tcloseDataSource();%EOL%\
\t\t\t}%EOL%\
\t\t}%EOL%\
\t\treturn 0;%EOL%\
\t}%EOL%
; Delete 1-M relationship object.
LINKSTD1MDELETE = \t/**%EOL%\
\t * Delete the %Targetclassnopkg% objects. This only connects to the database%EOL%\
\t * if it's relational, otherwise nothing occurs, and saves occur%EOL%\
\t * automatically when %Targetclassnopkg% is saved.%EOL%\
\t * @param newValue the %Targetclassnopkg%_s instance to delete.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic int delete%methodsuffix%(</CBIF>\
<CBIFNOT methodsuffix>\tpublic int
delete%Targetclassnopkg%_%column%_%targetcolumn%_s(</CBIFNOT>\
%Targetclassnopkg% newValue) throws RemoteException {%EOL%\
\t\t\t\tint retVal=0;%EOL%\
\t\ttry {%EOL%\
\t\t\t// Make sure complete list retrieved first.%EOL%\
<CBIF methodsuffix>\t\t\tselect%methodsuffix%();%EOL%</CBIF>\
<CBIFNOT
methodsuffix>\t\t\tselect%Targetclassnopkg%_%column%_%targetcolumn%_s();%EOL%</CBIFNOT>\
\t\t\topenDataSource();%EOL%\
\t\t\tfor(int i=0; i<<CBINCLUDE LINKNAME>.size(); i++) {%EOL%\
\t\t\t\t%Targetclass% t_%Targetclassnopkg% = (%Targetclass%)<CBINCLUDE
LINKNAME>.elementAt(i);%EOL%\
\t\t\t\t// Make sure equals is overridden properly for the %Targetclassnopkg%
class.%EOL%\
\t\t\t\tif(newValue.equals(t_%Targetclassnopkg%))%EOL%\
\t\t\t\t{%EOL%\
<CBIF supportTransObj>\t\t\t\t\tif(cocoTxn != null)%EOL%\
\t\t\t\t\t\tretVal = cocoTxn.binddelete(newValue<CBINCLUDE MAPNAMEPARAM>);%EOL%\
\t\t\t\t\telse%EOL%\t</CBIF>\
\t\t\t\t\t\tretVal = dataSource.delete(newValue<CBIF mapname>, "%mapname%"</CBIF>
);%EOL%\
\t\t\t\t\tif(autoCloseFlag) {%EOL%\
\t\t\t\t\t\t\tcloseDataSource();%EOL%\
\t\t\t\t\t}%EOL%\
\t\t\t\t\tif(<CBIF supportTransObj>cocoTxn != null || </CBIF>retVal > 0) <CBINCLUDE
LINKNAME>.removeElement(t_%Targetclassnopkg%);%EOL%\
\t\t\t\t\treturn retVal;%EOL%\
\t\t\t\t}%EOL%\
\t\t\t}%EOL%\
\t\t} catch (Exception e) {%EOL%\
\t\t\tthrow new java.rmi.RemoteException("Failed to fetch data from database",
e);%EOL%\
\t\t}%EOL%\
\t\tfinally {%EOL%\
\t\t\tif(autoCloseFlag) {%EOL%\
\t\t\t\tcloseDataSource();%EOL%\
\t\t\t}%EOL%\
\t\t}%EOL%\
\t\treturn 0;%EOL%\
\t}%EOL%
LINKCOMMENT11 = <CBIF linkqualifier=STD_LINK><CBINCLUDE
LINKSTDCOMMENT11></CBIF><CBIF linkqualifier=BEAN_LINK><CBINCLUDE
LINKBEANCOMMENT11></CBIF>
LINKSTDCOMMENT11 = /**%EOL%\
* This link represents a one to one non-bean relationship from%EOL%\
* column - %column% to %Targetclass%.%targetcolumn%.%EOL%\
*/%EOL%
LINKBEANCOMMENT11 = /**%EOL%\
* This link represents a one to one bean to bean relationship from%EOL%\
* column - %column% to %Targetclass%.%targetcolumn%.%EOL%\
*/%EOL%
; Generate variable for the link.
LINKSTD11DEFINE = <CBINCLUDE LINKCOMMENT11>\
\tprotected %Targetclass% <CBINCLUDE LINKNAME> = null; // Persistent link type is -
%linkqualifier%%EOL%<CBAPPEND linkclears+\t\t<CBINCLUDE LINKNAME> = null;%EOL%><CBSET
haslinks=true>
; Get a 1-1 relationship
LINKSTD11GET = \t/**%EOL%\
\t * Get the %Targetclassnopkg% object. This retrieves the object from the%EOL%\
\t * database if it hasn't been previous retrieved. If the Object%EOL%\
\t * Has already been retrieved, then that instance is returned.%EOL%\
\t * Lookup based on foreign key %Targetclassnopkg%->%targetcolumn% attribute.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic %Targetclass% select%methodsuffix%() throws
RemoteException {%EOL%</CBIF>\
<CBIFNOT methodsuffix>\tpublic %Targetclass%
select%Targetclassnopkg%_%column%_%targetcolumn%_s() throws RemoteException
{%EOL%</CBIFNOT>\
\t\tif(<CBINCLUDE LINKNAME> != null) return <CBINCLUDE LINKNAME>;%EOL%\
\t\ttry {%EOL%\
\t\t\topenDataSource();%EOL%\
\t\t\t%Targetclass% key%Targetclassnopkg%pks = new %Targetclass%();%EOL%\
%linksetlist%\
\t\t\t<CBINCLUDE LINKNAME> =
(%Targetclass%)dataSource.select(key%Targetclassnopkg%pks<CBIF mapname>,
"%mapname%"</CBIF> ); // for Relational db %EOL%\
<CBIF supportTransObj>\t\t\t// Bind selected Objects to the Coco Transaction%EOL%\
\t\t\tcocoTxn.bind(<CBINCLUDE LINKNAME><CBINCLUDE MAPNAMEPARAM>);%EOL%</CBIF>\
\t\t} catch (Exception e) {%EOL%\
\t\t\tthrow new java.rmi.RemoteException("Failed to fetch data from database",
e);%EOL%\
\t\t}%EOL%\
\t\tfinally {%EOL%\
\t\t\tif(autoCloseFlag) {%EOL%\
\t\t\t\tcloseDataSource();%EOL%\
\t\t\t}%EOL%\
\t\t}%EOL%\
\t\treturn <CBINCLUDE LINKNAME>;%EOL%\
\t }%EOL%
; Update a 1-1 relationship
LINKSTD11UPDATE = \t/**%EOL%\
\t * Update the %Targetclassnopkg% object. This updates the database if it's
previously%EOL%\
\t * been retrieved, if the new value is null, then this method%EOL%\
\t * will delete the previous Object. If the original retrieved%EOL%\
\t * Object was null, then this will do an insert.%EOL%\
\t * @param newValue the %Targetclassnopkg% Object Instance to update.%EOL%\
\t * @return int The number of Objects updated.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic int update%methodsuffix%(</CBIF>\
<CBIFNOT methodsuffix>\tpublic int
update%Targetclassnopkg%_%column%_%targetcolumn%(</CBIFNOT>\
%Targetclass% newValue) throws RemoteException %EOL%\
\t {%EOL%\
\t\tint updateCount = 0;%EOL%\
\t\ttry {%EOL%\
\t\t\topenDataSource();%EOL%\
\t\t\t// Delete the old value first%EOL%\
\t\t\tif(<CBINCLUDE LINKNAME> != null && newValue != null) { // we have an
update%EOL%\
<CBIFNOT supportTransObj=true>\t\t\t\tupdateCount = dataSource.update(<CBINCLUDE
LINKNAME>, newValue<CBIF mapname>, "%mapname%"</CBIF> );%EOL%\
\t\t\t\t\tif(updateCount != 0) <CBINCLUDE LINKNAME> = newValue;%EOL%</CBIFNOT>\
\t\t\t}%EOL%\
\t\t\telse if(<CBINCLUDE LINKNAME> != null) { // we have a delete%EOL%\
<CBIFNOT supportTransObj=true>\t\t\t\tupdateCount = dataSource.delete(newValue<CBIF
mapname>, "%mapname%"</CBIF> );%EOL%\
\t\t\t\tif(updateCount != 0) <CBINCLUDE LINKNAME> = null;%EOL%</CBIFNOT>\
<CBIF supportTransObj>\t\t\t\t// Bind Objects to be deleted to the Coco
Transaction%EOL%\
\t\t\t\tcocoTxn.binddelete(<CBINCLUDE LINKNAME><CBINCLUDE
MAPNAMEPARAM>);%EOL%</CBIF>\
\t\t\t}%EOL%\
\t\t\telse if(<CBINCLUDE LINKNAME> == null) {%EOL%\
<CBIFNOT supportTransObj=true>\t\t\t\tupdateCount = dataSource.insert(newValue<CBIF
mapname>, "%mapname%"</CBIF> );%EOL%\
\t\t\t\tif(updateCount != 0) <CBINCLUDE LINKNAME> = newValue;%EOL%</CBIFNOT>\
<CBIF supportTransObj>\t\t\t\t// Bind Objects to be inserted to the Coco
Transaction%EOL%\
\t\t\t\tcocoTxn.bindnew(<CBINCLUDE LINKNAME><CBINCLUDE MAPNAMEPARAM>);%EOL%</CBIF>\
\t\t\t}%EOL%\
\t\t} catch (Exception e) {%EOL%\
\t\t\tthrow new java.rmi.RemoteException("Failed to fetch data from database",
e);%EOL%\
\t\t}%EOL%\
\t\tfinally {%EOL%\
\t\t\tif(autoCloseFlag) {%EOL%\
\t\t\t\tcloseDataSource();%EOL%\
\t\t\t}%EOL%\
\t\t}%EOL%\
\t\treturn updateCount;%EOL%\
\t }%EOL%
MAPNAMEPARAM = <CBIF mapname>, "%mapname%"</CBIF>
; Insert a 1-1 relationship
LINKSTD11INSERT = \t/**%EOL%\
\t * Insert the %Targetclassnopkg% object. This only connects to the database%EOL%\
\t * if it's relational, otherwise nothing occurs, and saves occur%EOL%\
\t * automatically when %Targetclassnopkg% is saved.%EOL%\
\t * @param newValue the %Targetclassnopkg% instance to insert.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic int insert%methodsuffix%(</CBIF>\
<CBIFNOT methodsuffix>\tpublic int
insert%Targetclassnopkg%_%column%_%targetcolumn%_s(</CBIFNOT>\
%Targetclass% newValue) throws RemoteException %EOL%\
\t {%EOL%\
\t\tint insertCount = 0;%EOL%\
\t\ttry {%EOL%\
\t\t\topenDataSource();%EOL%\
\t\t\t// Insert the old value first%EOL%\
\t\t\tif(<CBINCLUDE LINKNAME> != null) { // we have a delete%EOL%\
<CBIFNOT supportTransObj=true>\t\t\t\tdataSource.delete(newValue<CBIF mapname>,
"%mapname%"</CBIF> );%EOL%</CBIFNOT>\
<CBIF supportTransObj>\t\t\t\t// Bind Objects to be deleted to the Coco
Transaction%EOL%\
\t\t\t\tcocoTxn.binddelete(<CBINCLUDE LINKNAME><CBINCLUDE
MAPNAMEPARAM>);%EOL%</CBIF>\
\t\t\t} else if(<CBINCLUDE LINKNAME> == null) {%EOL%\
<CBIFNOT supportTransObj=true>\t\t\t\tinsertCount = dataSource.insert(newValue<CBIF
mapname>, "%mapname%"</CBIF> );%EOL%\
\t\t\t\tif(insertCount != 0) <CBINCLUDE LINKNAME> = newValue;%EOL%</CBIFNOT>\
<CBIF supportTransObj>\t\t\t\t// Bind Objects to be inserted to the Coco
Transaction%EOL%\
\t\t\t\tcocoTxn.bindnew(<CBINCLUDE LINKNAME><CBINCLUDE MAPNAMEPARAM>);%EOL%</CBIF>\
\t\t\t}%EOL%\
\t\t} catch (Exception e) {%EOL%\
\t\t\tthrow new java.rmi.RemoteException("Failed to fetch data from database",
e);%EOL%\
\t\t}%EOL%\
\t\tfinally {%EOL%\
\t\t\tif(autoCloseFlag) {%EOL%\
\t\t\t\tcloseDataSource();%EOL%\
\t\t\t}%EOL%\
\t\t}%EOL%\
\t\treturn insertCount;%EOL%\
\t}%EOL%
; Delete a 1-1 relationship
LINKSTD11DELETE = \t/**%EOL%\
\t * Delete the %Targetclassnopkg% object. This will delete the current
referenced%EOL%\
\t * object from the database.%EOL%\
\t * @param newValue the %Targetclassnopkg% instance to delete.%EOL%\
\t */%EOL%\
<CBIF methodsuffix>\tpublic int delete%methodsuffix%()%EOL%</CBIF>\
<CBIFNOT methodsuffix>\tpublic int
delete%Targetclassnopkg%_%column%_%targetcolumn%_s()%EOL%</CBIFNOT>\
\t throws RemoteException {%EOL%\
\t\tint deleteCount = 0;%EOL%\
\t\tint retVal = 0;%EOL%\
\t\ttry {%EOL%\
\t\t\topenDataSource();%EOL%\
\t\t\t// Delete the old value first%EOL%\
\t\t\tif(<CBINCLUDE LINKNAME> != null) // we have a delete%EOL%\
<CBIFNOT supportTransObj=true>\t\t\t\tdeleteCount = dataSource.delete(<CBINCLUDE
LINKNAME> <CBIF mapname>, "%mapname%"</CBIF> );%EOL%</CBIFNOT>\
<CBIF supportTransObj>\t\t\t\tif(cocoTxn != null)%EOL%\
\t\t\t\t\tretVal = cocoTxn.binddelete(<CBINCLUDE LINKNAME> <CBINCLUDE
MAPNAMEPARAM>);%EOL%</CBIF>\
\t\t\t<CBINCLUDE LINKNAME> = null;%EOL%\
\t\t} catch (Exception e) {%EOL%\
\t\t\tthrow new java.rmi.RemoteException("Failed to fetch data from database",
e);%EOL%\
\t\t}%EOL%\
\t\tfinally {%EOL%\
\t\t\tif(autoCloseFlag) {%EOL%\
\t\t\t\tcloseDataSource();%EOL%\
\t\t\t}%EOL%\
\t\t}%EOL%\
\t\treturn deleteCount;%EOL%\
\t }%EOL%
1.1 contrib/cocobase/conf/JBOSS2REBDDPROP.properties
Index: JBOSS2REBDDPROP.properties
===================================================================
;
; This is the template file used to generate new java programming files
;
; The following variables are guaranteed to be provided by the CocoBase
; code generation runtime (note the variables are case sensitive!)
;
; HASPACKAGE - If we have a packagename prefix.
; packagename - The packagename (if present), such as com.thought
; Classname - The class name (such as Employee)
; supportCBDrop - If we wish to use the Properties based CBDrop interface.
; supportCBProp - If we wish to use the Properties based CBProp interface.
; supportODBMS - If we wish to generate code with ODBMS navigation.
; supportODBMSandCBProp - If we've selected both ODBMS and CBProp flags.
; EOL - The End of line character to be used when generating the java source
; code. This is OS dependent.
; supportTransObj - If we support using a Transaction object in the code
; generation for the 1-1, 1-M or M-M code.
; Column - The Java column name to use in constructin methods such as getPhone
; column - The Java column name (such as phone or empSkill);
; COLUMN - The Map's column name (such as "PHONE" or "EMP_SKILL")
; COUNT - current column count
; Targetclass - used in 1-1,1-M & M-M - The target class in the relationship
; Targetcolumn - used in 1-1,1-M & M-M - The target column in the relationship
; clonelist - The list of column attributes in the clone() method.
; tostringlist - The list of column attributes in the clone() method.
; dropsetlist - The code for the columns in the setObjectData() method.
; dropgetlist - The code for the columns in the getObjectData() method.
; propsetlist - The code for the columns in the setPropObjectData() method.
; propgetlist - The code for the columns in the getPropObjectData() method.
; iskey - Notes whether the column is part of the primary key.
; If we have a package, then insert the packing name string.
PACKAGEINFO =
; The imports for each class generated.
IMPORTS =
; The Class string to start the new java class with.
CLASSBEGIN =
; The comment used for each setAttr() method
SETCOMMENT =
; The comment used for each getAttr() method
GETCOMMENT =
; To appear just before the list of instance variables.
CLASSVARCOMMENT =
; The code necessary to define an attribute as java.types.BIT
BITDEFINE =
BITGET =
BITSET =
; Use the current position for this element fetch. %COUNT% is the reserved
; variable to specify the current location.
BITCBDROPSET =
BITCBDROPGET =
; Note the use of uppercase to denote the Property value.
BITCBPROPSET =
BITCBPROPGET =
BITCLONESET =
BITTOSTRINGSET =
; The code necessary to define an attribute as java.types.CHAR or java.types.VARCHAR
CHARDEFINE =
CHARGET =
CHARSET =
CHARCBDROPSET =
CHARCBDROPGET =
CHARCBPROPSET =
CHARCBPROPGET =
CHARCLONESET =
CHARTOSTRINGSET =
; The code necessary to define an attribute as java.types.DECIMAL or
java.types.NUMERIC
BIGDECIMALDEFINE =
BIGDECIMALGET =
BIGDECIMALSET =
BIGDECIMALCBDROPSET =
BIGDECIMALCBDROPGET =
BIGDECIMALCBPROPSET =
BIGDECIMALCBPROPGET =
BIGDECIMALCLONESET =
BIGDECIMALTOSTRINGSET =
; The code necessary to define an attribute as java.types.TINYINT
TINYINTDEFINE =
TINYINTGET =
TINYINTSET =
TINYINTCBDROPSET =
TINYINTCBDROPGET =
TINYINTCBPROPSET =
TINYINTCBPROPGET =
TINYINTCLONESET =
TINYINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.SMALLINT
SMALLINTDEFINE =
SMALLINTGET =
SMALLINTSET =
SMALLINTCBDROPSET =
SMALLINTCBDROPGET =
SMALLINTCBPROPGET =
SMALLINTCBPROPSET =
SMALLINTCLONESET =
SMALLINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.INTEGER
INTEGERDEFINE =
INTEGERGET =
INTEGERSET =
INTEGERCBDROPSET =
INTEGERCBDROPGET =
INTEGERCBPROPGET =
INTEGERCBPROPSET =
INTEGERCLONESET =
INTEGERTOSTRINGSET =
; The code necessary to define an attribute as java.types.BIGINT
BIGINTDEFINE =
BIGINTGET =
BIGINTSET =
BIGINTCBDROPSET =
BIGINTCBDROPGET =
BIGINTCBPROPGET =
BIGINTCBPROPSET =
BIGINTCLONESET =
BIGINTTOSTRINGSET =
; The code necessary to define an attribute as java.types.TIMESTAMP
TIMESTAMPDEFINE =
TIMESTAMPGET =
TIMESTAMPSET =
TIMESTAMPCBDROPSET =
TIMESTAMPCBDROPGET =
TIMESTAMPCBPROPGET =
TIMESTAMPCBPROPSET =
TIMESTAMPCLONESET =
TIMESTAMPTOSTRINGSET =
; The code necessary to define an attribute as java.types.TIME
TIMEDEFINE =
TIMEGET =
TIMESET =
TIMECBDROPSET =
TIMECBDROPGET =
TIMECBPROPGET =
TIMECBPROPSET =
TIMECLONESET =
TIMETOSTRINGSET =
; The code necessary to define an attribute as java.types.REAL
REALDEFINE =
REALGET =
REALSET =
REALCBDROPSET =
REALCBDROPGET =
REALCBPROPGET =
REALCBPROPSET =
REALCLONESET =
REALTOSTRINGSET =
; The code necessary to define an attribute as java.types.FLOAT
FLOATDEFINE =
FLOATGET =
FLOATSET =
FLOATCBDROPSET =
FLOATCBDROPGET =
FLOATCBPROPGET =
FLOATCBPROPSET =
FLOATCLONESET =
FLOATTOSTRINGSET =
; The code necessary to define an attribute as java.types.DOUBLE
DOUBLEDEFINE =
DOUBLEGET =
DOUBLESET =
DOUBLECBDROPSET =
DOUBLECBDROPGET =
DOUBLECBPROPGET =
DOUBLECBPROPSET =
DOUBLECLONESET =
DOUBLETOSTRINGSET =
; The code necessary to define an attribute as java.types.VARBINARY
VARBINARYDEFINE =
VARBINARYGET =
VARBINARYSET =
VARBINARYCBDROPSET =
VARBINARYCBDROPGET =
VARBINARYCBPROPGET =
VARBINARYCBPROPSET =
VARBINARYCLONESET =
VARBINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.LONGVARBINARY
LONGVARBINARYDEFINE =
LONGVARBINARYGET =
LONGVARBINARYSET =
LONGVARBINARYCBDROPSET =
LONGVARBINARYCBDROPGET =
LONGVARBINARYCBPROPGET =
LONGVARBINARYCBPROPSET =
LONGVARBINARYCLONESET =
LONGVARBINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.LONGVARCHAR
LONGVARCHARDEFINE =
LONGVARCHARGET =
LONGVARCHARSET =
LONGVARCHARCBDROPSET =
LONGVARCHARCBDROPGET =
LONGVARCHARCBPROPGET =
LONGVARCHARCBPROPSET =
LONGVARCHARCLONESET =
LONGVARCHARTOSTRINGSET =
; The code necessary to define an attribute as java.types.DATE
DATEDEFINE =
DATEGET =
DATESET =
DATECBDROPSET =
DATECBDROPGET =
DATECBPROPGET =
DATECBPROPSET =
DATECLONESET =
DATETOSTRINGSET =
; The code necessary to define an attribute as java.types.BINARY
BINARYDEFINE =
BINARYGET =
BINARYSET =
BINARYCBDROPSET =
BINARYCBDROPGET =
BINARYCBPROPGET =
BINARYCBPROPSET =
BINARYCLONESET =
BINARYTOSTRINGSET =
; The code necessary to define an attribute as java.types.OTHER
UNKNOWNDEFINE =
UNKNOWNGET =
UNKNOWNSET =
UNKNOWNCBDROPSET =
UNKNOWNCBDROPGET =
UNKNOWNCBPROPGET =
UNKNOWNCBPROPSET =
UNKNOWNCLONESET =
UNKNOWNTOSTRINGSET =
; If we have and ODBMS & CBProp, this adds in the clone code to clone the
; ODBMS specific information.
COLCLONESET =
; If we have and ODBMS & CBProp, this adds in the toString code to toString the
; ODBMS specific information.
COLTOSTRINGSET =
; This ends the toString method.
CLASSTOSTRING =
; This tries to include all of the variables above the columns (such as ODBMS
; and CBProp variables).
CLASSVARS =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; getPropObjectData method.
LOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS variables to the
; setPropObjectData method.
LOIDPROPGET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; getPropObjectData method.
NAVLOIDPROPSET =
; If we have and ODBMS & CBProp, this adds the ODBMS navigation variable to the
; setPropObjectData method.
NAVLOIDPROPGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDGET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID method.
LOIDSET =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
GETNAVLOID =
; If we have and ODBMS & CBProp, this adds an ODBMS accessor method for the
; Logical Object ID navigation method.
SETNAVLOID =
; This is the method used to generate the clone() code - not used in EJBHOME.
CLONESTRING =
; This is the method used to generate the toString() code.
TOSTRINGSTRING =
; This is the method used to generate the CBDrop.setObjectData() code.
DROPSETSTRING =
; This is the method used to generate the CBDrop.getObjectData() code.
DROPGETSTRING =
; This is the method used to generate the CBProp.setPropObjectData() code.
PROPSETSTRING =
; This is the method used to generate the CBProp.getPropObjectData() code.
PROPGETSTRING =
; This comment is embedded in another comment within this file by using
; a <CBINCLUDE ODBMSCOMMENT>. It provides a great example of how to
; use the <CBINCLUDE directive>
ODBMSCOMMENT =
METHODNAV =
LINK1MDEFINE =
LINK1MGET =
LINK1MINSERT =
LINK1MUPDATE =
LINK1MDELETE =
METHODNAV =
LINK11DEFINE =
LINK11GET =
LINK11INSERT =
LINK11UPDATE =
LINK11DELETE =
PKGPREFIX = <CBIF HASPACKAGE>%packagename%.</CBIF>
PKGDIRPREFIX = <CBIF HASPACKAGE>%packagedirname%%fileseparator%</CBIF>
PKGDIRPREFIXU = <CBIF HASPACKAGE>%packagedirnameunix%%fileseparatorunix%</CBIF>
CLASSEND =<?xml version="1.0" encoding="Cp1252"?>%EOL%\
<jboss>%EOL%\
\t<resource-managers>%EOL%\
\t\t<resource-manager res-class="org.jboss.ejb.deployment.JDBCResource">%EOL%\
\t\t\t<res-name>%jndiurl%</res-name>%EOL%\
\t\t\t<jndi-name>%confDataSource%</jndi-name>%EOL%\
\t\t</resource-manager>%EOL%\
\t</resource-managers>%EOL%\
</jboss>%EOL%