반응형

iBATIS - Overview



(원문 위치 : http://www.tutorialspoint.com/ibatis/ibatis_overview.htm )

iBATIS는 Java, .NET, Ruby on Rails에서 객체와 SQL databsse 사이에서 mapping을 자동화하는 framework이다. 매핑은 XML 설정파일에서 SQL 문장을 패키징하는 것으로 프로그램 로직으로부터 분리(decoupled)되어진다. 

iBATIS는 가벼운(lightweight) framework이고 POJO를 사용하기 좋은 API이다. (음..이부분은 명확히는 모르겠음... iBATIS is a lightweight framework and persistence API good for persisting POJOs)

iBATIS는 data mapper로써 알려져있고 database table의 컬럼과 class property사이에서 결과(result)와 인자(parameter)를 매핑한다.

iBATIS와 Hibernate같은 다른 framework사이의 중요한 차이점은 iBATIS는 SQL의 사용을 강조하는 반면 다른 framework는 전형적으로 Hibernate Query Language(HQL) 또는 Enterprise JavaBeans Query Language(EJB QL)을 갖는 것 같이 custom query language를 사용한다.

iBATIS Design Philosophies

iBATIS는 아래 설계철학으로부터 왔다.
  • Simplicity − iBATIS is widely regarded as being one of the simplest persistence frameworks available today. (단순화 - iBATIS는 오늘날 가능한 가장 단단한 framework중 하나이다.) 

  • Fast Development − iBATIS does all it can to facilitate hyper-fast development. (빠른 개발 - iBATIS는 매우빠른 개발을 돕는 모든것을 할 수 있다.)

  • Portability − iBATIS can be implemented for nearly any language or platform such as Java, Ruby, and C# for Microsoft .NET. (iBATIS는 Java, Ruby, C#같은 platform 또는 언어로 구현되어질 수 있다.)

  • Independent Interfaces − iBATIS provides database-independent interfaces and APIs that help the rest of the application remain independent of any persistence-related resources. (iBATIS는 어떠한 persistence-related 리소스와 독립적인 프로그램의 나머지를 돕는 database 독립적 interface와 API를 제공한다.)

  • Open source − iBATIS is free and an open source software. (오픈 소스 - iBATIS는 공짜이고 오픈소스 소프트웨어이다.)

Advantages of iBATIS

iBATIS는 아래 이점을 제공한다.
  • Supports stored procedures − iBATIS encapsulates SQL in the form of stored procedures so that business logic is kept out of the database, and the application is easier to deploy and test, and is more portable. (Stored procedure 지원 - iBATIS는 비즈니스 로직이 database 밖에 유지되도록 stored procedure의 현태로 SQL을 캡슐화하므로 배포화 테스트가 더쉽고 더 portable하다.)

  • Supports inline SQL − No precompiler is needed, and you have full access to all of the features of SQL. (inline SQL 지원 - precompliler가 필요없이 SQL의 모든 특성에 접근할 수있다.)

  • Supports dynamic SQL − iBATIS provides features for dynamically building SQL queries based on parameters. (dynamic SQL 지원 - iBATIS는 인자에 기초한 동적인 SQL query를 만들기 위한 특성을 지원한다.)

  • Supports O/RM − iBATIS supports many of the same features as an O/RM tool, such as lazy loading, join fetching, caching, runtime code generation, and inheritance. (iBATIS는 lazy loading, join fetching, caching, runtime code 생성, 상속 같은 O/RM과 같은 동일상 특성의 많은 부분을 지원한다.)

iBATIS는 database orientied application을 개발하는 동안 JAVA programming language를 사용한다.더 진행하기 전에 순차적 그리고 객체지향 프로그램 - 제어구조, data structure, 변수, 클래스, 객체 등의 기본 이해를 확실하게 만들어야 한다.

반응형

+ Recent posts