net.liftweb.mapper.ManyToMany.MappedManyToMany

class MappedManyToMany

class MappedManyToMany[O <: Mapper[O], K2, T2 <: KeyedMapper[K2, T2]](val joinMeta : MetaMapper[O], thisField : MappedForeignKey[Any, O, KeyedMapper[Any, Any]], val otherField : MappedForeignKey[K2, O, T2], val otherMeta : MetaMapper[T2], val qp : QueryParam[O]*)

 extends Buffer[T2]


This is the base class to use for fields that track many-to-many relationships.
param
otherMeta - The singleton of the other mapper
thisField - The foreign key in the join table that refers to this mapper's primaryKey.
otherField - The foreign key in the join table that refers to the other mapper's primaryKey
qp - Any QueryParams to limit entries in the join table (other than matching thisField to primaryKey) To limit children based on fields in the other table (not the join table), it is currently necessary to point the join mapper to a view which pulls the join table's fields as well as fields of the other table.
joinMeta - The singleton of the join table


Source: ManyToMany.scala(68)

 Constructors

def this(joinMeta : MetaMapper[O], thisField : MappedForeignKey[Any, O, KeyedMapper[Any, Any]], otherField : MappedForeignKey[K2, O, T2], otherMeta : MetaMapper[T2], qp : QueryParam[O]*)

 Fields

_joins.. protected var _joins List[O]
all.. def all List[T2]
children.. protected def children List[T2]
delete_!.. def delete_! Boolean
elements.. def elements Iterator[T2]
first.. def first A Seq
firstOption.. def firstOption Option[A] Seq
hasDefiniteSize.. def hasDefiniteSize Boolean Iterable
headOption.. def headOption Option[A] Seq
isEmpty.. override def isEmpty Boolean Seq
joins.. def joins List[O]
last.. def last A Seq
lastOption.. def lastOption Option[A] Seq
length.. def length Int
mkString.. def mkString String Iterable
projection.. override def projection Projection[A] Seq
readOnly.. def readOnly List[T2]
refresh.. def refresh List[T2]
removedJoins.. protected var removedJoins List[O]
reverse.. def reverse Seq[A] Seq
save.. def save Boolean
size.. def size Int Seq
stringPrefix.. protected override def stringPrefix String Buffer
toList.. def toList List[A] Iterable
toSeq.. override def toSeq Seq[A] Seq
toStream.. def toStream Stream[A] Iterable

 Methods

!=.. final def !=(arg0 : Object) Boolean AnyRef
!=.. final def !=(arg0 : Any) Boolean Any
+.. def +(arg0 : A) Buffer[A] Buffer
++.. override def ++[B >: A](arg0 : Iterable[B]) Seq[B] Buffer
++.. def ++(arg0 : Iterable[A]) Buffer[A] Buffer
++.. def ++(arg0 : Iterator[A]) Buffer[A] Buffer
++:.. def ++:(arg0 : Iterable[A]) Buffer[A] Buffer
++=.. def ++=(arg0 : Iterator[A]) Unit Buffer
++=.. def ++=(arg0 : Array[A], arg1 : Int, arg2 : Int) Unit Buffer
++=.. def ++=(arg0 : Iterable[A]) Unit Buffer
+:.. def +:(elem : T2) MappedManyToMany[O, K2, T2]
+=.. def +=(elem : T2) Unit
-=.. def -=(arg0 : A) Unit Buffer
/:.. def /:[B](arg0 : B) B Iterable
:\.. def :\[B](arg0 : B) B Iterable
<<.. def <<(arg0 : Message[(Location, A)]) Unit Buffer
==.. final def ==(arg0 : Any) Boolean Any
==.. final def ==(arg0 : Object) Boolean AnyRef
addString.. def addString(arg0 : StringBuilder) StringBuilder Iterable
addString.. def addString(arg0 : StringBuilder, arg1 : String, arg2 : String, arg3 : String) StringBuilder Iterable
addString.. def addString(arg0 : StringBuilder, arg1 : String) StringBuilder Iterable
andThen.. override def andThen[C](arg0 : (B) => C) PartialFunction[A, C] PartialFunction
append.. def append(arg0 : A*) Unit Buffer
appendAll.. def appendAll(arg0 : Iterable[A]) Unit Buffer
apply.. def apply(n : Int) T2
asInstanceOf.. final def asInstanceOf[T0] T0 Any
childAt.. protected def childAt(n : Int) T2
clear.. def clear Unit
clone.. override def clone Buffer[A] Buffer
compose.. def compose[A](arg0 : (A) => T1) (A) => R Function1
concat.. override def concat[B >: A](arg0 : Iterable[B]) Seq[B] Seq
contains.. def contains(arg0 : Any) Boolean Seq
containsSlice.. def containsSlice[B](arg0 : Seq[B]) Boolean Seq
copyToArray.. def copyToArray[B >: A](arg0 : Array[B], arg1 : Int) Unit Iterable
copyToBuffer.. def copyToBuffer[B >: A](arg0 : Buffer[B]) Unit Iterable
drop.. override def drop(arg0 : Int) Seq[A] Seq
dropWhile.. override def dropWhile(arg0 : (A) => Boolean) Seq[A] Seq
endsWith.. def endsWith[B](arg0 : Seq[B]) Boolean Seq
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. def equals(arg0 : Any) Boolean AnyRef
equalsWith.. def equalsWith[B](arg0 : Seq[B]) Boolean Seq
exists.. def exists(arg0 : (A) => Boolean) Boolean Iterable
field.. def field(join : O) MappedForeignKey[Any, O, KeyedMapper[Any, Any]]
filter.. override def filter(arg0 : (A) => Boolean) Seq[A] Seq
finalize.. protected def finalize Unit AnyRef
find.. def find(arg0 : (A) => Boolean) Option[A] Iterable
findIndexOf.. override def findIndexOf(arg0 : (A) => Boolean) Int Seq
flatMap.. override def flatMap[B](arg0 : (A) => Iterable[B]) Seq[B] Seq
foldLeft.. def foldLeft[B](arg0 : B) B Iterable
foldRight.. def foldRight[B](arg0 : B) B Iterable
forall.. def forall(arg0 : (A) => Boolean) Boolean Iterable
foreach.. def foreach(arg0 : (A) => Unit) Unit Iterable
getClass.. final def getClass Class[Any] AnyRef
hashCode.. override def hashCode Int Buffer
indexOf.. def indexOf[B >: A](arg0 : Seq[B]) Int Seq
indexOf.. def indexOf(e : T2) Int
indexOf.. override def indexOf[B >: A](arg0 : B) Int Seq
insert.. def insert(arg0 : Int, arg1 : A*) Unit Buffer
insertAll.. def insertAll(n : Int, iter : Iterable[T2]) Unit
isDefinedAt.. def isDefinedAt(arg0 : Int) Boolean Seq
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
isJoinForChild.. protected def isJoinForChild(e : T2)(join : O) Boolean
joinForChild.. protected def joinForChild(e : T2) Option[O]
lastIndexOf.. def lastIndexOf[B >: A](arg0 : B) Int Seq
lengthCompare.. def lengthCompare(arg0 : Int) Int Seq
map.. override def map[B](arg0 : (A) => B) Seq[B] Seq
mkString.. def mkString(arg0 : String, arg1 : String, arg2 : String) String Iterable
mkString.. def mkString(arg0 : String) String Iterable
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
orElse.. def orElse[A1 <: A, B1 >: B](arg0 : PartialFunction[A1, B1]) PartialFunction[A1, B1] PartialFunction
own.. protected def own(e : T2) O
partition.. def partition(arg0 : (A) => Boolean) (Iterable[A], Iterable[A]) Iterable
prepend.. def prepend(arg0 : A*) Unit Buffer
prependAll.. def prependAll(arg0 : Iterable[A]) Unit Buffer
reduceLeft.. def reduceLeft[B >: A](arg0 : (B, A) => B) B Iterable
reduceRight.. def reduceRight[B >: A](arg0 : (A, B) => B) B Iterable
remove.. def remove(n : Int) T2
sameElements.. def sameElements[B >: A](arg0 : Iterable[B]) Boolean Iterable
slice.. def slice(arg0 : Int) Seq[A] Seq
slice.. def slice(arg0 : Int, arg1 : Int) Seq[A] Seq
startsWith.. def startsWith[B](arg0 : Seq[B]) Boolean Seq
startsWith.. def startsWith[B](arg0 : Seq[B], arg1 : Int) Boolean Seq
subseq.. def subseq(arg0 : Int, arg1 : Int) Seq[A] Seq
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
take.. override def take(arg0 : Int) Seq[A] Seq
takeWhile.. override def takeWhile(arg0 : (A) => Boolean) Seq[A] Seq
toArray.. override def toArray[B >: A] Array[B] Seq
toString.. override def toString String Collection
trimEnd.. def trimEnd(arg0 : Int) Unit Buffer
trimStart.. def trimStart(arg0 : Int) Unit Buffer
unown.. protected def unown(e : T2) Option[O]
update.. def update(n : Int, newelem : T2) Unit
wait.. final def wait(arg0 : Long, arg1 : Int) Unit AnyRef
wait.. final def wait Unit AnyRef
wait.. final def wait(arg0 : Long) Unit AnyRef
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.