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.StringgetName()Gets the unique name of this property.intgetPluginConfigurationId()PluginRegistrationgetPluginRegistration()Gets the plugin registration associated with this property.java.lang.StringgetValue()Gets the user-assigned value of this property.inthashCode()voidremove()voidsetValue(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:PluginPropertyGets the plugin registration associated with this property.- Specified by:
getPluginRegistrationin interfacePluginProperty
-
getName
public java.lang.String getName()
Description copied from interface:PluginPropertyGets the unique name of this property.- Specified by:
getNamein interfacePluginProperty- Returns:
- name of the property.
-
getValue
public java.lang.String getValue()
Description copied from interface:PluginPropertyGets the user-assigned value of this property.- Specified by:
getValuein interfacePluginProperty- Returns:
- user assigned value, null if not defined.
-
setValue
public void setValue(java.lang.String value)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
remove
public void remove()
-
-