콘텐츠로 이동

12. API 레퍼런스#

주요 클래스 요약#

클래스/인터페이스 패키지 설명
AltibaseClient com.altibase.document.api 데이터베이스 연결 팩토리
AltibaseDatabase com.altibase.document.api 데이터베이스 작업 인터페이스
AltibaseCollection com.altibase.document.api 컬렉션(CRUD) 인터페이스
AltibaseDocument com.altibase.document.api JSON 문서 클래스
Filters com.altibase.document.api 필터 빌더 유틸리티
FindOperation com.altibase.document.api 조회 연산 빌더
DocResult com.altibase.document.api 조회 결과 컨테이너
InsertResult com.altibase.document.api 삽입 결과
UpdateResult com.altibase.document.api 수정/삭제 결과
CollectionOptionsBuilder com.altibase.document.util 컬렉션 옵션 빌더
CollectionMetaData com.altibase.document.api.domain 컬렉션 메타데이터
KeyColumnType com.altibase.document.api 키 컬럼 타입 열거형
KeyGenerationType com.altibase.document.api 키 생성 방식 열거형
JsonColumnType com.altibase.document.api JSON 저장 타입 열거형
DatabaseInstaller com.altibase.document.installer 데이터베이스 설치 도구
DatabaseUninstaller com.altibase.document.installer 데이터베이스 제거 도구

지원하는 MongoDB 연산자#

연산자 설명 예시
$eq 같음 {"status": {"$eq": "active"}}
$ne 다름 {"status": {"$ne": "deleted"}}
$gt 초과 {"age": {"$gt": 30}}
$gte 이상 {"price": {"$gte": 1000}}
$lt 미만 {"stock": {"$lt": 10}}
$lte 이하 {"discount": {"$lte": 0.5}}
$in 포함 {"status": {"$in": "a", "b"}}
$nin 미포함 {"type": {"$nin": "x", "y"}}
$and AND {"$and": {...}, {...}}
$or OR {"$or": {...}, {...}}
$nor NOR (모두 불일치) {"$nor": {...}, {...}}
$not NOT {"field": {"$not": {...}}}
$exists 존재 {"field": {"$exists": true}}
$regex 정규표현식 {"name": {"$regex": "^John"}}
$elemMatch 배열 요소 {"arr": {"$elemMatch": {...}}}