com.github.rutledgepaulv.qbuilders.properties.virtual.ExistentialProperty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of q-builders Show documentation
Show all versions of q-builders Show documentation
A type-safe and database agnostic query building library.
The newest version!
/*
*
* * com.github.rutledgepaulv.qbuilders.properties.virtual.ExistentialProperty
* * *
* * * Copyright (C) 2016 Paul Rutledge
* * *
* * * This software may be modified and distributed under the terms
* * * of the MIT license. See the LICENSE file for details.
* *
*
*/
package com.github.rutledgepaulv.qbuilders.properties.virtual;
import com.github.rutledgepaulv.qbuilders.builders.QBuilder;
import com.github.rutledgepaulv.qbuilders.conditions.Condition;
/**
* For properties that may or may not exist.
*
* @param The final type of the builder.
*/
public interface ExistentialProperty> extends Property {
/**
* Specifies that the selected field must exist (and be non-null).
*
* @return The logically complete condition
*/
Condition exists();
/**
* Specifies that the selected field must not exist (or be equal to null).
*
* @return The logically complete condition
*/
Condition doesNotExist();
}