com.zepben.evolve.database.sqlite.cim.tables.associations.TableProtectionRelaySchemesProtectionRelayFunctions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evolve-sdk Show documentation
Show all versions of evolve-sdk Show documentation
SDK for interaction with the evolve platform
/*
* Copyright 2024 Zeppelin Bend Pty Ltd
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package com.zepben.evolve.database.sqlite.cim.tables.associations
import com.zepben.evolve.database.sqlite.cim.tables.Column
import com.zepben.evolve.database.sqlite.cim.tables.Column.Nullable.NOT_NULL
import com.zepben.evolve.database.sqlite.cim.tables.SqliteTable
/**
* A class representing the association between ProtectionRelaySchemes and ProtectionRelayFunctions.
*
* @property PROTECTION_RELAY_SCHEME_MRID A column storing the mRID of ProtectionRelaySchemes.
* @property PROTECTION_RELAY_FUNCTION_MRID A column storing the mRID of ProtectionRelayFunctions.
*/
@Suppress("PropertyName")
class TableProtectionRelaySchemesProtectionRelayFunctions : SqliteTable() {
val PROTECTION_RELAY_SCHEME_MRID: Column = Column(++columnIndex, "protection_relay_scheme_mrid", "TEXT", NOT_NULL)
val PROTECTION_RELAY_FUNCTION_MRID: Column = Column(++columnIndex, "protection_relay_function_mrid", "TEXT", NOT_NULL)
override val name: String = "protection_relay_schemes_protection_relay_functions"
override val uniqueIndexColumns: MutableList> =
super.uniqueIndexColumns.apply {
add(listOf(PROTECTION_RELAY_SCHEME_MRID, PROTECTION_RELAY_FUNCTION_MRID))
}
override val nonUniqueIndexColumns: MutableList> =
super.nonUniqueIndexColumns.apply {
add(listOf(PROTECTION_RELAY_SCHEME_MRID))
add(listOf(PROTECTION_RELAY_FUNCTION_MRID))
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy