WEB开发网
开发学院图形图像Flash 跟我StepByStep学FLEX教程------Demo13之Fl... 阅读

跟我StepByStep学FLEX教程------Demo13之Flex访问数据库

 2009-09-09 00:00:00 来源:WEB开发网   
核心提示: 6、运行,如下界面:图片看不清楚?请点击这里查看原图(大图),跟我StepByStep学FLEX教程------Demo13之Flex访问数据库(5),哈哈,其实就是这么简单,下一讲集成Hibernate,就在这个Demo的基础上进行改造

6、运行,如下界面:

跟我StepByStep学FLEX教程------Demo13之Flex访问数据库

图片看不清楚?请点击这里查看原图(大图)。

哈哈,其实就是这么简单,下一讲集成Hibernate,就在这个Demo的基础上进行改造,所以读者从Demo11开始必须每一讲都认真看,否则后边的Demo就无法按步骤操作运行了。

附:数据库脚本

CREATE SCHEMA PUBLIC AUTHORIZATION DBA
CREATE MEMORY TABLE PRODUCT(PRODUCT_ID INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 0) NOT NULL PRIMARY KEY,NAME VARCHAR(40),CATEGORY VARCHAR(40),IMAGE VARCHAR(40),PRICE DOUBLE,QTY_IN_STOCK INTEGER,DESCRIPTION VARCHAR(255))
ALTER TABLE PRODUCT ALTER COLUMN PRODUCT_ID RESTART WITH 20
CREATE USER SA PASSWORD ""
GRANT DBA TO SA
SET WRITE_DELAY 20
SET SCHEMA PUBLIC
INSERT INTO PRODUCT VALUES(1,'Nokia 6010','6000','Nokia_6010.gif',99.99E0,12,'Easy to use without sacrificing style, the Nokia 6010 phone offers functional voice communication supported by text messaging, multimedia messaging, mobile internet, games and more.')
INSERT INTO PRODUCT VALUES(2,'Nokia 3100 Blue','9000','Nokia_3100_blue.gif',149.0E0,20,'Light up the night with a glow-in-the-dark cover - when it is charged with light you can easily find your phone in the dark. When you get a call, the Nokia 3100 phone flashes in tune with your ringing tone. And when you snap on a Nokia Xpress-on gaming cover, you will get luminescent light effects in time to the gaming action.')
INSERT INTO PRODUCT VALUES(3,'Nokia 3100 Pink','3000','Nokia_3100_pink.gif',139.0E0,50,'Light up the night with a glow-in-the-dark cover - when it is charged with light you can easily find your phone in the dark. When you get a call, the Nokia 3100 phone flashes in tune with your ringing tone. And when you snap on a Nokia Xpress-on gaming cover, you will get luminescent light effects in time to the gaming action.')
INSERT INTO PRODUCT VALUES(4,'Nokia 3120','3000','Nokia_3120.gif',159.99E0,40,'Designed for both business and pleasure, the elegant Nokia 3120 phone offers a pleasing mix of features. Enclosed within its chic, compact body, you will discover the benefits of tri-band compatibility, a color screen, MMS, XHTML browsing, cheerful screensavers, and much more.')
INSERT INTO PRODUCT VALUES(5,'Nokia 3220','3000','Nokia_3220.gif',200.0E0,20,'The Nokia 3220 phone is a fresh new cut on some familiar ideas - animate your MMS messages with cute characters, see the music with lights that flash in time with your ringing tone, download wallpapers and screensavers with matching color schemes for the interface.')
INSERT INTO PRODUCT VALUES(6,'Nokia 3650','3000','Nokia_3650.gif',200.0E0,15,'Messaging is more personal, versatile and fun with the Nokia 3650 camera phone.  Capture experiences as soon as you see them and send the photos you take to you friends and family.')
INSERT INTO PRODUCT VALUES(7,'Nokia 6820','6000','Nokia_6820.gif',299.99E0,68,'Messaging just got a whole lot smarter. The Nokia 6820 messaging device puts the tools you need for rich communication - full messaging keyboard, digital camera, mobile email, MMS, SMS, and Instant Messaging - right at your fingertips, in a small, sleek device.')
INSERT INTO PRODUCT VALUES(8,'Nokia 6670','6000','Nokia_6670.gif',309.99E0,14,'Classic business tools meet your creative streak in the Nokia 6670 imaging smartphone. It has a Netfront Web browser with PDF support, document viewer applications for email attachments, a direct printing application, and a megapixel still camera that also shoots up to 10 minutes of video.')
INSERT INTO PRODUCT VALUES(9,'Nokia 6620','6000','Nokia_6620.gif',329.99E0,58,'Shoot a basket. Shoot a movie. Video phones from Nokia... the perfect way to save and share life\u2019s playful moments. Feel connected.')
INSERT INTO PRODUCT VALUES(10,'Nokia 3230 Silver','3000','Nokia_3230_black.gif',500.0E0,10,'Get creative with the Nokia 3230 smartphone. Create your own ringing tones, print your mobile images, play multiplayer games over a wireless Bluetooth connection, and browse HTML and xHTML Web pages. ')
INSERT INTO PRODUCT VALUES(11,'Nokia 6680','6000','Nokia_6680.gif',222.0E0,20,'The Nokia 6680 is an imaging smartphone that')
INSERT INTO PRODUCT VALUES(12,'Nokia 6630','6000','Nokia_6630.gif',379.0E0,44,'The Nokia 6630 imaging smartphone is a 1.3 megapixel digital imaging device (1.3 megapixel camera sensor, effective resolution 1.23 megapixels for image capture, image size 1280 x 960 pixels).')
INSERT INTO PRODUCT VALUES(14,'Nokia 7610 White','7000','Nokia_7610_white.gif',399.99E0,85,'The Nokia 7610 imaging phone with its sleek, compact design stands out in any crowd. Cut a cleaner profile with a megapixel camera and 4x digital zoom. Quality prints are all the proof you need of your cutting edge savvy.')
INSERT INTO PRODUCT VALUES(15,'Nokia 6680','6000','Nokia_6680.gif',222.0E0,10,'The Nokia 6680 is an imaging smartphone.')
INSERT INTO PRODUCT VALUES(16,'Nokia 9300','9000','Nokia_9300_close.gif',599.0E0,20,'The Nokia 9300 combines popular voice communication features with important productivity applications in one well-appointed device. Now the tools you need to stay in touch and on top of schedules, email, news, and messages are conveniently at your fingertips.')
INSERT INTO PRODUCT VALUES(17,'Nokia 9500','9000','Nokia_9500_close.gif',799.99E0,58,'Fast data connectivity with Wireless LAN. Browse the Internet in full color, on a wide, easy-to-view screen. Work with office documents not just email with attachments and memos, but presentations and databases too.')
INSERT INTO PRODUCT VALUES(18,'Nokia N90','9000','Nokia_N90.gif',999.0E0,10,'Twist and shoot. It is a pro-photo taker. A personal video-maker. Complete with Carl Zeiss Optics for crisp, bright images you can view, edit, print and share. Meet the Nokia N90.')

文章来源:http://wangyisong.javaeye.com/blog/421149

上一页  1 2 3 4 5 

Tags:StepByStep FLEX 教程

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接