phpDocumentor openbiz.bin.service
[ class tree: openbiz.bin.service ] [ index: openbiz.bin.service ] [ all elements ]

Class: genIdService

Source Location: /service/genIdService.php

Class genIdService

Class Overview

class genIdService is the plug-in service of generating ID for new record

Located in /service/genIdService.php [line 29]



		
				Author(s):
		
  • Rocky Swen
API Tags:
Access:  public

Information Tags:
Copyright:  Copyright (c) 2005-2009, Rocky Swen

Methods

[ Top ]
Method Summary
void   __construct()   Initialize excelService with xml array metadata
   GetNewGUID()   Get new GUID ID is generated before executing insert sql
mixed   GetNewID()   Get new Id
   GetNewIdentity()   Get new Identity * NOTE: ID is generated after insert sql is executed
   GetNewSequence()   Get new sequence NOTE: // ID is generated before executing insert sql
string   GetNewSYSID()   genIdService::GetNewSYSID() Get a new SYSID from the id_table. You can get SYSID for a table with prefix and base converting
   GetNewUUID()   Get new UUID ID is generated before executing insert sql

[ Top ]
Methods
Constructor __construct  [line 38]

  void __construct( array $xmlArr  )

Initialize excelService with xml array metadata

Parameters:
array   $xmlArr: 

API Tags:
Access:  public


[ Top ]
GetNewGUID  [line 232]

  GetNewGUID( $conn, $dbType, [ $table = null], [ $column = null]  )

Get new GUID ID is generated before executing insert sql

Parameters:
   $conn: 
   $dbType: 
   $table: 
   $column: 

API Tags:
Access:  protected


[ Top ]
GetNewID  [line 52]

  mixed GetNewID( string $idGeneration, Zend_DB_Adapter $conn, $dbType, [string $table = null], [string $column = null]  )

Get new Id

Parameters:
string   $idGeneration: 
Zend_DB_Adapter   $conn: 
   $dbType: 
string   $table:  table name
string   $column:  column name

API Tags:
Access:  public


[ Top ]
GetNewIdentity  [line 168]

  GetNewIdentity( $conn, $dbType, [string $table = null], [string $column = null]  )

Get new Identity * NOTE: ID is generated after insert sql is executed

Parameters:
   $conn: 
   $dbType: 
string   $table: 
string   $column: 

API Tags:
Access:  protected


[ Top ]
GetNewSequence  [line 202]

  GetNewSequence( $conn, $dbtype, $sequenceName  )

Get new sequence NOTE: // ID is generated before executing insert sql

Parameters:
   $conn: 
   $dbtype: 
   $sequenceName: 

API Tags:
Access:  protected


[ Top ]
GetNewSYSID  [line 101]

  string GetNewSYSID( Zend_DB_Adapter $conn, string $tablename, [boolean $includePrefix = false], [integer $base = -1]  )

genIdService::GetNewSYSID() Get a new SYSID from the id_table. You can get SYSID for a table with prefix and base converting

Parameters:
Zend_DB_Adapter   $conn: 
string   $tablename: 
boolean   $includePrefix: 
integer   $base:  to encode

API Tags:
Access:  protected


[ Top ]
GetNewUUID  [line 256]

  GetNewUUID( )

Get new UUID ID is generated before executing insert sql


API Tags:
Access:  protected


[ Top ]

Documentation generated on Tue, 22 Dec 2009 03:02:58 -0800 by phpDocumentor 1.3.0RC3