The persistent classes aim to make data persistence easy Persistent類旨在使數(shù)據(jù)持久性變得簡單。
Look at the home page of the persistent classes see 有關(guān)文檔和示例,請參閱persistent類主頁(請參閱
Inheriting from persistent classes 從persistent類繼承
The cpan persistent classes are powerful allies in your search for data persistence solutions Cpan persistent類是您搜索數(shù)據(jù)持久性解決方案時的有力幫手。
With experience , you may find that the best way to use persistent classes is to inherit from them 通過使用,您將發(fā)現(xiàn),使用persistent類的最好方法是繼承它們。
See " inheriting from persistent classes " for a way to isolate programs from the database choice by using inheritance 有關(guān)通過使用繼承來將程序與數(shù)據(jù)庫選項隔離的方法,請參閱
In the persistent classes , the datastore is an abstract storage device , which can be a file or a database , for example 在persistent類中,數(shù)據(jù)存儲器是抽象存儲設(shè)備,例如,它可以是文件或數(shù)據(jù)庫。
By dave winters , has additional information about the persistent classes on this page , which you can also find on the cpan search page 上有關(guān)于persistent類的詳細信息,也可以在cpan搜索頁上找到。
Remember that good design and a clear definition of the attributes are just as important as the persistent classes in achieving successful data persistence 請記住,在實現(xiàn)成功的數(shù)據(jù)持久性時,好的設(shè)計和屬性的清晰定義與persistent類同等重要。
The table must match the definition of your attributes ; for example , the primary database key for the equations table must be the primary key of the persistent class as well 表必需與屬性定義匹配,例如,等式表的主數(shù)據(jù)庫鍵必須也是persistent類的主鍵。