it
.
agilelab
.
bigdata
.
wasp
.
repository
.
postgres
WaspPostgresDB
Related Docs:
object WaspPostgresDB
|
package postgres
trait
WaspPostgresDB
extends
WaspDB
with
PostgresDBHelper
Linear Supertypes
PostgresDBHelper
,
Logging
,
ConnectionInfoProvider
,
ConnectionSupport
,
WaspDB
,
AnyRef
,
Any
Known Subclasses
WaspPostgresDBImpl
Ordering
Alphabetic
By Inheritance
Inherited
WaspPostgresDB
PostgresDBHelper
Logging
ConnectionInfoProvider
ConnectionSupport
WaspDB
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Abstract Value Members
abstract
def
close
()
:
Unit
Definition Classes
WaspPostgresDB
→ WaspDB
abstract
def
createTable
()
(
implicit
tableDefinition:
TableDefinition
[_, _]
)
:
Unit
abstract
def
deleteByPrimaryKey
[
T
,
K
]
(
primaryKey:
K
)
(
implicit
tableDefinition:
TableDefinition
[
T
,
K
]
)
:
Unit
abstract
def
getAll
[
T
,
K
]
()
(
implicit
tableDefinition:
TableDefinition
[
T
,
K
]
)
:
Seq
[
T
]
abstract
def
getBy
[
T
,
K
]
(
condition:
Array
[(
String
,
Any
)]
,
sortCondition:
Option
[
String
] =
None
,
limit:
Option
[
Int
] =
None
)
(
implicit
tableDefinition:
TableDefinition
[
T
,
K
]
)
:
Seq
[
T
]
abstract
def
getByPrimaryKey
[
T
,
K
]
(
primaryKey:
K
)
(
implicit
tableDefinition:
TableDefinition
[
T
,
K
]
)
:
Option
[
T
]
abstract
def
getDriver
:
String
Attributes
protected
Definition Classes
ConnectionInfoProvider
abstract
def
getPassword
:
String
Attributes
protected
Definition Classes
ConnectionInfoProvider
abstract
def
getPoolSize
:
Int
Attributes
protected
Definition Classes
ConnectionInfoProvider
abstract
def
getUrl
:
String
Attributes
protected
Definition Classes
ConnectionInfoProvider
abstract
def
getUser
:
String
Attributes
protected
Definition Classes
ConnectionInfoProvider
abstract
def
insert
[
T
,
K
]
(
obj:
T
)
(
implicit
tableDefinition:
TableDefinition
[
T
,
K
]
)
:
Unit
abstract
def
insertIfNotExists
[
T
,
K
]
(
obj:
T
)
(
implicit
table:
TableDefinition
[
T
,
K
]
)
:
Unit
abstract
def
insertReturning
[
T
,
K
,
R
]
(
obj:
T
,
columnResult:
Array
[
String
]
,
mapperResultSet: (
ResultSet
) ⇒
R
)
(
implicit
table:
TableDefinition
[
T
,
K
]
)
:
Seq
[
R
]
abstract
def
updateByPrimaryKey
[
T
,
K
]
(
obj:
T
)
(
implicit
tableDefinition:
TableDefinition
[
T
,
K
]
)
:
Unit
abstract
def
upsert
[
T
,
K
]
(
obj:
T
)
(
implicit
table:
TableDefinition
[
T
,
K
]
)
:
Unit
Concrete Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
closePool
()
:
Unit
Attributes
protected
Definition Classes
ConnectionSupport
def
convertToJson
(
json:
JsValue
)
:
PGobject
Definition Classes
PostgresDBHelper
def
delete
(
table:
String
,
whereCondition:
Option
[
Array
[(
String
,
Any
)]] =
None
)
:
Unit
Attributes
protected
Definition Classes
PostgresDBHelper
def
dropTable
(
table:
String
)
:
Unit
Attributes
protected
Definition Classes
PostgresDBHelper
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
execute
(
updates:
String
*
)
:
Unit
Attributes
protected
Definition Classes
PostgresDBHelper
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
getConnection
()
:
Connection
Attributes
protected
Definition Classes
ConnectionSupport
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
def
insert
[
T
]
(
table:
String
,
obj:
T
)
(
mapper: (
T
) ⇒
Array
[(
String
,
Any
)]
)
:
Unit
Attributes
protected
Definition Classes
PostgresDBHelper
def
insertReturning
[
T
,
R
]
(
table:
String
,
obj:
T
,
columnsResult:
Array
[
String
]
)
(
mapperFromModel: (
T
) ⇒
Array
[(
String
,
Any
)]
,
mapperFromResultSet: (
ResultSet
) ⇒
R
)
:
Seq
[
R
]
Attributes
protected
Definition Classes
PostgresDBHelper
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
val
logger
:
WaspLogger
Attributes
protected
Definition Classes
Logging
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
def
updateBy
[
T
]
(
table:
String
,
obj:
T
,
whereCondition:
Array
[(
String
,
Any
)]
)
(
mapper: (
T
) ⇒
Array
[(
String
,
Any
)]
)
:
Unit
Attributes
protected
Definition Classes
PostgresDBHelper
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
Inherited from
PostgresDBHelper
Inherited from
Logging
Inherited from
ConnectionInfoProvider
Inherited from
ConnectionSupport
Inherited from
WaspDB
Inherited from
AnyRef
Inherited from
Any
Ungrouped