Package io.manebot.database.model
Class PluginProperty
- java.lang.Object
-
- io.manebot.database.model.TimedRow
-
- io.manebot.database.model.PluginProperty
-
- All Implemented Interfaces:
PluginProperty
@Entity public class PluginProperty extends TimedRow implements PluginProperty
-
-
Constructor Summary
Constructors Constructor Description PluginProperty(Database database)
PluginProperty(Database database, Plugin plugin, java.lang.String name, java.lang.String value)
-
Method Summary
Modifier and Type Method Description java.lang.String
getName()
Gets the unique name of this property.int
getPluginConfigurationId()
PluginRegistration
getPluginRegistration()
Gets the plugin registration associated with this property.java.lang.String
getValue()
Gets the user-assigned value of this property.int
hashCode()
void
remove()
void
setValue(java.lang.String value)
-
Methods inherited from class io.manebot.database.model.TimedRow
getCreated, getCreatedDate, getUpdated, getUpdatedDate, setCreated, setCreated, setCreatedDate, setUpdated, setUpdated, setUpdatedDate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.manebot.plugin.PluginProperty
getPlugin
-
-
-
-
Method Detail
-
getPluginConfigurationId
public int getPluginConfigurationId()
-
getPluginRegistration
public PluginRegistration getPluginRegistration()
Description copied from interface:PluginProperty
Gets the plugin registration associated with this property.- Specified by:
getPluginRegistration
in interfacePluginProperty
-
getName
public java.lang.String getName()
Description copied from interface:PluginProperty
Gets the unique name of this property.- Specified by:
getName
in interfacePluginProperty
- Returns:
- name of the property.
-
getValue
public java.lang.String getValue()
Description copied from interface:PluginProperty
Gets the user-assigned value of this property.- Specified by:
getValue
in interfacePluginProperty
- Returns:
- user assigned value, null if not defined.
-
setValue
public void setValue(java.lang.String value)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
remove
public void remove()
-
-