Record Class SqlParser.CreateTypeStatement
java.lang.Object
java.lang.Record
com.loomcache.server.query.SqlParser.CreateTypeStatement
- Enclosing class:
SqlParser
-
Constructor Summary
ConstructorsConstructorDescriptionCreateTypeStatement(SqlType type, boolean replaceExisting, boolean ifNotExists) Creates an instance of aCreateTypeStatementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theifNotExistsrecord component.booleanReturns the value of thereplaceExistingrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
CreateTypeStatement
Creates an instance of aCreateTypeStatementrecord class.- Parameters:
type- the value for thetyperecord componentreplaceExisting- the value for thereplaceExistingrecord componentifNotExists- the value for theifNotExistsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
replaceExisting
public boolean replaceExisting()Returns the value of thereplaceExistingrecord component.- Returns:
- the value of the
replaceExistingrecord component
-
ifNotExists
public boolean ifNotExists()Returns the value of theifNotExistsrecord component.- Returns:
- the value of the
ifNotExistsrecord component
-