ttomcat-1778514358873.zip-extract/_dependencies/maven/com.h2database_h2-2.2.220/org/h2/engine/NullsDistinct.java

Path
ttomcat-1778514358873.zip-extract/_dependencies/maven/com.h2database_h2-2.2.220/org/h2/engine/NullsDistinct.java
Status
scanned
Type
file
Name
NullsDistinct.java
Extension
.java
Programming language
Java
Mime type
text/x-java
File type
Java source, ASCII text
Tag

      
    
Rootfs path

      
    
Size
1152 (1.1 KB)
MD5
75e296da196baaa4f087d386254d497a
SHA1
59f1609cc6d59afcb1e00acf9d64ca8262bf02e9
SHA256
526efc9837f350bcc3d8717535f74c4246b0197f211789f4607e7a977d424721
SHA512

      
    
SHA1_git
634f39d45811097a60515742f3921722a5a5a1c0
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
NullsDistinct.java | 1.1 KB |

/* * Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, * and the EPL 1.0 (https://h2database.com/html/license.html). * Initial Developer: H2 Group */ package org.h2.engine; import org.h2.util.HasSQL; /** * Determines how rows with {@code NULL} values in indexed columns are handled * in unique indexes, unique constraints, or by unique predicate. */ public enum NullsDistinct implements HasSQL { /** * {@code NULL} values of columns are distinct. */ DISTINCT, /** * {@code NULL} values of columns are distinct only if all columns have null values. */ ALL_DISTINCT, /** * {@code NULL} values of columns are never distinct. */ NOT_DISTINCT; @Override public StringBuilder getSQL(StringBuilder builder, int sqlFlags) { builder.append("NULLS "); switch (this) { case DISTINCT: builder.append("DISTINCT"); break; case ALL_DISTINCT: builder.append("ALL DISTINCT"); break; case NOT_DISTINCT: builder.append("NOT DISTINCT"); } return builder; } }
Detected license expression
mpl-2.0 AND epl-1.0
Detected license expression (SPDX)
MPL-2.0 AND EPL-1.0
Percentage of license text
7.03
Copyrights
- end_line: 2
  copyright: Copyright 2004-2023 H2 Group. Multiple-Licensed
  start_line: 2
Holders
- holder: H2 Group. Multiple-Licensed
  end_line: 2
  start_line: 2
Authors

      
    
License detections License expression License expression SPDX
mpl_2_0_and_epl_1_0-796bf8d7-f485-3520-923d-e6a4b1ecd2f3 mpl-2.0 AND epl-1.0 MPL-2.0 AND EPL-1.0
URL Start line End line
https://h2database.com/html/license.html 3 3
Package URL License Primary language
pkg:osgi/com.h2database.source@2.2.220