2014-09-12 3 views
0
 
/** 
    * Returns the property key with the given name. If automatic type making is enabled, it will make the property key 
    * using the configured default type maker if a key with the given name does not exist. 
    * 
    * @param name name of the property key to return 
    * @return the property key with the given name 
    * @throws IllegalArgumentException if a property key with the given name does not exist or if the 
    *         type with the given name is not a property key 
    * @see PropertyKey 
    */ 
    public PropertyKey getPropertyKey(String name); 

getPropertyKey 메서드는 항상 prpertyKey를 반환합니다.Titan 데이터베이스에 이미 존재하는 PropertyKey를 확인하는 방법

답변

0

키가 데이터베이스 사용에 존재하는지 확인하려면 다음

타이탄의 최신 버전 (1.0.0)는 속성 키 타이탄 DB 스키마에 존재하는지 확인하기 위해 com.thinkaurelius.titan.core.TitanTransaction를 사용할 수있는 경우
mgmt.containsRelationType(keyToCheck) 
관련 문제