Package io.ebean.config.dbplatform
Interface DbEncrypt
-
- All Known Implementing Classes:
AbstractDbEncrypt
,H2DbEncrypt
,MySqlDbEncrypt
,OracleDbEncrypt
,PostgresDbEncrypt
public interface DbEncrypt
Defines DB encryption support for encrypting and decrypting data using DB encryption features.As an alternative to using DB encryption you can encrypt/decrypt in java via a special ScalarType but this has the limitation that you can't include that property in query where clauses.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DbEncryptFunction
getDbEncryptFunction(int jdbcType)
Return the DB encrypt function for the given JDBC type.int
getEncryptDbType()
Return the DB type that encrypted Strings are stored in.boolean
isBindEncryptDataFirst()
Return true if the DB encrypt function binds the data before the key.
-
-
-
Method Detail
-
getDbEncryptFunction
DbEncryptFunction getDbEncryptFunction(int jdbcType)
Return the DB encrypt function for the given JDBC type.
-
getEncryptDbType
int getEncryptDbType()
Return the DB type that encrypted Strings are stored in.This is VARCHAR for MySql and VARBINARY for most others.
-
isBindEncryptDataFirst
boolean isBindEncryptDataFirst()
Return true if the DB encrypt function binds the data before the key.
-
-