Package io.inversion

Class Index

  • All Implemented Interfaces:
    java.io.Serializable

    public class Index
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_RESOURCE_KEY

        public static final java.lang.String TYPE_RESOURCE_KEY
        See Also:
        Constant Field Values
      • TYPE_PRIMARY_KEY

        public static final java.lang.String TYPE_PRIMARY_KEY
        See Also:
        Constant Field Values
      • TYPE_FOREIGN_KEY

        public static final java.lang.String TYPE_FOREIGN_KEY
        See Also:
        Constant Field Values
      • properties

        protected final java.util.List<Property> properties
      • name

        protected java.lang.String name
      • type

        protected java.lang.String type
      • unique

        protected boolean unique
    • Constructor Detail

      • Index

        public Index()
      • Index

        public Index​(java.lang.String name,
                     java.lang.String type,
                     boolean unique,
                     Property... properties)
      • Index

        public Index​(java.lang.String name,
                     java.lang.String type,
                     boolean unique,
                     int sequence,
                     Property property)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • isExclude

        public boolean isExclude()
      • getCollection

        public Collection getCollection()
      • getName

        public java.lang.String getName()
      • withName

        public Index withName​(java.lang.String name)
      • getType

        public java.lang.String getType()
      • withType

        public Index withType​(java.lang.String type)
      • isType

        public boolean isType​(java.lang.String... types)
      • isUnique

        public boolean isUnique()
      • withUnique

        public Index withUnique​(boolean unique)
      • size

        public int size()
      • withProperty

        public Index withProperty​(int sequence,
                                  Property property)
      • withProperties

        public Index withProperties​(Property... properties)
      • getProperties

        public java.util.List<Property> getProperties()
      • getProperty

        public Property getProperty​(int idx)
      • getColumnName

        public java.lang.String getColumnName​(int index)
      • getColumnNames

        public java.util.List<java.lang.String> getColumnNames()
      • getJsonName

        public java.lang.String getJsonName​(int index)
      • getJsonNames

        public java.util.List<java.lang.String> getJsonNames()
      • getProjection

        public Projection getProjection()