ch.sahits.model.php.db
Interface IPHPClassDeclarationBuilder

All Superinterfaces:
IBuilder<IPHPDBModel>

public interface IPHPClassDeclarationBuilder
extends IBuilder<IPHPDBModel>


Method Summary
 IPHPClassDeclarationBuilder addField(DataBaseTableField field)
          Add a database field.
 IPHPClassDeclarationBuilder addInclude(java.lang.String include)
          Add an include
 IPHPClassDeclarationBuilder addIndex(DataBaseTableIndex ind)
          Add a database index.
 IPHPClassDeclarationBuilder addMember(java.lang.String variable)
          Add a member variable
 IPHPClassDeclarationBuilder addMethod(IPHPMethodDeclaration method)
          Add a whole method
 IPHPClassDeclarationBuilder clearMembers()
          Clear the member out so that the new ones can be added
 IPHPClassDeclarationBuilder clearMethods()
          Clear the methods out so that the new ones can be added
 IPHPClassDeclarationBuilder dbName(java.lang.String _dbName)
           
 IPHPClassDeclarationBuilder dbProductName(java.lang.String _dbProductName)
           
 IPHPClassDeclarationBuilder host(java.lang.String _host)
           
 IPHPClassDeclarationBuilder password(java.lang.String _password)
           
 IPHPClassDeclarationBuilder phpModel(IPHPDBModel model)
          Initialize the builder with a preexisting model
 IPHPClassDeclarationBuilder port(java.lang.String _port)
           
 IPHPClassDeclarationBuilder schema(java.lang.String _schema)
          Set the database schema.
 IPHPClassDeclarationBuilder tableName(java.lang.String _tableName)
          Set the table name.
 IPHPClassDeclarationBuilder userName(java.lang.String _userName)
           
 
Methods inherited from interface ch.sahits.model.IBuilder
build
 

Method Detail

dbProductName

IPHPClassDeclarationBuilder dbProductName(java.lang.String _dbProductName)
Parameters:
_dbProductName - the dbProductName to set

schema

IPHPClassDeclarationBuilder schema(java.lang.String _schema)
Set the database schema. Stored in upper-case

Parameters:
_schema -

tableName

IPHPClassDeclarationBuilder tableName(java.lang.String _tableName)
Set the table name. Stored in upper-case

Parameters:
_tableName -

addField

IPHPClassDeclarationBuilder addField(DataBaseTableField field)
Add a database field.

Parameters:
field -

addIndex

IPHPClassDeclarationBuilder addIndex(DataBaseTableIndex ind)
Add a database index.

Parameters:
ind -

host

IPHPClassDeclarationBuilder host(java.lang.String _host)
Parameters:
_host - the host to set

port

IPHPClassDeclarationBuilder port(java.lang.String _port)
Parameters:
_port - the port to set

userName

IPHPClassDeclarationBuilder userName(java.lang.String _userName)
Parameters:
_userName - the userName to set

password

IPHPClassDeclarationBuilder password(java.lang.String _password)
Parameters:
_password - the password to set

dbName

IPHPClassDeclarationBuilder dbName(java.lang.String _dbName)
Parameters:
_dbName - the dbName to set

addInclude

IPHPClassDeclarationBuilder addInclude(java.lang.String include)
Add an include

Parameters:
include - include file

addMember

IPHPClassDeclarationBuilder addMember(java.lang.String variable)
Add a member variable

Parameters:
variable - declaration

addMethod

IPHPClassDeclarationBuilder addMethod(IPHPMethodDeclaration method)
Add a whole method

Parameters:
method - method declaration
See Also:
MethodDeclaration

clearMembers

IPHPClassDeclarationBuilder clearMembers()
Clear the member out so that the new ones can be added

Returns:
this

clearMethods

IPHPClassDeclarationBuilder clearMethods()
Clear the methods out so that the new ones can be added

Returns:
this

phpModel

IPHPClassDeclarationBuilder phpModel(IPHPDBModel model)
Initialize the builder with a preexisting model

Parameters:
model - with which the builder is to be initialized
Returns:
this