Tuesday, September 30, 2008

Using Data Sources

These are links to data source topics.
Sun Datasource has been extended by Oracle as OracleDataSource();
The library to include in your project in Jdeveloper is named Oracle JDBC.

You can provide database credentials to a datasource or use JNDI (Lookup). The avantage of using JNDI is that no credentials are hardcoded.

DataSource LookUp using JNDI
http://www.java2s.com/Code/Java/Database-SQL-JDBC/TestDataSourceLookUp.htm

Using Datasource providing ODBC parameters:
http://www.java2s.com/Code/Java/Database-SQL-JDBC/OracleDataSourceDemo.htm

Using JDBC Data Sources with ADF Business Components
http://www.oracle.com/technology/products/jdev/howtos/10g/usingdatasources/using_datasources.html

Sun datasource overview why to use JNDI
http://java.sun.com/j2se/1.4.2/docs/guide/jdbc/getstart/datasource.html

Using OracleDataSource();
http://www.oracle.com/technology/products/oracle9i/daily/jun24.html




Monday, September 22, 2008

Enums, Iterator and enumerations in java

Creating Enums consist in creating classes behing the scene:
http://chaoticjava.com/posts/tricks-with-enums/

Iteror and Enumeration are interfaces
Enumeration are often considered faster than Iterators:
http://javabeanz.wordpress.com/2007/06/29/iterator-vs-enumeration/

Monday, September 8, 2008

List of the UML Class Diagram relationships


In java Object reference are passed by Value

class Dog{}

public void foo(Dog d)
{
d.serName("Fifi");
}

Dog myDog; //my Dog is a reference to a object of type Dog
myDog = new Dog();
foo(myDog); // The reference myDog to a object of type Dog is passed by Value

Result:
Dog name is changed to Fifi

http://javadude.com/articles/passbyvalue.htm

http://www.geocities.com/mcglonec1978/javacert/paramPassing_highres.html

Friday, September 5, 2008

Oracle Business Rules tutorial


How to create the WebDAv repository:

Oracle adapters overview

















Oracle Adapters normalise and abstract the interface to communicate with enteprise applications and translates the application data to standards XML and back.

Oracle Adapters provide an integrated view of data and allow multiple applications to be integrated with each other in a harmonious manner.

Oracle Adapters are deployed on top of Oracle Application Server.

There is a variety of adapters like database adapters, AQ (advanced queue) adapters, file adapters, FTP adapters or Applications adapters.
links:
Oracle Adapters for databases:
Oracle Adapters for Oracle Applications