profileparameter

package
v7.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProfileIDQueryParam   = "profileId"
	ParameterIDQueryParam = "parameterId"
)

Variables

This section is empty.

Functions

func GetProfileID

func GetProfileID(w http.ResponseWriter, r *http.Request)

func GetProfileName

func GetProfileName(w http.ResponseWriter, r *http.Request)

func PostParamProfile

func PostParamProfile(w http.ResponseWriter, r *http.Request)

func PostProfileParam

func PostProfileParam(w http.ResponseWriter, r *http.Request)

func PostProfileParamsByID

func PostProfileParamsByID(w http.ResponseWriter, r *http.Request)

func PostProfileParamsByName

func PostProfileParamsByName(w http.ResponseWriter, r *http.Request)

Types

type TOProfileParameter

type TOProfileParameter struct {
	api.APIInfoImpl `json:"-"`
	tc.ProfileParameterNullable
}

we need a type alias to define functions on

func (*TOProfileParameter) AllowMultipleCreates

func (v *TOProfileParameter) AllowMultipleCreates() bool

AllowMultipleCreates indicates whether an array can be POSTed using the shared Create handler

func (*TOProfileParameter) Create

func (pp *TOProfileParameter) Create() (error, error, int)

The TOProfileParameter implementation of the Creator interface all implementations of Creator should use transactions and return the proper errorType ParsePQUniqueConstraintError is used to determine if a profileparameter with conflicting values exists if so, it will return an errorType of DataConflict and the type should be appended to the generic error message returned The insert sql returns the profile and lastUpdated values of the newly inserted profileparameter and have to be added to the struct

func (*TOProfileParameter) Delete

func (pp *TOProfileParameter) Delete() (error, error, int)

func (*TOProfileParameter) DeleteQuery

func (v *TOProfileParameter) DeleteQuery() string

func (*TOProfileParameter) GetAuditName

func (pp *TOProfileParameter) GetAuditName() string

func (TOProfileParameter) GetKeyFieldsInfo

func (pp TOProfileParameter) GetKeyFieldsInfo() []api.KeyFieldInfo

func (TOProfileParameter) GetKeys

func (pp TOProfileParameter) GetKeys() (map[string]interface{}, bool)

Implementation of the Identifier, Validator interface functions

func (*TOProfileParameter) GetType

func (pp *TOProfileParameter) GetType() string

func (*TOProfileParameter) NewReadObj

func (v *TOProfileParameter) NewReadObj() interface{}

func (*TOProfileParameter) ParamColumns

func (v *TOProfileParameter) ParamColumns() map[string]dbhelpers.WhereColumnInfo

func (*TOProfileParameter) Read

func (pp *TOProfileParameter) Read(h http.Header, useIMS bool) ([]interface{}, error, error, int, *time.Time)

func (*TOProfileParameter) SelectMaxLastUpdatedQuery

func (v *TOProfileParameter) SelectMaxLastUpdatedQuery(where, orderBy, pagination, tableName string) string

func (*TOProfileParameter) SelectQuery

func (v *TOProfileParameter) SelectQuery() string

func (*TOProfileParameter) SetKeys

func (pp *TOProfileParameter) SetKeys(keys map[string]interface{})

func (*TOProfileParameter) Update

func (pp *TOProfileParameter) Update(h http.Header) (error, error, int)

func (*TOProfileParameter) Validate

func (pp *TOProfileParameter) Validate() (error, error)

Validate fulfills the api.Validator interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL