Follow the steps below to quickly design, generate, and deploy a great portion of your real-life N-Tier application.
STEP 1: HAVE YOUR DATABASE READY
1. Create your database in Microsoft SQL Server, Oracle, or DB2. You can design and create your own database. Or, you can use the sample database provided with TierDeveloper. Or, you can use one of the databases/schemas already provided with your database. They are:
a.Microsoft SQL Server: Northwind database. Just create a new TierDeveloper project against this database.
b.Oracle: DEMO schema with EMP, DEPT, BONUS, SALGRADE, and other tables. Just create a new TierDeveloper project against this schema.
c.DB2: SAMPLE schema provided with DB2. Just create a new TierDeveloper project against this schema.
2. Populate database with data. This would ensure that you have a fully working database ready to be used by a web application.
STEP 2: KNOW YOUR APPLICATION'S DATABASE INTERACTION
1. Identify table-columns your app will access: Before you do anything, you must know which tables and which columns in these tables is your application going to access.
2. Identify transactional operations: Identify where in your application you need to do insert, update, delete, or single-row select operations.
3. Identify queries: Most applications need to retrieve collection of rows from one or more tables in the database. Identify all places where you need to issue queries. These could be single-table queries or could involve complex joins or nested queries.
4. Identify stored procedures to call: If there are any stored procedures that already exist in the database which you need to call, identify them here. These stored procedures should be those that contains complex business rules or other data manipulation logic. Do not manually create stored procedures in the database for transactional operations or for queries that are otherwise handled by TierDeveloper. TierDeveloper can generate stored procedure DDL for you in that situation.
5. Identify bulk updates or deletes: Most applications do not require bulk updates or deletes but some do. If you have any, identify them.
The best way to understand your applications database interaction needs is to understand its behavior from the user's perspective and focus on all the data that needs to be displayed to the user or changed by the user.
STEP 3: CREATE TIERDEVELOPER PROJECT
1. Connect TierDeveloper to your database: TierDeveloper uses OLEDB to connect to your database and reads its schema so it can let you define the mappings of middle-tier objects with tables in the database (based on what you have determined about your application's interaction with your database). Please note that even if you're going to generate Java/J2EE application that will use JDBC to connect to the database, TierDeveloper (the product) will use OLEDB to connect to your database.
2. Define data object mappings to your tables: Wherever you had identified table-columns that your application needs, define data objects mapped to these tables with the appropriate columns selected as data object attributes. You can map a data object to single table or multiple tables. You'll need multi-table data objects for situations where you're trying to issue a multi-table join query that returns data from multiple tables.
3. Specify transactional methods in data objects: Based on what you identified as your application's transactional needs earlier, you should now define those insert, update, delete, and single-row select as methods of your data objects. TierDeveloper lets you do that with point-and-click.
4. Define queries as data object methods: For each query that you identified earlier, define a query method in the appropriate data objects. Remember, a query returns a resultset which get translated into a collection of data objects by TierDeveloper generated code.
5. Define stored procedure calls as data object methods: Wherever you needed to call stored procedures, you need to define data object methods for them. Remember, these stored procedures contain sophisticated business rules. Any stored procedures for transactional operations or queries can be generated by TierDeveloper so you do not have to manually write them in the database.
6. Define bulk update/delete operations as data object methods: Wherever you need to do a bulk update or bulk delete, you'll need to define data object methods for them.
STEP 4: GENERATE AND RUN 50% OF YOUR APPLICATION INSTANTLY
1. Generate data objects: After you have defined all your data objects, you are ready to generate code for them. You can generate data object code in the following format:
a. .NET components
2. Build and deploy data objects generated code: If you machine has the appropriate build environment for your platform, TierDeveloper asks you whether you want to build the generated data objects code. If you say "yes", it creates the following. It also then deploys them to your appropriate environment.
a. .NET assemblies for .NET components. They are deployed through component services.
3. Generate web application: After you have generated and build the data objects, you can generate a fully working web application. The purpose of this web application is to let you test all the functions of data objects. This also serves as a good sample/example code for you to copy into your own web application development. TierDeveloper generates the following types of web applications:
a. ASP.NET pages in C# or VB.NET and with or without XML/XSLT.
4. Build and deploy web application: TierDeveloper can also build the web pages for you. It does the following for each platform:
a. Build a .NET assembly for ASP.NET pages. They are deployed to IIS
5. Run deployed web app with data objects: Now that you have successfully deployed the data objects and the web app, you can run the web app. The really nice thing is that all this generated code is now working against your own database and in your own environment. You can see all the behavior of the data objects through this web app and also use it as a guide in your own web development. Try this and you'll be convinced about TierDeveloper being a true Rapid Development tool.
STEP 5: DEVELOP REMAINING 50% OF YOUR APPLICATION
After running and verifying that all the generated code contains your desired functionality and runs correctly against your database, you are now ready to develop the rest of the application. The areas you are likely to need to develop in your application are:
1. Presentation Layer (Web Pages): Use TierDeveloper generated web app as a sample/example for quickly developing your own. You can even copy/paste a lot of the code from the generated web app into yours, thereby speeding up your development work even further.
2. Business Objects: Although TierDeveloper generated code contains all your data manipulation logic and some of your business rules as well (in the form of data validation or stored procedure calls), you will most likely have to develop additional business objects. If you're not an expert in your target platform (.NET, J2EE, or J2SE), you can learn from the generated data objects as your business objects are likely going to be in the same environment and would follow similar design approach.
For free evaluation download please visit
http://www.alachisoft.com/download.htm
![]() |
|
![]() |
|
![]() |
|
![]() |
C/SIDE (Client/Server Integrated Development Environment) - The core of... Read More
Microsoft Business Solutions Great Plains is Dexterity-written application and currently... Read More
The Windows registry is a huge database that ensures normal... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
Microsoft Great Plains is main mid-market application from Microsoft Business... Read More
When it comes to running an office, the SOHO entrepreneur... Read More
If you have Great Plains Dynamics/eEnterprise (version 6.0 or earlier)... Read More
Let us give you - developer some hints in the... Read More
Domino server is a buffer between the operation system and... Read More
Fundraising software lets you connect with donors in a way... Read More
If there still are few unprotected computers left, I haven't... Read More
For those who are unclear on the differences between the... Read More
Software development is a risky business.Many software developers are barely... Read More
User interfaces and accessibility are some of the most important... Read More
Need software to record your voice, streaming audio or musical... Read More
Linux essentials:It's free for download but you have to pay... Read More
If you are in the market for new staffing software,... Read More
While I was preparing some personal background information for a... Read More
You might think you don't need a firewall... Read More
Let's say that you have a software project that's under... Read More
In the real world a "fire wall" is a fireproof... Read More
Professional services firm cuts costs and improves productivity with integrated... Read More
One of the main reasons business owners and entrepreneurs use... Read More
Rapid Application Development (RAD) is a software development methodology. In... Read More
This article is for advanced Microsoft CRM SDK C# developers.... Read More
Do you want to get quality software at a reasonable... Read More
TCO (Total Cost Ownership) is the buzzword in... Read More
Shareware has been fighting the stigma of being misunderstood for... Read More
We've all seen the ads on TV for Netzero 3G.... Read More
Adobe Photoshop is one of the world's leading graphics editing... Read More
Many reasons made GBM a unanimous choice for experts, one... Read More
Small can be beautiful! Working with Knoppix for the past... Read More
Think of this, first we had the HAM Radio, then... Read More
When you own a small business, time is money. And... Read More
What is Groupware?Have you ever had to manage document collaboration... Read More
Microsoft Business Solutions CRM is web-based CRM application, deploying all... Read More
Microsoft Great Plains is one of three Microsoft Business Solutions... Read More
Think of this, first we had the HAM Radio, then... Read More
Microsoft CRM was designed to be easily customizable. Microsoft CRM... Read More
I have always had a tendency to focus on the... Read More
In part III of this ISDN primer, we learned that... Read More
RSS (Really Simple Syndication) is a way for a site... Read More
Microsoft Business Solutions CRM proved to be reliable solution in... Read More
Microsoft Great Plains and Microsoft Retail Management System (Microsoft RMS)... Read More
The purpose of Project Management Software is to provide an... Read More
When you need a phone number, you do a quick... Read More
This is the tutorial where we really get into programming.... Read More
In a previous article, I wrote about OpenOffice... Read More
Configuring PPP PAP AuthenticationNow we know how the ISDN link... Read More
If someone entered your home, uninvited and installed numerous cameras... Read More
Logistics automation is often considered as barcoding extension to Sales... Read More
Great Plains Software Dynamics, Dynamics C/S+, eEnterprise were written on... Read More
You have gotten those E_Mails buy software at deep discounts.... Read More
If you have Great Plains Dynamics/eEnterprise (version 6.0 or earlier)... Read More
While I was in college, if you would have asked... Read More
This article will not attempt to advocate the use of... Read More
Fleet Maintenance Management is a critical position in any company... Read More
FTP stands for "file transfer protocol". FTP is basically a... Read More
Microsoft Business Solutions Great Plains was purchased from Great Plains... Read More
MSN messenger is a pretty cool invention. I mean I'm... Read More
Traditionally we were considering functionally rich systems, such as SAP,... Read More
Spyware and Adware infest over 90 percent of computers in... Read More
Microsoft Business Solutions Great Plains might be considered as ERP... Read More
Microsoft Great Plains is main Microsoft Business Solutions accounting package... Read More
Pirated software is on the increase and now accounts for... Read More
What is 'adware'?Adware is basically software or scripts that are... Read More
Software |