com.phenix.pct
Class SchemaHolder

java.lang.Object
  extended by com.phenix.pct.SchemaHolder
Direct Known Subclasses:
MSSHolder, ODBCHolder, OracleHolder

public abstract class SchemaHolder
extends Object

Schema holders class. Used as a nested element of PCTCreateBase.

Version:
$Revision$
Author:
Gilles QUERRET

Constructor Summary
SchemaHolder()
           
 
Method Summary
 String getCodepage()
          Returns holder's codepage
 String getCollation()
          Returns holder's collation table
 String getDbName()
          Returns schema holder name
abstract  Collection getParameters()
           
 String getPassword()
           
abstract  String getProcedure()
           
 File getSchemaFile()
          Returns schema file to load
 String getUsername()
           
 void setCodepage(String codepage)
          Sets holder's codepage
 void setCollation(String collation)
          Sets holder's collation table
 void setDbName(String dbName)
          Sets schema holder name
 void setPassword(String password)
           
 void setSchemaFile(File schemaFile)
          Sets schema file to load
 void setUsername(String username)
           
abstract  boolean validate()
          Validation of schema holder parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaHolder

public SchemaHolder()
Method Detail

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getUsername

public String getUsername()

setUsername

public void setUsername(String username)

getDbName

public String getDbName()
Returns schema holder name

Returns:
String - Schema holder name

setDbName

public void setDbName(String dbName)
Sets schema holder name

Parameters:
dbName - String - Schema holder name

getCodepage

public String getCodepage()
Returns holder's codepage

Returns:
String - Codepage

setCodepage

public void setCodepage(String codepage)
Sets holder's codepage

Parameters:
codepage - String - Codepage

getSchemaFile

public File getSchemaFile()
Returns schema file to load

Returns:
String - Schema file

setSchemaFile

public void setSchemaFile(File schemaFile)
Sets schema file to load

Parameters:
schemaFile - String - Schema file

getCollation

public String getCollation()
Returns holder's collation table

Returns:
String - Collation table

setCollation

public void setCollation(String collation)
Sets holder's collation table

Parameters:
collation - String - Collation table

validate

public abstract boolean validate()
Validation of schema holder parameters. Use with care for now. Oh no, not really care, but it isn't validating many things for now. In fact, this should be subclassed for every database type.

Returns:
True if parameters are correct

getProcedure

public abstract String getProcedure()

getParameters

public abstract Collection getParameters()


Copyright © 2003-2011 Gilles QUERRET. All Rights Reserved.