File: eaf_n_cst_constants.sru
Size: 11346
Date: Tue, 22 Jan 2008 23:39:19 +0100
$PBExportHeader$eaf_n_cst_constants.sru
forward
global type eaf_n_cst_constants from nonvisualobject
end type
end forward

global type eaf_n_cst_constants from nonvisualobject
end type
global eaf_n_cst_constants eaf_n_cst_constants

type variables
public:

//Product Values
constant    string      PRODUCT_VERSION =                                        "2.0"
constant    date        PRODUCT_VERSION_DATE =                             date("2007/09/01")
constant    string      PRODUCT_NAME =                                           "Enterprise Application Framework"

constant    date        BUILD_DATE =                                             Today()
constant    time        BUILD_TIME =                                             Now()

//Component Names
constant    String      LOG_MANAGER_COMPONENT_NAME =                             "n_cst_LogManager"
constant    String      VARIABLE_MANAGER_COMPONENT_NAME =                        "n_cst_VariableManager"
constant    String      MAIL_MANAGER_COMPONENT_NAME =                            "n_cst_MailManager"
constant    String      MESSAGE_MANAGER_COMPONENT_NAME =                         "n_cst_MessageManager"

//Message Types
constant    String      MESSAGE_TYPE_EAF_ERROR =                                 "EAF Error"
constant    String      MESSAGE_TYPE_EAF_DB_ERROR =                              "EAF DB Error"
constant    String      MESSAGE_TYPE_EAF_DEBUG =                                 "EAF Debug"
constant    String      MESSAGE_TYPE_EAF_WARNING =                               "EAF Warning"
constant    String      MESSAGE_TYPE_EAF_TRACE =                                 "EAF Trace"
constant    String      MESSAGE_TYPE_DEBUG =                                     "Debug"
constant    String      MESSAGE_TYPE_LEGACY =                                    "Legacy Message"
constant    String      MESSAGE_TYPE_EAF_DATA =                                  "EAF Data"

//Message Names
constant    String      MESSAGE_NAME_EAF_DB_ERROR_BUFFER =                       "Buffer"
constant    String      MESSAGE_NAME_EAF_DB_ERROR_ROW =                          "Row"
constant    String      MESSAGE_NAME_EAF_DB_ERROR_SQLDBCODE =                    "SQLDBCode"
constant    String      MESSAGE_NAME_EAF_DB_ERROR_SQLERRTEXT =                   "SQLErrText"
constant    String      MESSAGE_NAME_EAF_DB_ERROR_SQLSYNTAX =                    "SQLSyntax"

//Formats
constant    String      CRLF =                                                   char(13) + char(10);

//Logging and Tracing Variable Names
constant    String      DEBUG_PROPERTY_NAME =                                    "com.youngsoft.eaf.debug";
constant    String      TRACE_PROPERTY_NAME =                                    "com.youngsoft.eaf.trace";
constant    String      DEBUG_DETAILED_PROPERTY_NAME =                           "com.youngsoft.eaf.debug.detailed";
constant    String      USE_DATABASE_LOGGING_PROPERTY_NAME =                     "com.youngsoft.eaf.usedatabaselogging";
constant    String      WARNING_PROPERTY_NAME =                                  "com.youngsoft.eaf.warning";

//File Generation Variable Names
constant    String      TEMP_FILE_DIRECTORY_VARIABLE_NAME =                      "com.youngsoft.eaf.temp.file.directory";

//XHTML and XML Publish Paths and Resource Bases
constant    String      WEBDW_CSS_PUBLISH_PATH_VARIABLE_NAME =                   "com.youngsoft.eaf.webdw.css.publish.path"
constant    String      WEBDW_JS_PUBLISH_PATH_VARIABLE_NAME =                    "com.youngsoft.eaf.webdw.js.publish.path"
constant    String      WEBDW_CSS_RESOURCE_BASE_VARIABLE_NAME =                  "com.youngsoft.eaf.webdw.css.resource.base"
constant    String      WEBDW_JS_RESOURCE_BASE_VARIABLE_NAME =                   "com.youngsoft.eaf.webdw.js.resource.base"
constant    String      WEBDW_JS_USER_JSFILE_VARIABLE_NAME =                     "com.youngsoft.eaf.webdw.js.userjsfile"

//XML Publish Paths and Resource Bases
constant    String      WEBDW_XML_PUBLISH_PATH_VARIABLE_NAME =                   "com.youngsoft.eaf.webdw.xml.publish.path"
constant    String      WEBDW_XSL_PUBLISH_PATH_VARIABLE_NAME =                   "com.youngsoft.eaf.webdw.xsl.publish.path"
constant    String      WEBDW_XML_RESOURCE_BASE_VARIABLE_NAME =                  "com.youngsoft.eaf.webdw.xml.resource.base"
constant    String      WEBDW_XSL_RESOURCE_BASE_VARIABLE_NAME =                  "com.youngsoft.eaf.webdw.xsl.resource.base"

//HTMLDW Property Variable Names
constant    String      HTMLDW_110_JS_LOCATION_VARIABLE_NAME =                   "com.youngsoft.eaf.htmldw.110.js.location";


//EAServer Properties
constant    String      COMPONENT_NAME_PROPERTY_NAME  =                          "com.sybase.jaguar.component.name"
constant    String      POWERBUILDER_VERSION_PROPERTY_NAME  =                    "com.sybase.jaguar.component.pb.version"

//Mime Types
constant    String      MIME_TYPE_EAF_RESULTSET =                                "application/eafresultset"
constant    String      MIME_TYPE_PDF =                                          "application/pdf"
constant    String      MIME_TYPE_DW_NATIVE =                                    "application/pb-dwnative"
constant    String      MIME_TYPE_EXCEL =                                        "application/vnd.ms-excel"
constant    String      MIME_TYPE_HTML =                                         "text/html"
constant    String      MIME_TYPE_TEXT =                                         "text/text"
constant    String      MIME_TYPE_XML =                                          "text/xml"
constant    String      MIME_TYPE_PSR =                                          "application/datawindow"

//Data Type Categories
constant    String      DATA_TYPE_CATEGORY_RESULTSET =                           "resultset"
constant    String      DATA_TYPE_CATEGORY_TEXT =                                "text"
constant    String      DATA_TYPE_CATEGORY_BINARY =                              "binary"

//Retrieve Actions
constant    string      EAF_RETRIEVE_ACTION_TYPE_ARGUMENT_NAME                            =  "EAFRetrieveAction"
constant    String      RETRIEVE_FULLONNEED                                                        =  "fullonneed"
constant    String      RETRIEVE_FULLALWAYS                                                        =  "fullalways"
constant    String      RETRIEVE_SYNTAXONLY                                                        =  "syntaxonly"
constant    String      RETRIEVE_DATAONLY                                                             =  "dataonly"

//Update Actions
constant    string         EAF_UPDATE_ACTION_TYPE_ARGUMENT_NAME                                 =  "EAFUpdateAction"
constant    string         UPDATE_SENDCHANGESONLY                                                  =  "sendchangesonly"
constant    string         UPDATE_SENDALL                                                                =  "sendall"

//EAF Data Message Names
constant    string         EAF_ROWCOUNT_MESSAGE_NAME                                            =  "EAFRowCount"

//EAF Session Argument Names
constant    string         EAF_SESSION_ID_ARGUMENT_NAME                                            =  "EAFSessionID"

//Retrieval Argument Processing
constant    string         EAF_RETRIEVAL_ARGUMENT_STYLE_ARGUMENT_NAME                        =  "EAFRetrievalArgumentStyle"
constant    string         EAF_RETRIEVAL_ARGUMENTS_BY_ORDER                                        =  "EAFRetrievalArgumentsByOrder"
constant    string         EAF_RETRIEVAL_ARGUMENTS_BY_NAME                                      =  "EAFRetrievalArgumentsByName"
constant    string         EAF_RETRIEVAL_ARGUMENT_COUNT_ARGUMENT_NAME                        =  "EAFRetrievalArgumentCount"
constant    string         EAF_RETRIEVAL_ARGUMENT_BY_ORDER_ARGUMENT_NAME_PREFIX        =  "EAFRetrievalArgument-"

//Content Provider Services
constant    string         EAF_RESULTSET_PROVIDER_SERVICE                                          =  "n_cst_resultsetproviderservice"
constant    string         EAF_PDF_PROVIDER_SERVICE                                                   =  "n_cst_pdfproviderservice"
constant    string         EAF_DW_NATIVE_PROVIDER_SERVICE                                          =  "n_cst_dwnativeproviderservice"
constant    string         EAF_HTML_PROVIDER_SERVICE                                               =  "n_cst_htmldwservice"
constant    string         EAF_EXCEL_PROVIDER_SERVICE                                                 =  "n_cst_excelproviderservice"
constant    string         EAF_TEXT_PROVIDER_SERVICE                                               =  "n_cst_textproviderservice"
constant    string         EAF_XML_PROVIDER_SERVICE                                                   =  "n_cst_xmlproviderservice"
constant    string         EAF_PSR_PROVIDER_SERVICE                                                   =  "n_cst_psrproviderservice"

//Character Sets
constant    string         EAF_CHARACTER_SET_ARGUMENT_NAME                                      =  "EAFCharacterSet"
constant    string         CHARACTER_SET_ISO_8859_1                                                   =  "ISO-8859-1"
constant    string         CHARACTER_SET_UTF_8                                                        =  "UTF-8"
constant    string         CHARACTER_SET_UTF_16                                                       =  "UTF-16"

//PDF
constant    string         PDF_PROVIDER_VAR_NAME                                                      = "com.youngsoft.eaf.pdf.provider"

//Language Argument Name
constant    String      EAF_LANGUAGEID_ARGUMENT_NAME =                        "LanguageID"

//User Name Argument Name
constant    String      EAF_USERID_ARGUMENT_NAME =                         "UserID"

//Web DataWindow Arguments
constant    String      EAF_ACTION_ARGUMENT_NAME =                         "EAFAction"
constant    String      EAF_CONTEXT_ARGUMENT_NAME =                        "EAFContext"
constant    String      EAF_DW_CONTROL_NAME_ARGUMENT_NAME =             "EAFDWControlName"
constant    String      EAF_FORM_CAPABILITY_ARGUMENT_NAME =             "EAFFormCapability"
constant    String      EAF_SCRIPT_CAPABILITY_ARGUMENT_NAME =           "EAFScriptCapability"
constant    String      EAF_EVENTS_CAPABILITY_ARGUMENT_NAME =           "EAFEventsCapability"
constant    String      EAF_VALIDATION_CAPABILITY_ARGUMENT_NAME =       "EAFValidationCapability"
constant    String      EAF_FORMATTING_CAPABILITY_ARGUMENT_NAME =       "EAFFormattingCapability"
constant    String      EAF_PAGE_SIZE_ARGUMENT_NAME =                      "EAFPageSize"
constant    String      EAF_BUTTONS_ARGUMENT_NAME =                        "EAFButtons"
constant    String      EAF_IGNORE_BROWSER_TYPE_ARGUMENT_NAME =      "EAFIgnoreBrowserType"
constant    String      EAF_USE_JAVASCRIPT_CACHING_ARGUMENT_NAME =   "EAFUseJavaScriptCaching"
constant    String      EAF_USE_NETSCAPE_LAYERS_ARGUMENT_NAME =         "EAFUseNetscapeLayers"
constant    String      EAF_BROWSER_TYPE_ARGUMENT_NAME =                "EAFBrowserType"
constant    String      EAF_SELF_LINK_ARGUMENT_NAME =                      "EAFSelfLink"
constant    String      EAF_SELF_LINK_ARGUMENTS_ARGUMENT_NAME =         "EAFSelfLinkArguments"
constant    String      EAF_LINKS_ELEMENT_NAME =                              "EAFLinks"
constant    String      EAF_LINK_ELEMENT_NAME =                               "EAFLink"
constant    String      EAF_LINK_OBJECT_ELEMENT_NAME =                     "EAFLinkObject"
constant    String      EAF_LINK_URL_ELEMENT_NAME =                        "EAFLinkURL"
constant    String      EAF_LINK_ARGUMENTS_ELEMENT_NAME =               "EAFLinkArguments"
constant    String      EAF_LINK_TARGET_ELEMENT_NAME =                     "EAFLinkTarget"
constant    String      EAF_CLIENT_COMPUTED_FIELDS_ARGUMENT_NAME =   "EAFClientComputedFields"
constant    String      EAF_TAB_INDEX_BASE_ARGUMENT_NAME                =  "EAFTabIndexBase"
constant    String      EAF_WEBDW_STYLE_ARGUMENT_NAME =                 "EAFWebDWStyle"

//Web DataWindow Styles
constant    String      WEBDW_STYLE_HTML =                                    "HTML"
constant    String      WEBDW_STYLE_XHTML =                                   "XHTML"
constant    String      WEBDW_STYLE_XML =                                     "XML"

// Encoding
Encoding STRING_BLOB_CONVERSION_ENCODING =                              EncodingUTF16LE! 

// DataSource Parameters Argument Name
constant    String      EAF_DATASOURCEPARAMETERS_ARGUMENT_NAME = "DataSourceParameters"

// Enable Compress Argument Name
constant    String      EAF_ENABLE_COMPRESS_ARGUMENT_NAME = "EnableCompress"

// Request Type
constant    String      REQUESTTYPE_ARGUMENT_NAME = "RequestType"

// Component Name
constant    String      EAF_INTERFACEMANAGER_COMPONENT_ARGUMENT_NAME = "InterfaceManagerName"

// Component Class Name
constant    String      EAF_INTERFACEMANAGER_CLASS_ARGUMENT_NAME = "InterfaceManagerClassName"

constant    String      UPDATE_CLASSNAME_PREFIX = "n_cst_businessobject"
constant    String      COMMIT_CLASSNAME_PREFIX = "n_cst_commitobject"
constant    String      RETRIEVE_CLASSNAME_PREFIX = "n_cst_retrieveobject"
constant    String      ITEMCHANGED_CLASSNAME_PREFIX = "n_cst_validation"
constant    String      LOOKUP_CLASSNAME_PREFIX = "n_cst_fieldlookup"
constant    String      BUSINESS_SERVICE_CLASSNAME_PREFIX = "n_cst_businessservice"
constant    String      REPORT_CLASSNAME_PREFIX = "n_cst_reportobject"

// DataSet Type
constant    long        DATASET_TYPE_DWO        =                          0
constant    long        DATASET_TYPE_SRD        =                          1
constant    long        DATASET_TYPE_SQL        =                          2

// Dummy datasetid
constant    String      EAF_DUMMY_DATASETID_NAME = "dummydatasetid"

end variables

on eaf_n_cst_constants.create
call super::create
TriggerEvent( this, "constructor" )
end on

on eaf_n_cst_constants.destroy
TriggerEvent( this, "destructor" )
call super::destroy
end on

  • nonvisualobject eaf_n_cst_constants(sru)