java.lang.Object
java.lang.Record
org.litebridge.db.spi.alias.AliasedTable
- All Implemented Interfaces:
Aliased<Table>,SelectTarget
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.litebridge.db.spi.query.SelectTarget
SelectTarget.Void -
Constructor Summary
ConstructorsConstructorDescriptionAliasedTable(String alias, Table target) Creates an instance of aAliasedTablerecord class. -
Method Summary
Modifier and TypeMethodDescriptionalias()Returns the value of thealiasrecord component.booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AliasedTable
Creates an instance of aAliasedTablerecord class.- Parameters:
alias- the value for thealiasrecord componenttarget- the value for thetargetrecord component
-
-
Method Details
-
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). -
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. -
alias
Returns the value of thealiasrecord component. -
target
Returns the value of thetargetrecord component.
-