universe(語意層)

What is a universe?

A universe is a file that contains the following:
• Connection parameters for one or more database middleware.
• SQL structures called objects that map to actual SQL structures in the database such as columns, tables, and database functions. Objects are grouped into classes. Objects and classes are both visible to Web Intelligence users.
• A schema of the tables and joins used in the database. Objects are built from the database structures that you include in your schema. The schema is only available to Designer users. It is not visible to Web Intelligence and Desktop Intelligence users.

Web Intelligence users connect to a universe, and run queries against a database. They can do data analysis and create reports using the objects in a universe, without seeing, or having to know anything about, the underlying data structures in the database.

What is the role of a universe?

The role of a universe is to provide an easy to use and understand interface for non technical Web Intelligence users to run queries against a database to create reports and perform data analysis.

As the universe designer, you use Designer to create objects that represent database structures, for example columns and database functions, that users need to access and query, to get the information necessary to meet their business requirements. The objects that you create in the universe must be relevant to the end user business environment and vocabulary. Their role is to present a business focussed front end to the SQL structures in the database.

The following diagram shows the role of objects as the mapping layer between a database schema and the Query work area in Web Intelligence, that users use to create queries to run against database tables.

What does a universe contain?

A universe contains the following structures:
• Classes
• Objects

Classes

A class is a logical grouping of objects within a universe. It represents a
category of objects. The name of a class should indicate the category of the
objects that it contains. A class can be divided hierarchically into subclasses.

Objects

An object is a named component that maps to data or a derivation of data in
the database. The name of an object should be drawn from the business
vocabulary of the targeted user group. For example, objects used in a
universe used by a product manager could be Product, Life Cycle, or Release
Date. A universe used by a financial analyst could contain objects such as
Profit Margin, and Return on Investment.

Types of objects

In Designer, objects are qualified as one of three types: dimension, detail, or
measure.

  1. Dimension –> Parameters for analysis. Dimensions typically relate to a
    hierarchy such as geography, product, or time. For example
    Last Name and City_Id
  2. Detail –> Provide a description of a dimension, but are not the focus
    for analysis. For example Phone Number
  3. Measure –> Convey numeric information which is used to quantify a
    dimension object. For example Sales Revenue

Objects infer SQL structures displayed in a schema

The objects that Web Intelligence users see in a universe infer SQL
structures that you have inserted into a database schema. You, as the
universe designer, create this schema based on the tables and joins that are
required to return the data, needed by users for their analysis and report
creation.
The schema is a part of the universe file, but is only visible and accessible in
Designer.

解惑SESSION

某人和我提及董大偉一書「ASP.NET程式進階設計」第619頁的SESSION觀念有誤,
我此向他說明一下

———-以下書中內文節錄———-

因此,ViewState不會有同名稱的問題,因為即使在一張網頁上,
有多個讓控制項的instance,每一個instance都有各自的ViewState,
但是,由於Session物件是共用的,所以會有重覆的問題,
因此,我們在Session物件的使用上,
特別用「me.uniqueID & “_conn”」這個名稱取代「”conn”」,
以避免當網頁上同時有多個該控制項的instance時,造成Session衝突,
導致不同的控制項存取到同樣的Session變數,
使得不同的控制項instance,屬性值變成一樣

———-以下內文解析———-

我想,有疑問的就是黑體字的部份,
但要注意,文中所指的是Browser開同一個PAGE的情況下,
並非不同人(不同PC的Browser)開啟同一PAGE

IMHEAR,監聽MSN封包的工具

話說我前公司的管理部想推"MSN控管"機制,
也就是要側錄上班時大家MSN的對話….
(不過一直受到反彈就是了)

就有一個工具叫IMHEAR的,
只要把它裝在要連出去的那台主機上(俗稱的GETWAY),
就會抓封包自動存成文字檔,
只是UTF8的格式轉成BIG5,
真的,對話就都看到了…..
有點恐怖說…..
只要把這些文字檔給抓下來,做成清單…..
一切就現形啦!!

要如何反側錄呢?
我想只有用加密軟體一招…

如何先宣告陣列,之後再給陣列大小?

[問題]
各位高手:
想請教一下,因為想把陣列先宣告成全域變數,
而在執行某程序時,才會知道這個陣列的大小,
因此,怎樣才能做到呢?語法是如何??
謝謝

[回覆1]
這個範例使用 ReDim 陳述式,來配置和重新配置陣列變數的存放空間。

Dim I, MyArray() As Integer ‘ Declare variable and array variable.
ReDim MyArray(5) ‘ Allocate 6 elements.
For I = 0 To UBound(MyArray)
MyArray(I) = I ‘ Initialize array.
Next I
下列的陳述式會調整陣列的大小,但不會儲存元素的內容。

ReDim MyArray(10) ‘ Resize to 11 elements.
For I = 0 To UBound(MyArray)
MyArray(I) = I ‘ Initialize array.
Next I
下列的陳述式會調整陣列的大小,但會儲存元素的內容。

ReDim Preserve MyArray(15) ‘ Resize to 16 elements.

[回覆2]
除了使用 Redim 來重新宣告外 , 還可以利用 ArrayList 來做 ,
它可以動態增加它的大小 .

Modu1e / Class

[問題]
其實之前一直在寫VB.60,最近學VB.NET,
發現VB.NET用到了類別(Class),而模組 (Module)其實和類別很像,
但是沒有物件的特性(如:繼承..等),但是模組在使用時不用像類別要先宣告,
…..
其實可能用類別會比較好(應為 它有很多物件導向的特性),
但是為什麼模組還要存在呢??什麼時候寫在模組會比較好呢?
這些問題可能要請以有程設經驗一陣子的人才會比較了解,
還請各位指 導一下…………..感激不盡

[回覆]
我不常用 VB.NET , 用 C# 比較多 . 不過聽你的描述 ,
模組和類別的差異其實就像 C# 的 static class/static member 和 class 的差異一樣 .

一般來說 , 若以物件導向的方式設計的話 ,
Module (全域變數) 僅適合用在會被大量程式碼引用的全域性程式碼 ,
而且不能太多 , 會佔住不少的記憶體空間 .
所以在寫程式時 , static 的東西不要用 , 就算要用 , 也要控制一定的數量 .

不過我認為 VB.NET 會保留 Module 的原因可能是為了向後相容 ,
讓 VB6.0 在用 VB.NET 時不會有差太多的感覺 ,
但最好是多用 Class , 少用 Module .

[轉貼]TrackBack(引用)的意思

今天抽了空把引用(TrackBack)的意思給它搞清楚了,

原來當你要回應他人部落格中的某篇文章時,
如果你直接在他的部落格上做回應,那麼你的回文當然就會留在他的部落中,
於是,有一天當你要找回這你的回文時,你很可能早就忘了留在哪裡了,
因此,你可以在自己的部落裡發表這篇回文,這樣你的回文當然就會留在你的部落中,
但是,問題又來了,醬子做對方根本不知道你的回應,因為你實際上並沒有在他的文章上留下回應啊。
閱讀全文 “[轉貼]TrackBack(引用)的意思”