com.ibm.di.connector.dpa.schema
Class PropertyDefinition

java.lang.Object
  extended by com.ibm.di.connector.dpa.schema.PropertyDefinition

public class PropertyDefinition
extends Object

This class contains meta data about a class property. A representation of the 'property' element from dpaschema.xml.


Field Summary
static String DOUBLE
           
static String INT
           
static String STRING
           
static String TIMESTAMP
           
 
Constructor Summary
protected PropertyDefinition()
           
 
Method Summary
 boolean equals(Object o)
           
 String getColumnName()
           
 String getJavaType()
           
 String getName()
           
 String getNativeType()
           
 String getType()
           
 int hashCode()
           
 boolean isPrimary()
           
 boolean isRequired()
           
 boolean isUnique()
           
static boolean isValidType(String type)
           
protected  void setColumnName(String columnName)
           
protected  void setName(String name)
           
 void setNativeType(String nativeType)
           
protected  void setPrimary(boolean primary)
           
protected  void setRequired(boolean required)
           
protected  void setType(String type)
           
protected  void setUnique(boolean unique)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING

public static final String STRING
See Also:
Constant Field Values

INT

public static final String INT
See Also:
Constant Field Values

DOUBLE

public static final String DOUBLE
See Also:
Constant Field Values

TIMESTAMP

public static final String TIMESTAMP
See Also:
Constant Field Values
Constructor Detail

PropertyDefinition

protected PropertyDefinition()
Method Detail

isValidType

public static boolean isValidType(String type)
Parameters:
type -
Returns:
boolean

setPrimary

protected void setPrimary(boolean primary)
Parameters:
primary -

setUnique

protected void setUnique(boolean unique)
Parameters:
unique -

setName

protected void setName(String name)
Parameters:
name -

setColumnName

protected void setColumnName(String columnName)
Parameters:
columnName -

setType

protected void setType(String type)
Parameters:
type -

getNativeType

public String getNativeType()
Returns:
String

setNativeType

public void setNativeType(String nativeType)
Parameters:
nativeType -

setRequired

protected void setRequired(boolean required)
Parameters:
required -

getName

public String getName()
Returns:
String

getColumnName

public String getColumnName()
Returns:
String

getType

public String getType()
Returns:
String

isRequired

public boolean isRequired()
Returns:
boolean

isUnique

public boolean isUnique()
Returns:
boolean

isPrimary

public boolean isPrimary()
Returns:
boolean

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getJavaType

public String getJavaType()
Returns:
String