com.irisel.oms.olapi.internal
Interface Property

All Known Implementing Classes:
DataProperty

public interface Property

The Classes of an OMS Object Model consist of properties. Properties are the "fields" of the OMS Objects.


Field Summary
static java.lang.String C_SYNC_DELETED
           
static java.lang.String C_SYNC_MODIFIED
           
static java.lang.String C_SYNC_NEW
           
static java.lang.String C_SYNC_SYNCHRONIZED
           
 
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()
          Returns the synchronization status
 java.lang.String getTitle()
          Getter for property title
 int getType()
          Getter for property 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 setCaseSensitive(boolean caseSensitive)
           
 void setIndex(int i)
           
 void setJavaClassName(java.lang.String javaClassName)
           
 void setName(java.lang.String s)
          Setter for property name
 void setNullable(int nullable)
           
 void setPrimaryKey(boolean primaryKey)
           
 void setReadOnly(boolean readOnly)
           
 void setSearchable(boolean searchable)
           
 void setSigned(boolean signed)
           
 void setSize(int i)
          Setter for property size
 void setSqlType(int sqlType)
           
 void setSynch(java.lang.String value)
          Sets the synchronization status
 void setTitle(java.lang.String s)
          Setter for property title
 void setType(int i)
          Setter for property type
 void setType1(int 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 the object
 void updateFromPropertyVO(PropertyVO pvo)
          Updates from PropertyVO information
 

Field Detail

C_SYNC_NEW

static final java.lang.String C_SYNC_NEW
See Also:
Constant Field Values

C_SYNC_MODIFIED

static final java.lang.String C_SYNC_MODIFIED
See Also:
Constant Field Values

C_SYNC_SYNCHRONIZED

static final java.lang.String C_SYNC_SYNCHRONIZED
See Also:
Constant Field Values

C_SYNC_DELETED

static final java.lang.String C_SYNC_DELETED
See Also:
Constant Field Values
Method Detail

getNullable

int getNullable()

isAutoincrement

boolean isAutoincrement()

isSearchable

boolean isSearchable()

isCaseSensitive

boolean isCaseSensitive()

isPrimaryKey

boolean isPrimaryKey()

isReadOnly

boolean isReadOnly()

isSigned

boolean isSigned()

getIndex

int getIndex()
Getter for property index

Returns:
the index of the property in the class

getJavaClassName

java.lang.String getJavaClassName()
Getter for property Java Classname

Returns:
the name of the property

getOriginalTable

java.lang.String getOriginalTable()

getName

java.lang.String getName()
Getter for property name

Returns:
the name of the property

getSize

int getSize()
Getter for property size

Returns:
the size of the property (e.g. size of varchar)

getTitle

java.lang.String getTitle()
Getter for property title

Returns:
the title of the property

getType

int getType()
Getter for property type

Returns:
a java.sql.Types constant for the type of the property,

getValue

java.lang.Object getValue()
Getter for property value

Returns:
value of the property

getValidation

java.lang.String getValidation()

setIndex

void setIndex(int i)

setName

void setName(java.lang.String s)
Setter for property name

Parameters:
s - the name of the property

setSize

void setSize(int i)
Setter for property size

Parameters:
i - the size of the property (e.g. size of a varchar)

setTitle

void setTitle(java.lang.String s)
Setter for property title

Parameters:
s - title of the property

setType

void setType(int i)
Setter for property type

Parameters:
i - a java.sql.Types constant for the type of the property

toString

java.lang.String toString()
Returns a String representation of the object

Overrides:
toString in class java.lang.Object
Returns:
a String representation of the object

buildPropertyVO

PropertyVO buildPropertyVO(Model dm,
                           long classId)
Returns a PropertyVO object for this Property


updateFromPropertyVO

void updateFromPropertyVO(PropertyVO pvo)
Updates from PropertyVO information

Parameters:
pvo -

setValue

void setValue(java.lang.Object value)
Setter for property value

Parameters:
value - value of the property

getSynch

java.lang.String getSynch()
Returns the synchronization status

Returns:
a string with the s

setSynch

void setSynch(java.lang.String value)
Sets the synchronization status

Parameters:
value - It must be True only if the property reflects its counterpart in the database current schema

setType1

void setType1(int type1)
              throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getType1

int getType1()
             throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setType2

void setType2(java.lang.String type2)
              throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getType2

java.lang.String getType2()
                          throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setSqlType

void setSqlType(int sqlType)
                throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getSqlType

int getSqlType()
               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setPrimaryKey

void setPrimaryKey(boolean primaryKey)
                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setSigned

void setSigned(boolean signed)
               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setSearchable

void setSearchable(boolean searchable)
                   throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setReadOnly

void setReadOnly(boolean readOnly)
                 throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setNullable

void setNullable(int nullable)
                 throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setJavaClassName

void setJavaClassName(java.lang.String javaClassName)
                      throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setCaseSensitive

void setCaseSensitive(boolean caseSensitive)
                      throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

setValidation

void setValidation(java.lang.String validation)