MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
persistentobject.class
Ir para a documentação deste ficheiro.
1<?php
2
4{
5 private $isPersistent;
6 private $isProxy;
7 private $timeStamp;
8 private $manager;
9 private $factory;
10
11 function __construct()
12 {
13 $miolo = MIOLO::getInstance();
14 $this->factory = $miolo->persistence;
15 $this->manager = $this->factory->getPersistentManager();
16 }
17
18 function getClassMap()
19 {
20 return $this->factory->getClassMap($this);
21 }
22
23 function setPersistent($value)
24 {
25 $this->isPersistent = $value;
26 }
27
28 function isPersistent()
29 {
30 return $this->isPersistent;
31 }
32
33 function setProxy($value)
34 {
35 $this->isProxy = $value;
36 }
37
38 function isProxy()
39 {
40 return $this->isProxy;
41 }
42
43 function retrieve()
44 {
45 $this->manager->retrieveObject($this);
46 }
47
48 function retrieveFromQuery(MQuery $query)
49 {
50 $this->manager->retrieveObjectFromQuery($this, $query);
51 }
52
53 function retrieveFromCriteria(PersistentCriteria $criteria, $parameters=NULL)
54 {
55 $this->manager->retrieveObjectFromCriteria($this, $criteria, $parameters);
56 }
57
58 function retrieveAssociation($target, $orderAttributes = null, $distinct = false)
59 {
60 $this->manager->retrieveAssociation($this, $target, $distinct);
61 }
62
63 function retrieveAssociationAsCursor($target, $orderAttributes = null)
64 {
65 $this->manager->retrieveAssociationAsCursor($this, $target);
66 }
67
68 function retrieveAsProxy()
69 {
70 $this->manager->retrieveObjectAsProxy($this);
71 }
72
73 function getCriteria()
74 {
75 return $this->manager->getRetrieveCriteria($this);
76 }
77
79 {
80 return $this->manager->getDeleteCriteria($this);
81 }
82
83 function update()
84 {
85 $this->manager->saveObjectRaw($this);
86 }
87
88 function save()
89 {
90 $this->manager->saveObject($this);
91 }
92
93 function saveAssociation($target)
94 {
95 $this->manager->saveAssociation($this, $target);
96 }
97
98 function delete()
99 {
100 $this->manager->deleteObject($this);
101 }
102
103 function deleteAssociation($target, $object)
104 {
105 $this->manager->deleteAssociation($this, $target, $object);
106 }
107}
108?>
static getInstance()
Definição miolo.class:134
retrieveAssociation($target, $orderAttributes=null, $distinct=false)
retrieveFromQuery(MQuery $query)
retrieveAssociationAsCursor($target, $orderAttributes=null)
deleteAssociation($target, $object)
retrieveFromCriteria(PersistentCriteria $criteria, $parameters=NULL)