HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_SqlStatementImpl Class Referenceabstract

#include <UT_SQL.h>

+ Inheritance diagram for UT_SqlStatementImpl:

Classes

struct  Blob
 
struct  null_tag_t
 

Public Types

enum  DataType {
  kUnknown = -1, kInteger, kFloat, kBlob,
  kText, kNull
}
 

Public Member Functions

virtual ~UT_SqlStatementImpl ()=default
 
 UT_NON_COPYABLE (UT_SqlStatementImpl)
 
const UT_SqlBaseDriverdriver () const
 
virtual void reset (bool clear_bindings=false)=0
 
virtual void prepare (const UT_StringRef &sql, UT_ErrorCode *ec=nullptr)=0
 
virtual NO_DISCARD int columnAsInt (int idx) const =0
 
virtual NO_DISCARD bool columnAsBool (int idx) const =0
 
virtual NO_DISCARD int64 columnAsInt64 (int idx) const =0
 
virtual NO_DISCARD UT_StringHolder columnAsStr (int idx) const =0
 
virtual NO_DISCARD double columnAsDouble (int idx) const =0
 
virtual NO_DISCARD UT_IntArray columnAsIntArray (int idx) const =0
 
virtual NO_DISCARD UT_Int64Array columnAsInt64Array (int idx) const =0
 
virtual NO_DISCARD UT_DateTimeField columnAsDate (int idx) const =0
 
virtual NO_DISCARD const voidcolumnAsBlob (int idx, int &size) const =0
 
virtual NO_DISCARD Blob columnAsBlob (int idx) const =0
 
virtual NO_DISCARD null_tag_t columnAsNull (int idx) const =0
 
virtual NO_DISCARD UT_StringHolder columnName (int idx) const =0
 
virtual NO_DISCARD int columnCount () const =0
 
virtual NO_DISCARD DataType columnType (int idx) const =0
 
virtual NO_DISCARD int columnBytes (int idx) const =0
 
virtual const UT_StringHolderintTypeString () const =0
 
virtual const UT_StringHolderstringTypeString () const =0
 
virtual const UT_StringHoldernullTypeString () const =0
 
virtual const UT_StringHolderrealTypeString () const =0
 
virtual const UT_StringHolderblobTypeString () const =0
 
virtual const UT_StringHolderdateTimeTypeString () const =0
 
virtual const UT_StringHolderboolTypeString () const =0
 
virtual const char * sql () const =0
 
virtual bool bind (int idx, null_tag_t)=0
 
virtual bool bind (int idx, const UT_StringRef &value)=0
 
virtual bool bind (int idx, const char *value)=0
 
virtual bool bind (int idx, int value)=0
 
virtual bool bind (int idx, int64 value)=0
 
virtual bool bind (int idx, bool value)=0
 
virtual bool bind (int idx, double value)=0
 
virtual bool bind (int idx, const UT_IntArray &value)=0
 
virtual bool bind (int idx, const UT_Int64Array &value)=0
 
virtual bool bind (int idx, const UT_StringArray &value)=0
 
virtual bool bind (int idx, const UT_DateTimeField &dt)=0
 
virtual bool bind (int idx, const void *value, int size)=0
 
bool bind (int idx, Blob blob)
 
virtual NO_DISCARD bool isValid () const =0
 
const UT_ErrorCodegetError () const
 
virtual bool step ()=0
 
virtual bool run ()=0
 
virtual int changes () const =0
 
virtual bool hasRow ()=0
 
virtual NO_DISCARD bool tableExists (const UT_StringRef &name, UT_ErrorCode *ec=nullptr) const =0
 

Protected Member Functions

 UT_SqlStatementImpl (const UT_SqlBaseDriver &driver)
 

Protected Attributes

const UT_SqlBaseDrivermyDriver
 
UT_ErrorCode myError
 

Detailed Description

Definition at line 94 of file UT_SQL.h.

Member Enumeration Documentation

Enumerator
kUnknown 
kInteger 
kFloat 
kBlob 
kText 
kNull 

Definition at line 103 of file UT_SQL.h.

Constructor & Destructor Documentation

virtual UT_SqlStatementImpl::~UT_SqlStatementImpl ( )
virtualdefault
UT_SqlStatementImpl::UT_SqlStatementImpl ( const UT_SqlBaseDriver driver)
inlineprotected

Definition at line 194 of file UT_SQL.h.

Member Function Documentation

virtual bool UT_SqlStatementImpl::bind ( int  idx,
null_tag_t   
)
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual bool UT_SqlStatementImpl::bind ( int  idx,
const UT_StringRef value 
)
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual bool UT_SqlStatementImpl::bind ( int  idx,
const char *  value 
)
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual bool UT_SqlStatementImpl::bind ( int  idx,
int  value 
)
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual bool UT_SqlStatementImpl::bind ( int  idx,
int64  value 
)
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual bool UT_SqlStatementImpl::bind ( int  idx,
bool  value 
)
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual bool UT_SqlStatementImpl::bind ( int  idx,
double  value 
)
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual bool UT_SqlStatementImpl::bind ( int  idx,
const UT_IntArray value 
)
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual bool UT_SqlStatementImpl::bind ( int  idx,
const UT_Int64Array value 
)
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual bool UT_SqlStatementImpl::bind ( int  idx,
const UT_StringArray value 
)
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual bool UT_SqlStatementImpl::bind ( int  idx,
const UT_DateTimeField dt 
)
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual bool UT_SqlStatementImpl::bind ( int  idx,
const void value,
int  size 
)
pure virtual

Implemented in UT_SqliteStatementImpl.

bool UT_SqlStatementImpl::bind ( int  idx,
Blob  blob 
)
inline

Definition at line 171 of file UT_SQL.h.

virtual const UT_StringHolder& UT_SqlStatementImpl::blobTypeString ( ) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual const UT_StringHolder& UT_SqlStatementImpl::boolTypeString ( ) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual int UT_SqlStatementImpl::changes ( ) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual NO_DISCARD const void* UT_SqlStatementImpl::columnAsBlob ( int  idx,
int size 
) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual NO_DISCARD Blob UT_SqlStatementImpl::columnAsBlob ( int  idx) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual NO_DISCARD bool UT_SqlStatementImpl::columnAsBool ( int  idx) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual NO_DISCARD UT_DateTimeField UT_SqlStatementImpl::columnAsDate ( int  idx) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual NO_DISCARD double UT_SqlStatementImpl::columnAsDouble ( int  idx) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual NO_DISCARD int UT_SqlStatementImpl::columnAsInt ( int  idx) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual NO_DISCARD int64 UT_SqlStatementImpl::columnAsInt64 ( int  idx) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual NO_DISCARD UT_Int64Array UT_SqlStatementImpl::columnAsInt64Array ( int  idx) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual NO_DISCARD UT_IntArray UT_SqlStatementImpl::columnAsIntArray ( int  idx) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual NO_DISCARD null_tag_t UT_SqlStatementImpl::columnAsNull ( int  idx) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual NO_DISCARD UT_StringHolder UT_SqlStatementImpl::columnAsStr ( int  idx) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual NO_DISCARD int UT_SqlStatementImpl::columnBytes ( int  idx) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual NO_DISCARD int UT_SqlStatementImpl::columnCount ( ) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual NO_DISCARD UT_StringHolder UT_SqlStatementImpl::columnName ( int  idx) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual NO_DISCARD DataType UT_SqlStatementImpl::columnType ( int  idx) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual const UT_StringHolder& UT_SqlStatementImpl::dateTimeTypeString ( ) const
pure virtual

Implemented in UT_SqliteStatementImpl.

const UT_SqlBaseDriver& UT_SqlStatementImpl::driver ( ) const
inline

Definition at line 116 of file UT_SQL.h.

const UT_ErrorCode& UT_SqlStatementImpl::getError ( ) const
inline

Definition at line 178 of file UT_SQL.h.

virtual bool UT_SqlStatementImpl::hasRow ( )
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual const UT_StringHolder& UT_SqlStatementImpl::intTypeString ( ) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual NO_DISCARD bool UT_SqlStatementImpl::isValid ( ) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual const UT_StringHolder& UT_SqlStatementImpl::nullTypeString ( ) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual void UT_SqlStatementImpl::prepare ( const UT_StringRef sql,
UT_ErrorCode ec = nullptr 
)
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual const UT_StringHolder& UT_SqlStatementImpl::realTypeString ( ) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual void UT_SqlStatementImpl::reset ( bool  clear_bindings = false)
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual bool UT_SqlStatementImpl::run ( )
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual const char* UT_SqlStatementImpl::sql ( ) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual bool UT_SqlStatementImpl::step ( )
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual const UT_StringHolder& UT_SqlStatementImpl::stringTypeString ( ) const
pure virtual

Implemented in UT_SqliteStatementImpl.

virtual NO_DISCARD bool UT_SqlStatementImpl::tableExists ( const UT_StringRef name,
UT_ErrorCode ec = nullptr 
) const
pure virtual

Implemented in UT_SqliteStatementImpl.

UT_SqlStatementImpl::UT_NON_COPYABLE ( UT_SqlStatementImpl  )

Member Data Documentation

const UT_SqlBaseDriver& UT_SqlStatementImpl::myDriver
protected

Definition at line 198 of file UT_SQL.h.

UT_ErrorCode UT_SqlStatementImpl::myError
mutableprotected

Definition at line 199 of file UT_SQL.h.


The documentation for this class was generated from the following file: