mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1348 - ENH: Add support for bitwiseAnd / bitwiseAny / bitwiseAll .. expressions for use with integer/long "Flags" properties
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package io.ebeaninternal.server.expression;
|
||||
|
||||
/**
|
||||
* Bitwise expression operator.
|
||||
*/
|
||||
public enum BitwiseOp {
|
||||
|
||||
/**
|
||||
* All flags are set (derived expression BITAND flags == flags).
|
||||
*/
|
||||
ALL,
|
||||
|
||||
/**
|
||||
* Any flags are set (derived expression BITAND flags != 0).
|
||||
*/
|
||||
ANY,
|
||||
|
||||
/**
|
||||
* BITAND flags == match.
|
||||
*/
|
||||
AND
|
||||
}
|
||||
Reference in New Issue
Block a user