Package app.ductape.sdk.database.types
Record Class SchemaTypes.IndexDefinition
java.lang.Object
java.lang.Record
app.ductape.sdk.database.types.SchemaTypes.IndexDefinition
- Enclosing class:
- SchemaTypes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolumns()Returns the value of thecolumnsrecord component.comment()Returns the value of thecommentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.include()Returns the value of theincluderecord component.method()Returns the value of themethodrecord component.name()Returns the value of thenamerecord component.table()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.unique()Returns the value of theuniquerecord component.where()Returns the value of thewhererecord component.
-
Constructor Details
-
IndexDefinition
public IndexDefinition(String name, String table, List<SchemaTypes.IndexColumn> columns, Boolean unique, String method, String where, List<String> include, String comment) Creates an instance of aIndexDefinitionrecord class.- Parameters:
name- the value for thenamerecord componenttable- the value for thetablerecord componentcolumns- the value for thecolumnsrecord componentunique- the value for theuniquerecord componentmethod- the value for themethodrecord componentwhere- the value for thewhererecord componentinclude- the value for theincluderecord componentcomment- the value for thecommentrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
table
Returns the value of thetablerecord component.- Returns:
- the value of the
tablerecord component
-
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
unique
Returns the value of theuniquerecord component.- Returns:
- the value of the
uniquerecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
where
Returns the value of thewhererecord component.- Returns:
- the value of the
whererecord component
-
include
Returns the value of theincluderecord component.- Returns:
- the value of the
includerecord component
-
comment
Returns the value of thecommentrecord component.- Returns:
- the value of the
commentrecord component
-