![JAR search and dependency download from the Maven repository](/logo.png)
com.infomaximum.platform.sdk.domainobject.module.ModuleReadable Maven / Gradle / Ivy
package com.infomaximum.platform.sdk.domainobject.module;
import com.infomaximum.cluster.struct.Version;
import com.infomaximum.database.anotation.Entity;
import com.infomaximum.database.anotation.Field;
import com.infomaximum.database.anotation.HashIndex;
import com.infomaximum.database.domainobject.DomainObject;
import com.infomaximum.database.exception.DatabaseException;
@Entity(
namespace = "com.infomaximum.subsystems",
name = "Module",
fields = {
@Field(name = "uuid", number = ModuleReadable.FIELD_UUID, type = String.class),
@Field(name = "version", number = ModuleReadable.FIELD_VERSION, type = String.class)
},
hashIndexes = {
@HashIndex(fields = {ModuleReadable.FIELD_UUID})
}
)
public class ModuleReadable extends DomainObject {
public final static int FIELD_UUID = 0;
public final static int FIELD_VERSION = 1;
public ModuleReadable(long id) {
super(id);
}
public String getUuid() throws DatabaseException {
return getString(FIELD_UUID);
}
public Version getVersion() throws DatabaseException {
return Version.parse(getString(FIELD_VERSION));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy