pt.moredata.dao.pattern
Class SimplePattern

java.lang.Object
  extended bypt.moredata.dao.pattern.SimplePattern
All Implemented Interfaces:
SQLPattern

public class SimplePattern
extends java.lang.Object
implements SQLPattern

Classe que implementa a interface SQLPattern. Esta classe serve para representar um padrao de pesquisa. Company MoreData

Version:
$Revision: 1.5 $
Author:
pcarmo
See Also:
SQLPatternBuilder

Constructor Summary
SimplePattern(java.lang.String pattern, java.lang.String tableName, java.lang.String fieldName, int fieldType, int dataBaseId)
          Creates a new instance of SimplePattern.
 
Method Summary
 int getDataBaseId()
          Return the data base identification.
 java.lang.String getFieldName()
          Getter for property fieldName.
 int getFieldType()
          Getter for property fieldType.
 java.lang.String getPattern()
          Getter for property pattern.
 java.lang.String getTableName()
          Getter for property tableName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePattern

public SimplePattern(java.lang.String pattern,
                     java.lang.String tableName,
                     java.lang.String fieldName,
                     int fieldType,
                     int dataBaseId)
              throws java.lang.NullPointerException
Creates a new instance of SimplePattern.

Parameters:
tableName - O nome da tabela.
fieldName - O nome do campo.
fieldType - O tipo do campo.
pattern - O padrao de pesquisa.
Method Detail

getFieldName

public java.lang.String getFieldName()
Getter for property fieldName.

Specified by:
getFieldName in interface SQLPattern
Returns:
Value of property fieldName.

getFieldType

public int getFieldType()
Getter for property fieldType.

Specified by:
getFieldType in interface SQLPattern
Returns:
Value of property fieldType.

getPattern

public java.lang.String getPattern()
Getter for property pattern.

Specified by:
getPattern in interface SQLPattern
Returns:
Value of property pattern.

getTableName

public java.lang.String getTableName()
Getter for property tableName.

Specified by:
getTableName in interface SQLPattern
Returns:
Value of property tableName.

getDataBaseId

public int getDataBaseId()
Return the data base identification.

Specified by:
getDataBaseId in interface SQLPattern
Returns:
Value of the data base identification.
See Also:
DataBaseIdentifier