さらに101件...
Exists
boolean userExists =
new QContact()
.email.equalTo("rob@foo.com")
.exists();
select t0.id from contact t0 where t0.email = ? limit 1
existsクエリは、クエリをIdプロパティのみ選択するように設定し、maxRows = 1を使用してクエリが結果を返すかをテストする便利な機能です。
Exists
boolean userExists =
new QContact()
.email.equalTo("rob@foo.com")
.exists();
select t0.id from contact t0 where t0.email = ? limit 1
existsクエリは、クエリをIdプロパティのみ選択するように設定し、maxRows = 1を使用してクエリが結果を返すかをテストする便利な機能です。