본문 바로가기

Language

ibatis의 탄생 철학 출처: http://blog.naver.com/2000yujin/130154067545 : iBATIS 역사: iBATIS 이해: 데이터베이스 종류 iBATIS는 관계형 데이터베이스와 SQL의 가치를 인정하고 산업 전반에 걸친 SQL에 대한 투자를 그대로 이어가겠다는 생각을 기반으로 하고 있다. iBATIS는 SQL로 더 쉽게 작업할 수 있도록 SQL 사용을 기꺼이 받아들였고, 현대적인 객체 지향 소프트웨어와의 통합을 더 쉽게 만들어 주는 퍼시스턴스 계층(persistence layer) 프레임워크로 자리매김 했다. 1.1 복합적인 솔루션 : 최고 중의 최고들로 구성하기 현대 세계에서는 복합적인 솔루션을 어디서든 찾아볼 수 있다. 겉으로 보기엔 서로 반대되는 두 생각을 받아들여 중간에서 그것들을 합치면 .. 더보기
IBatisNet.Common.Exceptions.ConfigurationException inner Exception문구 - The error occurred while loading SqlMap.- Check the parameter mapping typeHandler attribute '' (must be a ITypeHandlerCallback implementation).- The error occurred in . - Check the GetCpMetadataDetailView. IBatisNet.Common.Exceptions.ConfigurationException 에러 대처법 이건 쿼리 나 코드 문제가 아니다 아.. 쿼리 일 수도 있나? 여튼. ibatis 문법 문제다. parameterClass에 바인딩 되는 필드 명(오타 포함) 문제일 수도 있고 형식 문제일 수도 있다.거의.. 더보기
[C#] 파일 읽기와 쓰기 처리 using System.IO; using System.Xml; string strSaveFilePath = "C:\\test.txt"; StreamReader SRead = new StreamReader(strSaveFilePath, System.Text.Encoding.UTF8); string strFileLine = string.Empty; while((strFileLine = SRead.ReadLine()) != null) { Console.WriteLine(strFileLine); } SRead.Close(); string strTest = "testtest"; StreamWriter SWrite = new StreamWriter(strSaveFilePath,false,System.Text.Enc.. 더보기
DateTime.ToString 메서드 (String) 출처: msdn using System; public class DateToStringExample { public static void Main() { DateTime dateValue = new DateTime(2008, 6, 15, 21, 15, 07); // Create an array of standard format strings. string[] standardFmts = {"d", "D", "f", "F", "g", "G", "m", "o", "R", "s", "t", "T", "u", "U", "y"}; // Output date and time using each standard format string. foreach (string standardFmt in standardFmts) .. 더보기
Decimal.ToString 메서드 (String) 출처: MSDNdecimal value = 16325.62m; string specifier; // Use standard numeric format specifiers. specifier = "G"; Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier)); // Displays: G: 16325.62 specifier = "C"; Console.WriteLine("{0}: {1}", specifier, value.ToString(specifier)); // Displays: C: $16,325.62 specifier = "E04"; Console.WriteLine("{0}: {1}", specifier, value.ToString(spe.. 더보기
C# Get Web Source / 웹사이트 소스 가져오기 using System.Net; //... using (WebClient client = new WebClient ()) // WebClient class inherits IDisposable { client.DownloadFile("http://yoursite.com/page.html", @"C:\localfile.html"); // Or you can get the file content without saving it: string htmlCode = client.DownloadString("http://yoursite.com/page.html"); //... } 더보기
XML 특수문자 안되는 특수문자: !@#$%^+\|:;{}[]되는 특수문자: *_/변환시킬수 있는 특수문자: " , &, ' , 더보기
[iBatis]동적 쿼리문 생성 http://blog.paran.com/devtopia/13828096>실무에서 SQL문을 작성하다 보면 동적인 쿼리문 작성을 작성해야 할 때가 많이 있다.이때 지겹게 if~else if 문을 통해 아주 지저분한 소스 코드를 생성할 때가 왕왕 있게 마련이다.이때 ibatis에서는 아주 깔금하게 구현할 수 있는 방법을 제공해 준다. select * from account (acc_first_name = #firstName# acc_last_name = #lastName# ) acc_email like #emailAddress# acc_id = #id# order by acc_last_name 상황에 의존적인 위 동적 statement로 부터 각각 다른 16가지의 SQL문이 생성될 수 있다. if-else구.. 더보기
ibatis xml 문법 실무에서 SQL문을 작성하다 보면 동적인 쿼리문 작성을 작성해야 할 때가 많이 있다.이때 지겹게 if~else if 문을 통해 아주 지저분한 소스 코드를 생성할 때가 왕왕 있게 마련이다.이때 ibatis에서는 아주 깔금하게 구현할 수 있는 방법을 제공해 준다.   select * from account            (acc_first_name = #firstName#           acc_last_name = #lastName#        )              acc_email like #emailAddress#              acc_id = #id#        order by acc_last_name 상황에 의존적인 위 동적 statement로 부터 각각 다른 16가지의 S.. 더보기
집합쿼리 union, intersect, minus ☞ 집합 쿼리(UNION, INTERSECT, MINUS) 집합 연산자를 사용시 집합을 구성할 컬러의 데이터 타입이 동일해야 합니다. ◈ UNION : 합집합 ◈ UNION ALL : 공통원소 두번씩 다 포함한 합집합 ◈ INTERSECT : 교집합 ◈ MINUS : 차집합 ☞ UNION ◈ UNION은 두 테이블의 결합을 나타내며, 결합시키는 두 테이블의 중복되지 않은 값들을 반환 합니다. SQL>SELECT deptno FROM emp UNION SELECT deptno FROM dept; DEPTNO ---------- 10 20 30 40 ☞ UNION ALL ◈ UNION과 같으나 두 테이블의 중복되는 값까지 반환 합니다. SQL>SELECT deptno FROM emp UNION ALL SEL.. 더보기