|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.irisel.oms.olapi.internal.DataProperty
public class DataProperty
This class is an implementation of the interface Property and represents a Database Property It inherits from AbstractDataProperty but it is particular to Database, it is built from ResultSetMetaData It is used to deal with field-level details of the OMS Data Model.
Field Summary |
---|
Fields inherited from interface com.irisel.oms.olapi.internal.Property |
---|
C_SYNC_DELETED, C_SYNC_MODIFIED, C_SYNC_NEW, C_SYNC_SYNCHRONIZED |
Constructor Summary | |
---|---|
DataProperty(DBHandler dbhandler)
Dummy constructor |
|
DataProperty(DBHandler dbhandler,
PropertyVO pvo)
|
|
DataProperty(DBHandler dbh,
java.sql.ResultSetMetaData rsmd,
int i)
Constructor It constructs the object based on a ResultSetMetaData field, identified by an index. |
|
DataProperty(DBHandler dbhandler,
java.lang.String name,
java.lang.String title,
int type,
int size)
Constructor It constructs the property directly from the parameters received |
Method Summary | |
---|---|
PropertyVO |
buildPropertyVO(Model dm,
long classId)
Returns a PropertyVO object for this Property |
int |
getIndex()
Getter for property index. |
java.lang.String |
getJavaClassName()
Getter for property Java Classname |
java.lang.String |
getName()
Getter for property name. |
int |
getNullable()
|
java.lang.String |
getOriginalTable()
|
int |
getSize()
Getter for property size. |
int |
getSqlType()
|
java.lang.String |
getSynch()
Getter for property synch. |
java.lang.String |
getTitle()
Returns property title. |
int |
getType()
Returns property sql type. |
int |
getType1()
|
java.lang.String |
getType2()
|
java.lang.String |
getValidation()
|
java.lang.Object |
getValue()
Getter for property value. |
boolean |
isAutoincrement()
|
boolean |
isCaseSensitive()
|
boolean |
isPrimaryKey()
|
boolean |
isReadOnly()
|
boolean |
isSearchable()
|
boolean |
isSigned()
|
void |
setAutoincrement(boolean autoincrement)
|
void |
setCaseSensitive(boolean caseSensitive)
|
void |
setIndex(int index)
Setter for property index. |
void |
setJavaClassName(java.lang.String javaClassName)
|
void |
setName(java.lang.String name)
Setter for property name. |
void |
setNullable(int nullable)
|
void |
setOriginalTable(java.lang.String originalTable)
|
void |
setPrimaryKey(boolean primaryKey)
|
void |
setReadOnly(boolean readOnly)
|
void |
setSearchable(boolean searchable)
|
void |
setSigned(boolean signed)
|
void |
setSize(int size)
Setter for property size. |
void |
setSqlType(int sqlType)
|
void |
setSynch(java.lang.String status)
Setter for property synch. |
void |
setTitle(java.lang.String title)
Sets property title. |
void |
setType(int type)
Sets property type. |
void |
setType1(int type1)
Sets property type1. |
void |
setType2(java.lang.String type2)
|
void |
setValidation(java.lang.String validation)
|
void |
setValue(java.lang.Object value)
Setter for property value. |
java.lang.String |
toString()
Returns a String representation of this object. |
void |
updateFromPropertyVO(PropertyVO pvo)
Updates from PropertyVO information |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataProperty(DBHandler dbh, java.sql.ResultSetMetaData rsmd, int i)
rsmd
- ResultSetMetaData, from a select query on the table related to this propertyi
- index of the column in the ResultSetMetaData, related to this propertypublic DataProperty(DBHandler dbhandler, java.lang.String name, java.lang.String title, int type, int size)
name
- name of the propertytitle
- title of the propertytype
- type of the property, as defined in java.sql.Typessize
- size of the property, when applicablepublic DataProperty(DBHandler dbhandler)
public DataProperty(DBHandler dbhandler, PropertyVO pvo)
Method Detail |
---|
public java.lang.String toString()
toString
in interface Property
toString
in class java.lang.Object
public int getIndex()
getIndex
in interface Property
public void setIndex(int index)
setIndex
in interface Property
index
- New value of property index.public int getSize()
getSize
in interface Property
public void setSize(int size)
setSize
in interface Property
size
- Sets the size of the propertypublic java.lang.String getName()
getName
in interface Property
public void setName(java.lang.String name)
setName
in interface Property
name
- New value of property name.public java.lang.String getTitle()
getTitle
in interface Property
public void setTitle(java.lang.String title)
setTitle
in interface Property
title
- New value of property title.public int getType()
getType
in interface Property
Types
public java.lang.String getJavaClassName()
Property
getJavaClassName
in interface Property
public void setType(int type)
setType
in interface Property
type
- New value of property type.Types
public void setType1(int type1)
setType1
in interface Property
type
- New value of property type.Types
public java.lang.Object getValue()
getValue
in interface Property
public void setValue(java.lang.Object value)
setValue
in interface Property
value
- New value of property value.public java.lang.String getSynch()
getSynch
in interface Property
public void setSynch(java.lang.String status)
setSynch
in interface Property
status
- the synchronization statuspublic int getNullable()
getNullable
in interface Property
public boolean isReadOnly()
isReadOnly
in interface Property
public boolean isSearchable()
isSearchable
in interface Property
public boolean isAutoincrement()
isAutoincrement
in interface Property
public boolean isCaseSensitive()
isCaseSensitive
in interface Property
public boolean isSigned()
isSigned
in interface Property
public void setSearchable(boolean searchable)
setSearchable
in interface Property
public void setReadOnly(boolean readOnly)
setReadOnly
in interface Property
public void setNullable(int nullable)
setNullable
in interface Property
public void setCaseSensitive(boolean caseSensitive)
setCaseSensitive
in interface Property
public void setAutoincrement(boolean autoincrement)
public void setType2(java.lang.String type2)
setType2
in interface Property
public int getSqlType()
getSqlType
in interface Property
public void setSqlType(int sqlType)
setSqlType
in interface Property
public int getType1()
getType1
in interface Property
public java.lang.String getType2()
getType2
in interface Property
public void setJavaClassName(java.lang.String javaClassName)
setJavaClassName
in interface Property
public void setSigned(boolean signed)
setSigned
in interface Property
public boolean isPrimaryKey()
isPrimaryKey
in interface Property
public void setPrimaryKey(boolean primaryKey)
setPrimaryKey
in interface Property
public void updateFromPropertyVO(PropertyVO pvo)
Property
updateFromPropertyVO
in interface Property
public PropertyVO buildPropertyVO(Model dm, long classId)
Property
buildPropertyVO
in interface Property
public java.lang.String getOriginalTable()
getOriginalTable
in interface Property
public void setOriginalTable(java.lang.String originalTable)
public java.lang.String getValidation()
getValidation
in interface Property
public void setValidation(java.lang.String validation)
setValidation
in interface Property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |