Package org.teamapps.model.controlcenter
Class UdbOrganizationUnitView
java.lang.Object
org.teamapps.universaldb.pojo.AbstractUdbEntity<OrganizationUnitView>
org.teamapps.model.controlcenter.UdbOrganizationUnitView
- All Implemented Interfaces:
OrganizationUnitView,org.teamapps.universaldb.pojo.Entity<OrganizationUnitView>,org.teamapps.universaldb.pojo.Identifiable,org.teamapps.universaldb.record.EntityBuilder<OrganizationUnitView>
public class UdbOrganizationUnitView extends org.teamapps.universaldb.pojo.AbstractUdbEntity<OrganizationUnitView> implements OrganizationUnitView
-
Field Summary
Fields Modifier and Type Field Description protected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndexaddressprotected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndexchildrenprotected static org.teamapps.universaldb.index.text.TextIndexiconprotected static org.teamapps.universaldb.index.translation.TranslatableTextIndexnameprotected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndexparentprotected static org.teamapps.universaldb.index.TableIndextableprotected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndextypeFields inherited from interface org.teamapps.model.controlcenter.OrganizationUnitView
FIELD_ADDRESS, FIELD_CHILDREN, FIELD_ICON, FIELD_NAME, FIELD_PARENT, FIELD_TYPE -
Constructor Summary
Constructors Constructor Description UdbOrganizationUnitView()UdbOrganizationUnitView(int id, boolean createEntity) -
Method Summary
Modifier and Type Method Description OrganizationUnitViewbuild()OrganizationUnitViewbuild(int id)voiddelete()AddressViewgetAddress()static java.util.List<OrganizationUnitView>getAll()java.util.List<OrganizationUnitView>getChildren()java.util.BitSetgetChildrenAsBitSet()intgetChildrenCount()static intgetCount()java.lang.StringgetIcon()org.teamapps.universaldb.index.translation.TranslatableTextgetName()OrganizationUnitViewgetParent()OrganizationUnitTypeViewgetType()voidrestoreDeleted()UdbOrganizationUnitViewsave()static java.util.List<OrganizationUnitView>sort(java.util.BitSet recordIds, java.lang.String sortFieldName, boolean ascending, org.teamapps.universaldb.context.UserContext userContext, java.lang.String... path)static java.util.List<OrganizationUnitView>sort(java.util.List<OrganizationUnitView> list, java.lang.String sortFieldName, boolean ascending, org.teamapps.universaldb.context.UserContext userContext, java.lang.String... path)java.lang.StringtoString()Methods inherited from class org.teamapps.universaldb.pojo.AbstractUdbEntity
addMultiReferenceValue, clearChanges, clearFieldChanges, createdBy, createEntityList, createEntityList, createEntityList, deleteRecord, equals, getBooleanValue, getChangedValue, getChangeValue, getCorrelationId, getDateAsEpochMilli, getDateTimeAsEpochMilli, getDateTimeValue, getDateValue, getDoubleValue, getEntityValue, getEnumValue, getFloatValue, getId, getIntValue, getLocalDateValue, getLongValue, getMultiReferenceValue, getMultiReferenceValueAsBitSet, getMultiReferenceValueCount, getQualifiedName, getRecordUpdates, getReferenceChangeValue, getShortValue, getTableId, getTableIndex, getTextValue, getTimestampAsEpochMilli, getTimestampAsEpochSecond, getTimestampValue, getTimeValue, getTranslatableTextValue, hashCode, isChanged, isChanged, isDeleted, isModified, isRestorable, isStored, removeAllMultiReferenceValue, removeMultiReferenceValue, restoreDeletedRecord, saveRecord, saveRecord, setBooleanValue, setChangeValue, setDatabase, setDateAsEpochMilli, setDateTimeAsEpochMilli, setDateTimeValue, setDateValue, setDoubleValue, setEntityValue, setEnumValue, setFloatValue, setIntValue, setLocalDateAsEpochMilli, setLocalDateValue, setLongValue, setMultiReferenceValue, setShortValue, setSingleReferenceValue, setTextValue, setTimestampAsEpochMilli, setTimestampAsEpochSecond, setTimestampValue, setTimeValue, setTranslatableTextValue, sort, sortMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.teamapps.universaldb.pojo.Entity
clearChanges, clearFieldChanges, getEntityValue, getId, getRecordUpdates, isChanged, isDeleted, isModified, isRestorable, isStored, setEntityValueMethods inherited from interface org.teamapps.universaldb.pojo.Identifiable
getQualifiedName
-
Field Details
-
table
protected static org.teamapps.universaldb.index.TableIndex table -
name
protected static org.teamapps.universaldb.index.translation.TranslatableTextIndex name -
parent
protected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndex parent -
children
protected static org.teamapps.universaldb.index.reference.multi.MultiReferenceIndex children -
type
protected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndex type -
icon
protected static org.teamapps.universaldb.index.text.TextIndex icon -
address
protected static org.teamapps.universaldb.index.reference.single.SingleReferenceIndex address
-
-
Constructor Details
-
UdbOrganizationUnitView
public UdbOrganizationUnitView() -
UdbOrganizationUnitView
public UdbOrganizationUnitView(int id, boolean createEntity)
-
-
Method Details
-
getAll
-
sort
public static java.util.List<OrganizationUnitView> sort(java.util.List<OrganizationUnitView> list, java.lang.String sortFieldName, boolean ascending, org.teamapps.universaldb.context.UserContext userContext, java.lang.String... path) -
sort
public static java.util.List<OrganizationUnitView> sort(java.util.BitSet recordIds, java.lang.String sortFieldName, boolean ascending, org.teamapps.universaldb.context.UserContext userContext, java.lang.String... path) -
getCount
public static int getCount() -
build
- Specified by:
buildin interfaceorg.teamapps.universaldb.record.EntityBuilder<OrganizationUnitView>
-
build
- Specified by:
buildin interfaceorg.teamapps.universaldb.record.EntityBuilder<OrganizationUnitView>
-
getName
public org.teamapps.universaldb.index.translation.TranslatableText getName()- Specified by:
getNamein interfaceOrganizationUnitView
-
getParent
- Specified by:
getParentin interfaceOrganizationUnitView
-
getChildren
- Specified by:
getChildrenin interfaceOrganizationUnitView
-
getChildrenCount
public int getChildrenCount()- Specified by:
getChildrenCountin interfaceOrganizationUnitView
-
getChildrenAsBitSet
public java.util.BitSet getChildrenAsBitSet()- Specified by:
getChildrenAsBitSetin interfaceOrganizationUnitView
-
getType
- Specified by:
getTypein interfaceOrganizationUnitView
-
getIcon
public java.lang.String getIcon()- Specified by:
getIconin interfaceOrganizationUnitView
-
getAddress
- Specified by:
getAddressin interfaceOrganizationUnitView
-
save
- Specified by:
savein interfaceorg.teamapps.universaldb.pojo.Entity<OrganizationUnitView>
-
delete
public void delete()- Specified by:
deletein interfaceorg.teamapps.universaldb.pojo.Entity<OrganizationUnitView>
-
restoreDeleted
public void restoreDeleted()- Specified by:
restoreDeletedin interfaceorg.teamapps.universaldb.pojo.Entity<OrganizationUnitView>
-
toString
public java.lang.String toString()- Overrides:
toStringin classorg.teamapps.universaldb.pojo.AbstractUdbEntity<OrganizationUnitView>
-