示例#1
0
 def loadAll(self, class_alias):
     class_def = self.getClassDefByAlias(class_alias)
     session = Schema().session
     return session.query(class_def.class_).all()
示例#2
0
 def load(self, class_alias, key):
     class_def = self.getClassDefByAlias(class_alias)
     session = Schema().session
     return session.query(class_def.class_).get(key)
示例#3
0
 def remove(self, class_alias, key):
     class_def = self.getClassDefByAlias(class_alias)
     session = Schema().session
     obj = session.query(class_def.class_).get(key)
     session.delete(obj)
     session.commit()
示例#4
0
 def loadAll(self, class_alias):
     klass = pyamf.load_class(class_alias).klass
     session = Schema().session
     return session.query(klass).all()
示例#5
0
 def remove(self, class_alias, key):
     klass = pyamf.load_class(class_alias).klass
     session = Schema().session
     obj = session.query(klass).get(key)
     session.delete(obj)
     session.commit()
示例#6
0
 def remove(self, class_alias, key):
     klass = pyamf.load_class(class_alias).klass
     session = Schema().session
     obj = session.query(klass).get(key)
     session.delete(obj)
     session.commit()
示例#7
0
 def load(self, class_alias, key):
     klass = pyamf.load_class(class_alias).klass
     session = Schema().session
     return session.query(klass).get(key)
示例#8
0
 def loadAll(self, class_alias):
     klass = pyamf.load_class(class_alias).klass
     session = Schema().session
     return session.query(klass).all()
示例#9
0
 def load(self, class_alias, key):
     klass = pyamf.load_class(class_alias).klass
     session = Schema().session
     return session.query(klass).get(key)
示例#10
0
 def loadAll(self, class_alias):
     class_def = self.getClassDefByAlias(class_alias)
     session = Schema().session
     return session.query(class_def.class_).all()
示例#11
0
 def remove(self, class_alias, key):
     class_def = self.getClassDefByAlias(class_alias)
     session = Schema().session
     obj = session.query(class_def.class_).get(key)
     session.delete(obj)
     session.commit()
示例#12
0
 def load(self, class_alias, key):
     class_def = self.getClassDefByAlias(class_alias)
     session = Schema().session
     return session.query(class_def.class_).get(key)