bean类
2015-05-17 13:53:33 66 举报
Bean类是Java中一种特殊的类,主要用于封装数据。它遵循特定的命名规范和结构,以便在Java程序中轻松地进行对象管理和操作。Bean类通常包含私有属性、公共的getter和setter方法以及一个无参构造函数。这些属性用于存储数据,而getter和setter方法则用于访问和修改这些属性。无参构造函数允许在创建Bean对象时不传递任何参数。此外,Bean类还可以实现Serializable接口,以便于对象的序列化和反序列化。总之,Bean类是一种轻量级的数据容器,适用于表示简单的实体对象,如用户、订单等。
作者其他创作
大纲/内容
bean
bean包结构的类图
BaseBean
- Integer id: Integer- baseValue: String- baseType: String- text: String
+ getId()+setId(Integer id)+ getBaseValue()+setBaseValue(String baseValue)+ getBaseType()+ setBaseType(String baseType)+ getText()+ setText(String text)
ZlqsBean
- zlqsId: int - userId:int - userName:String- zlqsName:String - zlqsKeyWord:String- zlqsTime:String- zlqsAddress:String- zlqsPerson:String- zlqsImage:String- zlqsPhone:String- zlqsDetail:String- zlqsStatus:int- zlqsPostedTime:String
+ getZlqsId()+ setZlqsId(int zlqsId)+ getUserId()+ setUserId(int userId)+ getUserName()+ setUserName(String userName)+ getZlqsName()+ setZlqsName(String zlqsName) ......
MessageBean
- messageId:int- userId:int- messageLevel:int- messageReplyId:int- userName:String- messageDetail:String- messagePostedTime:String
+ getMessageId()+ setMessageId(int messageId+ getMessageLevel()+ setMessageLevel(int messageLevel)+ getMessageDetail()+ setMessageDetail(String messageDetail)+ getMessageReplyId()+ setMessageReplyId(int messageReplyId) ......
XwqsBean
- xwqsId:int - userId:int - userName:String - xwqsName:String - xwqsKeyWord:String - xwqsLostTime:String - xwqsLostAddress:String - xwqsPerson:String - xwqsPhone:String - xwqsImage:String - xwqsDetail:String - xwqsStatus:int - xwqsPostedTime:String - xwqsPostedTimeDiff:String
+ getXwqsId()+ setXwqsId(int XwqsId)+ getUserId()+ setUserId(int userId)+ getUserName()+ setUserName(String userName)+ getXwqsName()+ setXwqsName(String XwqsName) ......
UserBean
- userId:int - roleId:int - userStatus: int- userName:String- userPwd:String - userRealName:String - userPhone:String - userIdentity: String- userEmail:String-userPostedTime:String
+ getUserId() + setUserId(int userId)+ getRoleId()+ setRoleId(int roleId)+ getUserStatus()+ setUserStatus(int userStatus) + getUserName()+ setUserName(String userName) ......
0 条评论
下一页