Package io.ebeaninternal.server.deploy
Class IndexDefinition
- java.lang.Object
-
- io.ebeaninternal.server.deploy.IndexDefinition
-
public class IndexDefinition extends Object
Holds multiple column unique constraints defined for an entity.
-
-
Constructor Summary
Constructors Constructor Description IndexDefinition(String[] columns)
Create a unique constraint given the column names.IndexDefinition(String[] columns, String name, boolean unique, io.ebean.annotation.Platform[] platforms, boolean concurrent, String definition)
Create from Index annotation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getColumns()
Return the columns that make up this unique constraint.String
getDefinition()
Return the raw definition of the index if supplied.String
getName()
Return the index name (can be null).io.ebean.annotation.Platform[]
getPlatforms()
Return the platforms this index applies to.boolean
isConcurrent()
Return true if this index has the concurrent flag.boolean
isUnique()
Return true if this is a unique constraint.boolean
isUniqueConstraint()
Return true if this can be used as a unique constraint.
-
-
-
Constructor Detail
-
IndexDefinition
public IndexDefinition(String[] columns, String name, boolean unique, io.ebean.annotation.Platform[] platforms, boolean concurrent, String definition)
Create from Index annotation.
-
IndexDefinition
public IndexDefinition(String[] columns)
Create a unique constraint given the column names.
-
-
Method Detail
-
isUniqueConstraint
public boolean isUniqueConstraint()
Return true if this can be used as a unique constraint.
-
isUnique
public boolean isUnique()
Return true if this is a unique constraint.
-
getColumns
public String[] getColumns()
Return the columns that make up this unique constraint.
-
getPlatforms
public io.ebean.annotation.Platform[] getPlatforms()
Return the platforms this index applies to.
-
isConcurrent
public boolean isConcurrent()
Return true if this index has the concurrent flag.
-
getDefinition
public String getDefinition()
Return the raw definition of the index if supplied.
-
-