Trait

skinny.orm.feature

NoIdCUDFeature

Related Doc: package feature

Permalink

trait NoIdCUDFeature[Entity] extends SkinnyMapperBase[Entity] with ConnectionPoolFeature with AutoSessionFeature with StrongParametersFeature

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NoIdCUDFeature
  2. StrongParametersFeature
  3. AutoSessionFeature
  4. ConnectionPoolFeature
  5. SkinnyMapperBase
  6. SQLSyntaxSupport
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type AfterDeleteByHandler = (DBSession, scalikejdbc.SQLSyntax, Int) ⇒ Unit

    Permalink

    #updateBy post-execution handler.

  2. type AfterUpdateByHandler = (DBSession, scalikejdbc.SQLSyntax, Seq[(scalikejdbc.SQLSyntax, Any)], Int) ⇒ Unit

    Permalink

    #updateBy post-execution handler.

  3. type BeforeDeleteByHandler = (DBSession, scalikejdbc.SQLSyntax) ⇒ Unit

    Permalink

    #updateBy pre-execution handler.

  4. type BeforeUpdateByHandler = (DBSession, scalikejdbc.SQLSyntax, Seq[(scalikejdbc.SQLSyntax, Any)]) ⇒ Unit

    Permalink

    #updateBy pre-execution handler.

  5. class UpdateOperationBuilder extends AnyRef

    Permalink

    Update query builder/executor.

Abstract Value Members

  1. abstract def defaultAlias: Alias[Entity]

    Permalink

    Returns default table alias.

    Returns default table alias. This method is abstract and should be implemented with unique name. override def defaultAlias = createAlias("sm")

    Definition Classes
    SkinnyMapperBase
  2. abstract def extract(rs: WrappedResultSet, n: scalikejdbc.ResultName[Entity]): Entity

    Permalink

    Extracts entity from ResultSet.

    Extracts entity from ResultSet.

    Definition Classes
    SkinnyMapperBase

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addAttributeForCreation(namedValue: ⇒ (scalikejdbc.SQLSyntax, Any)): NoIdCUDFeature.this.type

    Permalink

    Adds new attribute to be inserted when creation.

    Adds new attribute to be inserted when creation.

    namedValue

    named value

    returns

    self

    Attributes
    protected
  5. def afterDeleteBy(handler: (DBSession, scalikejdbc.SQLSyntax, Int) ⇒ Unit): Unit

    Permalink

    #deleteBy post-execution.

    #deleteBy post-execution.

    handler

    handler

    Attributes
    protected
  6. val afterDeleteByHandlers: ListBuffer[AfterDeleteByHandler]

    Permalink

    Registered afterUpdateByHandlers.

    Registered afterUpdateByHandlers.

    Attributes
    protected
  7. def afterUpdateBy(handler: AfterUpdateByHandler): Unit

    Permalink

    Registers #updateBy post-execution handler.

    Registers #updateBy post-execution handler.

    handler

    event handler

    Attributes
    protected
  8. val afterUpdateByHandlers: ListBuffer[AfterUpdateByHandler]

    Permalink

    Registered afterUpdateByHandlers.

    Registered afterUpdateByHandlers.

    Attributes
    protected
  9. def apply(rs: WrappedResultSet): Entity

    Permalink

    Extracts entity from ResultSet.

    Extracts entity from ResultSet.

    Definition Classes
    SkinnyMapperBase
  10. def apply(a: Alias[Entity])(rs: WrappedResultSet): Entity

    Permalink

    Extracts entity from ResultSet.

    Extracts entity from ResultSet.

    Definition Classes
    SkinnyMapperBase
  11. def as(provider: scalikejdbc.QuerySQLSyntaxProvider[scalikejdbc.SQLSyntaxSupport[Entity], Entity]): scalikejdbc.TableAsAliasSQLSyntax

    Permalink
    Definition Classes
    SQLSyntaxSupport
  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def autoSession: DBSession

    Permalink

    AutoSession definition.

    AutoSession definition.

    Definition Classes
    AutoSessionFeature
  14. def beforeDeleteBy(handler: (DBSession, scalikejdbc.SQLSyntax) ⇒ Unit): Unit

    Permalink

    #deleteBy pre-execution.

    #deleteBy pre-execution.

    handler

    handler

    Attributes
    protected
  15. val beforeDeleteByHandlers: ListBuffer[BeforeDeleteByHandler]

    Permalink

    Registered beforeUpdateByHandlers.

    Registered beforeUpdateByHandlers.

    Attributes
    protected
  16. def beforeUpdateBy(handler: BeforeUpdateByHandler): Unit

    Permalink

    Registers #updateBy pre-execution handler.

    Registers #updateBy pre-execution handler.

    handler

    event handler

    Attributes
    protected
  17. val beforeUpdateByHandlers: ListBuffer[BeforeUpdateByHandler]

    Permalink

    Registered beforeUpdateByHandlers.

    Registered beforeUpdateByHandlers.

    Attributes
    protected
  18. def clearLoadedColumns(): Unit

    Permalink
    Definition Classes
    SQLSyntaxSupport
  19. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. def column: scalikejdbc.ColumnName[Entity]

    Permalink
    Definition Classes
    SQLSyntaxSupport
  21. def columnNames: Seq[String]

    Permalink

    Returns column names.

    Returns column names.

    Definition Classes
    SkinnyMapperBase → SQLSyntaxSupport
  22. def columns: Seq[String]

    Permalink
    Definition Classes
    SQLSyntaxSupport
  23. def connectionPool: ConnectionPool

    Permalink

    Returns connection pool.

    Returns connection pool.

    returns

    pool

    Definition Classes
    ConnectionPoolFeature
  24. def connectionPoolName: Any

    Permalink
    Definition Classes
    SQLSyntaxSupport
  25. def createAlias(name: String): Alias[Entity]

    Permalink

    Creates a new table alias for this mapper.

    Creates a new table alias for this mapper.

    Definition Classes
    SkinnyMapperBase
  26. def createWithAttributes(parameters: (Symbol, Any)*)(implicit s: DBSession = autoSession): Any

    Permalink

    Creates a new entity with non-permitted parameters.

    Creates a new entity with non-permitted parameters.

    CAUTION: If you use this method in some web apps, you might have mass assignment vulnerability.

    parameters

    parameters

    s

    db session

    returns

    created count (actually useless)

  27. def createWithNamedValues(namesAndValues: (scalikejdbc.SQLSyntax, Any)*)(implicit s: DBSession = autoSession): Any

    Permalink
  28. def createWithPermittedAttributes(strongParameters: PermittedStrongParameters)(implicit s: DBSession = autoSession): Any

    Permalink

    Creates a new entity with permitted strong parameters.

    Creates a new entity with permitted strong parameters.

    strongParameters

    permitted parameters

    s

    db session

    returns

    created count (actually useless)

  29. def defaultScope(alias: Alias[Entity]): Option[scalikejdbc.SQLSyntax]

    Permalink

    Returns default scope for select queries.

    Returns default scope for select queries.

    Definition Classes
    SkinnyMapperBase
  30. def defaultScopeForUpdateOperations: Option[scalikejdbc.SQLSyntax]

    Permalink

    Returns default scope for update/delete operations.

    Returns default scope for update/delete operations.

    returns

    default scope

  31. def defaultScopeWithDefaultAlias: Option[scalikejdbc.SQLSyntax]

    Permalink
    Definition Classes
    SkinnyMapperBase
  32. def defaultSelectQuery: scalikejdbc.SelectSQLBuilder[Entity]

    Permalink

    Returns select query builder.

    Returns select query builder.

    Definition Classes
    SkinnyMapperBase
  33. def deleteAll()(implicit s: DBSession = autoSession): Int

    Permalink

    Deletes all entities.

  34. def deleteBy(where: scalikejdbc.SQLSyntax)(implicit s: DBSession = autoSession): Int

    Permalink

    Deletes entities by condition.

    Deletes entities by condition.

    where

    condition

    s

    db session

    returns

    deleted count

  35. def delimiterForResultName: String

    Permalink
    Definition Classes
    SQLSyntaxSupport
  36. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  37. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  38. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  39. def forceUpperCase: Boolean

    Permalink
    Definition Classes
    SQLSyntaxSupport
  40. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  41. def getTypedValueFromStrongParameter(fieldName: String, value: Any, paramType: ParamType): Option[Any]

    Permalink

    Returns typed value from a strong parameter.

    Returns typed value from a strong parameter.

    fieldName

    field name

    value

    actual value

    paramType

    param type definition

    returns

    typed value if exists

    Attributes
    protected
    Definition Classes
    StrongParametersFeature
  42. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  43. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  44. def isValidFieldName(name: String): Boolean

    Permalink

    Predicates the field name is valid.

    Predicates the field name is valid.

    Definition Classes
    SkinnyMapperBase
  45. def mergeNamedValuesForCreation(namedValues: Seq[(scalikejdbc.SQLSyntax, Any)]): Seq[(scalikejdbc.SQLSyntax, Any)]

    Permalink

    Merges already registered attributes to be inserted and parameters.

    Merges already registered attributes to be inserted and parameters.

    namedValues

    named values

    returns

    merged attributes

    Attributes
    protected
  46. def nameConverters: Map[String, String]

    Permalink
    Definition Classes
    SQLSyntaxSupport
  47. def namedValuesForCreation(strongParameters: PermittedStrongParameters): Seq[(scalikejdbc.SQLSyntax, Any)]

    Permalink

    Extracts named values from the permitted parameters.

    Extracts named values from the permitted parameters.

    strongParameters

    permitted parameters

    returns

    named values

    Attributes
    protected
  48. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  49. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  50. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  51. def primaryKeyField: scalikejdbc.SQLSyntax

    Permalink
    Definition Classes
    SkinnyMapperBase
  52. def primaryKeyFieldName: String

    Permalink

    Returns primary key name.

    Returns primary key name. (default: "id") Notice: Not a column name but field name. For example, not "first_name" but "firstName"

    Definition Classes
    SkinnyMapperBase
  53. def schemaName: Option[String]

    Permalink
    Definition Classes
    SQLSyntaxSupport
  54. def settings: SettingsProvider

    Permalink
    Attributes
    protected[this]
    Definition Classes
    SQLSyntaxSupport
  55. def singleSelectQuery: scalikejdbc.SelectSQLBuilder[Entity]

    Permalink

    Returns select query builder object to simply fetch rows without other joined tables.

    Returns select query builder object to simply fetch rows without other joined tables.

    Definition Classes
    SkinnyMapperBase
  56. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  57. def syntax(name: String): scalikejdbc.QuerySQLSyntaxProvider[scalikejdbc.SQLSyntaxSupport[Entity], Entity]

    Permalink
    Definition Classes
    SQLSyntaxSupport
  58. def syntax: scalikejdbc.QuerySQLSyntaxProvider[scalikejdbc.SQLSyntaxSupport[Entity], Entity]

    Permalink
    Definition Classes
    SQLSyntaxSupport
  59. def table: scalikejdbc.TableDefSQLSyntax

    Permalink
    Definition Classes
    SQLSyntaxSupport
  60. def tableName: String

    Permalink

    Returns table name.

    Returns table name.

    Definition Classes
    SkinnyMapperBase → SQLSyntaxSupport
  61. def tableNameWithSchema: String

    Permalink
    Definition Classes
    SQLSyntaxSupport
  62. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  63. def underlying: SkinnyMapperBase[Entity]

    Permalink
    Attributes
    protected
    Definition Classes
    SkinnyMapperBase
  64. def updateBy(where: scalikejdbc.SQLSyntax): UpdateOperationBuilder

    Permalink

    Returns update query builder with condition.

    Returns update query builder with condition.

    where

    where condition

    returns

    update query builder

  65. def useShortenedResultName: Boolean

    Permalink
    Definition Classes
    SQLSyntaxSupport
  66. def useSnakeCaseColumnName: Boolean

    Permalink
    Definition Classes
    SQLSyntaxSupport
  67. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  68. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  70. def withAlias[A](name: String)(op: (Alias[Entity]) ⇒ A): A

    Permalink

    Provides a code block with a table alias.

    Provides a code block with a table alias.

    Definition Classes
    SkinnyMapperBase
  71. def withAlias[A](op: (Alias[Entity]) ⇒ A): A

    Permalink

    Provides a code block with a table alias.

    Provides a code block with a table alias.

    Definition Classes
    SkinnyMapperBase
  72. def withColumns[A](op: (scalikejdbc.ColumnName[Entity]) ⇒ A): A

    Permalink

    Provides a code block with the column name provider.

    Provides a code block with the column name provider.

    Definition Classes
    SkinnyMapperBase

Deprecated Value Members

  1. def afterDeleteBy(where: scalikejdbc.SQLSyntax, deletedCount: Int)(implicit s: DBSession = autoSession): Int

    Permalink

    #deleteBy post-execution.

    #deleteBy post-execution.

    where

    condition

    deletedCount

    deleted count

    returns

    count

    Attributes
    protected
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.12) Use afterDeleteBy(handler) instead

  2. def beforeDeleteBy(where: scalikejdbc.SQLSyntax)(implicit s: DBSession = autoSession): Unit

    Permalink

    #deleteBy pre-execution.

    #deleteBy pre-execution.

    where

    condition

    Attributes
    protected
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.12) Use beforeDeleteBy(handler) instead

Inherited from StrongParametersFeature

Inherited from AutoSessionFeature

Inherited from ConnectionPoolFeature

Inherited from SkinnyMapperBase[Entity]

Inherited from scalikejdbc.SQLSyntaxSupport[Entity]

Inherited from AnyRef

Inherited from Any

Ungrouped