Class Player

  • All Implemented Interfaces:
    com.github.fmjsjx.libcommon.bson.model.BsonModel

    public class Player
    extends com.github.fmjsjx.libcommon.bson.model.RootModel<Player>
    • Field Summary

      • Fields inherited from class com.github.fmjsjx.libcommon.bson.model.ObjectModel

        FULL, updatedFields
    • Constructor Summary

      Constructors 
      Constructor Description
      Player()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void appendFieldUpdates​(java.util.List<org.bson.conversions.Bson> updates)  
      protected int deletedSize()  
      java.time.LocalDateTime getCreateTime()  
      com.github.fmjsjx.libcommon.bson.model.DefaultMapModel<java.lang.String,​Equipment,​Player> getEquipments()  
      com.github.fmjsjx.libcommon.bson.model.SimpleMapModel<java.lang.Integer,​java.lang.Integer,​Player> getItems()  
      int getUid()  
      java.time.LocalDateTime getUpdateTime()  
      int getUpdateVersion()  
      Wallet getWallet()  
      int increaseUpdateVersion()  
      void load​(org.bson.Document src)  
      void reset()  
      protected void resetChildren()  
      void setCreateTime​(java.time.LocalDateTime createTime)  
      void setUid​(int uid)  
      void setUpdateTime​(java.time.LocalDateTime updateTime)  
      void setUpdateVersion​(int updateVersion)  
      org.bson.BsonDocument toBson()  
      java.util.Map<java.lang.Object,​java.lang.Object> toDelete()  
      org.bson.Document toDocument()  
      java.lang.Object toSubUpdate()  
      • Methods inherited from class com.github.fmjsjx.libcommon.bson.model.RootModel

        parent, toUpdates, xpath
      • Methods inherited from class com.github.fmjsjx.libcommon.bson.model.ObjectModel

        appendFullyUpdate, appendUpdates, fullyUpdate, fullyUpdate, resetStates, toUpdate, updated
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Player

        public Player()
    • Method Detail

      • getUid

        public int getUid()
      • setUid

        public void setUid​(int uid)
      • getWallet

        public Wallet getWallet()
      • getEquipments

        public com.github.fmjsjx.libcommon.bson.model.DefaultMapModel<java.lang.String,​Equipment,​Player> getEquipments()
      • getItems

        public com.github.fmjsjx.libcommon.bson.model.SimpleMapModel<java.lang.Integer,​java.lang.Integer,​Player> getItems()
      • getUpdateVersion

        public int getUpdateVersion()
      • setUpdateVersion

        public void setUpdateVersion​(int updateVersion)
      • increaseUpdateVersion

        public int increaseUpdateVersion()
      • getCreateTime

        public java.time.LocalDateTime getCreateTime()
      • setCreateTime

        public void setCreateTime​(java.time.LocalDateTime createTime)
      • getUpdateTime

        public java.time.LocalDateTime getUpdateTime()
      • setUpdateTime

        public void setUpdateTime​(java.time.LocalDateTime updateTime)
      • toBson

        public org.bson.BsonDocument toBson()
      • toDocument

        public org.bson.Document toDocument()
      • load

        public void load​(org.bson.Document src)
      • appendFieldUpdates

        protected void appendFieldUpdates​(java.util.List<org.bson.conversions.Bson> updates)
        Specified by:
        appendFieldUpdates in class com.github.fmjsjx.libcommon.bson.model.ObjectModel<Player>
      • resetChildren

        protected void resetChildren()
      • toSubUpdate

        public java.lang.Object toSubUpdate()
        Specified by:
        toSubUpdate in class com.github.fmjsjx.libcommon.bson.model.ObjectModel<Player>
      • toDelete

        public java.util.Map<java.lang.Object,​java.lang.Object> toDelete()
        Specified by:
        toDelete in interface com.github.fmjsjx.libcommon.bson.model.BsonModel
      • deletedSize

        protected int deletedSize()
      • reset

        public void reset()
        Specified by:
        reset in interface com.github.fmjsjx.libcommon.bson.model.BsonModel