|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jrunx.persistence.greylock.DBTypeUpdate
| Field Summary | |
static int |
ARRAY_CHANGED
|
static int |
NAME_CHANGED
|
static int |
RELATION_CHANGED
|
static int |
SEARCHABLE_CHANGED
|
| Constructor Summary | |
DBTypeUpdate()
|
|
DBTypeUpdate(DBTypeDef def)
|
|
DBTypeUpdate(DBTypeDef def,
java.lang.String oldName)
|
|
| Method Summary | |
void |
addAddedProperty(java.lang.String propName)
Add a new property |
void |
addPropertyChanged(java.lang.String propertyName,
int attribute)
Set the specified attribute changed flag for the property |
void |
addPropertyRenamed(java.lang.String propertyName,
java.lang.String oldName)
Add a property that has been renamed |
void |
addRemovedProperty(java.lang.String propName)
Add a removed property |
java.util.Iterator |
getAddedPropertyNames()
Get the names of all the new properties |
DBTypeDef |
getDBTypeDef()
Get the new type definition |
java.util.Iterator |
getModifiedPropertyNames()
Get an iterator of the names of all the properties that have been modified |
java.lang.String |
getNewPropertyName(java.lang.String propertyName)
Get the new property name for a renamed property. |
DBTypeDef |
getOldDBTypeDef()
Get the old type definition |
java.lang.String |
getOldName()
Get the original type name |
java.lang.String |
getOldPropertyName(java.lang.String propertyName)
Get the old property name for a renamed property. |
java.util.Iterator |
getRemovedPropertyNames()
Get the names of all the removed properties |
boolean |
isArrayChanged(java.lang.String propertyName)
Determine if the array attribute of the specified property has been changed |
boolean |
isNameChanged(java.lang.String propertyName)
Determine if the name of the specified property has been changed |
boolean |
isPropertyChanged(java.lang.String propertyName,
int attribute)
Determine if the specified attribute of a property has been changed |
boolean |
isPropertyChanged(java.lang.String propertyName,
int[] attributes)
Determine if the specified attributes of a property has been changed |
boolean |
isRelationChanged(java.lang.String propertyName)
Determine if the relation attribute of the specified property has been changed |
boolean |
isSearchChanged(java.lang.String propertyName)
Determine if the searchable attribute of the specified property has been changed |
boolean |
isTypeRenamed()
Get the flag to indicate whether or not the type has been renamed |
void |
setOldName(java.lang.String oldName)
Set the original type name |
void |
setOldTypeDef(DBTypeDef def)
Set the old type definition |
void |
setTypeDef(DBTypeDef def)
Set the new type definition |
void |
setTypeRenamed(boolean isTypeRenamed)
Set the flag to indicate whether or not the type has been renamed |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NAME_CHANGED
public static final int SEARCHABLE_CHANGED
public static final int ARRAY_CHANGED
public static final int RELATION_CHANGED
| Constructor Detail |
public DBTypeUpdate()
public DBTypeUpdate(DBTypeDef def)
public DBTypeUpdate(DBTypeDef def,
java.lang.String oldName)
| Method Detail |
public void addPropertyRenamed(java.lang.String propertyName,
java.lang.String oldName)
propertyName - the new property nameoldName - the old property name
public void addPropertyChanged(java.lang.String propertyName,
int attribute)
propertyName - the property nameattribute - the attribute that changedpublic boolean isNameChanged(java.lang.String propertyName)
propertyName - the property namepublic boolean isRelationChanged(java.lang.String propertyName)
propertyName - the property namepublic boolean isArrayChanged(java.lang.String propertyName)
propertyName - the property namepublic boolean isSearchChanged(java.lang.String propertyName)
propertyName - the property namepublic void addAddedProperty(java.lang.String propName)
pdef - the new property definitionpublic java.util.Iterator getAddedPropertyNames()
public void addRemovedProperty(java.lang.String propName)
pdef - the removed property namepublic java.util.Iterator getRemovedPropertyNames()
public boolean isPropertyChanged(java.lang.String propertyName,
int attribute)
propertyName - the new property nameattribute - the attribute
public boolean isPropertyChanged(java.lang.String propertyName,
int[] attributes)
propertyName - the new property nameattributea - the array of attributespublic void setTypeDef(DBTypeDef def)
def - the updated type definitionpublic DBTypeDef getDBTypeDef()
public void setOldTypeDef(DBTypeDef def)
def - the old type definitionpublic DBTypeDef getOldDBTypeDef()
public void setTypeRenamed(boolean isTypeRenamed)
isTypeRenamed - true if the type is renamed, else falsepublic boolean isTypeRenamed()
public void setOldName(java.lang.String oldName)
oldName - the original name of the typepublic java.lang.String getOldName()
the - original name of the typepublic java.util.Iterator getModifiedPropertyNames()
public java.lang.String getOldPropertyName(java.lang.String propertyName)
= - the new property namepublic java.lang.String getNewPropertyName(java.lang.String propertyName)
= - the old property namepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||