foreign-key (Foreign Key)

외래키를 구성하는 요소를 얻기 위해 스텝-인 탐색을 이용할 수 있습니다:

// 특정 외래키를 담은 모델 컨텍스트
var fkCtx = ...;

fkCtx.select(function(it){
	return it.get("type" == "column-reference");
}).each(function(it){
	logf("부모컬럼:%s, 자식컬럼:%s\n",
		it.get("parent-column").get("logical-name"),
		it.get("child-column").get("logical-name")
	);
});

You can use the step-in navigation to get the elements that makes up the foreign key:

// Context of the model that contain a particular table
var fkCtx = ...;

fkCtx.select(function(it){
	return it.get("type" == "column-reference");
}).each(function(it){
	logf("parent column:%s, child column:%s\n",
		it.get("parent-column").get("logical-name"),
		it.get("child-column").get("logical-name")
	);
});

지원 속성

Supported Types