com.ibm.di.connector.dpa.schema
Class PropertyDefinition
java.lang.Object
com.ibm.di.connector.dpa.schema.PropertyDefinition
public class PropertyDefinition
- extends java.lang.Object
This class contains meta data about a class property.
A representation of the 'property' element from dpaschema.xml.
Field Summary |
static java.lang.String |
DOUBLE
|
static java.lang.String |
INT
|
static java.lang.String |
STRING
|
static java.lang.String |
TIMESTAMP
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
STRING
public static final java.lang.String STRING
- See Also:
- Constant Field Values
INT
public static final java.lang.String INT
- See Also:
- Constant Field Values
DOUBLE
public static final java.lang.String DOUBLE
- See Also:
- Constant Field Values
TIMESTAMP
public static final java.lang.String TIMESTAMP
- See Also:
- Constant Field Values
PropertyDefinition
protected PropertyDefinition()
isValidType
public static boolean isValidType(java.lang.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(java.lang.String name)
- Parameters:
name
-
setColumnName
protected void setColumnName(java.lang.String columnName)
- Parameters:
columnName
-
setType
protected void setType(java.lang.String type)
- Parameters:
type
-
getNativeType
public java.lang.String getNativeType()
- Returns:
- String
setNativeType
public void setNativeType(java.lang.String nativeType)
- Parameters:
nativeType
-
setRequired
protected void setRequired(boolean required)
- Parameters:
required
-
getName
public java.lang.String getName()
- Returns:
- String
getColumnName
public java.lang.String getColumnName()
- Returns:
- String
getType
public java.lang.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(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getJavaType
public java.lang.String getJavaType()
- Returns:
- String