Package org.cyclos.model
Class EntityVO
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.EntityModel
-
- org.cyclos.model.EntityVO
-
- All Implemented Interfaces:
Serializable,IEntity
- Direct Known Subclasses:
AccessClientLogVO,AccessLogResult,AccountFeeLogEventVO,AccountHistoryEntryVO,AccountVO,AddressVO,AdQuestionVO,AdWebShopSettingVO,AgreementLogVO,AlertVO,AuthorizationLevelVO,BaseAccountLimitLogVO,BaseArchivedTransferVO,BasicUserVO,BrokeringLogVO,BrokeringVO,BulkActionUserVO,BulkActionVO,ChannelConfigurationVO,ContactVO,ContentVO,CustomFieldPossibleValueVO,CustomFieldValueVO,CustomOperationActionVO,CustomRecurringTaskLogVO,EntityLogVO,EntityPropertyLogVO,ErrorLogVO,ImportedFileVO,ImportedLineVO,InstallmentLocatorVO,InstallmentResultVO,InstallmentVO,IpAddressLogVO,IpAddressVO,MessageVO,NamedEntityVO,NotificationVO,OidcAuthorizationVO,OrderLogVO,OrderVO,OtpResult,PasswordLogVO,PinLocatorVO,ProductAssignmentLogVO,RecordVO,ReferenceVO,SmsMessageVO,StaticContentVO,TokenPermissionsVO,TokenVO,TransactionAuthorizationVO,TransactionResultVO,TransferStatusLogVO,TransVO,UserAccountFeeLogVO,UserGroupLogVO,UserIdentityProviderVO,VersionedVO,VoucherPackVO,VoucherTransactionVO,VoucherVO
public abstract class EntityVO extends EntityModel
An EntityVO is a view-only representation of an entity- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.cyclos.model.EntityModel
ID
-
-
Constructor Summary
Constructors Constructor Description EntityVO()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Id has priority.inthashCode()static Longid(EntityVO vo)Returns the identifier of the given vo, handling nullsstatic List<Long>ids(Iterable<? extends EntityVO> vos)Returns a list with vo identifiers, handling nullsstatic Set<Long>uniqueIds(Iterable<? extends EntityVO> vos)Returns a set with vo identifiers, handling nulls-
Methods inherited from class org.cyclos.model.EntityModel
doGetProperties, getId, setId, toString
-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, backup, changes, className, clearAttributes, copyPropertiesTo, copyPropertiesTo, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, restore, set, set, setAttribute, setWithPropagationId, values
-
-
-
-
Method Detail
-
ids
public static List<Long> ids(Iterable<? extends EntityVO> vos)
Returns a list with vo identifiers, handling nulls
-
uniqueIds
public static Set<Long> uniqueIds(Iterable<? extends EntityVO> vos)
Returns a set with vo identifiers, handling nulls
-
equals
public boolean equals(Object obj)
Id has priority. If one has an id and the other doesn't, they are different. If both have ids, check equality by id. If none has id, equality is based on the data accessor (all properties must be equal).- Overrides:
equalsin classEntityModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classEntityModel
-
-