|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jenkov.mrpersister.impl.mapping.method.MethodMapping
public class MethodMapping
Field Summary | |
---|---|
protected java.lang.String |
columnName
|
protected int |
columnType
|
protected boolean |
isPrimaryKey
|
protected boolean |
isTableMapped
|
protected java.lang.reflect.Method |
objectMethod
|
Constructor Summary | |
---|---|
MethodMapping()
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getColumnName()
Returns the database table column name this method method is method to. |
int |
getColumnType()
Returns the column type as defined in the database. |
java.lang.reflect.Method |
getObjectMethod()
Returns the method instance this method method is method from. |
int |
hashCode()
|
protected boolean |
isNumberType()
|
boolean |
isPrimaryKey()
Returns true if the database column referenced by this method method is the primary key of the table it comes from. |
protected boolean |
isStringType()
|
boolean |
isTableMapped()
Returns true if the database column referenced by this method method exists in a table in the database. |
void |
setColumnName(java.lang.String fieldName)
Sets the database column name this method method is method to. |
void |
setColumnType(int columnType)
Sets the column type as defined in the database. |
void |
setObjectMethod(java.lang.reflect.Method member)
The method instance this method method maps from. |
void |
setPrimaryKey(boolean isPrimaryKey)
Sets whether or not the column referenced by this method method is the primary key. |
void |
setTableMapped(boolean isTableMapped)
Sets whether or not the database column referenced by this method method exists in a table in the database. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String columnName
protected int columnType
protected java.lang.reflect.Method objectMethod
protected boolean isPrimaryKey
protected boolean isTableMapped
Constructor Detail |
---|
public MethodMapping()
Method Detail |
---|
public java.lang.String getColumnName()
IMethodMapping
getColumnName
in interface IMethodMapping
public void setColumnName(java.lang.String fieldName)
IMethodMapping
setColumnName
in interface IMethodMapping
fieldName
- The column name to map to.public int getColumnType()
IMethodMapping
getColumnType
in interface IMethodMapping
public void setColumnType(int columnType)
IMethodMapping
setColumnType
in interface IMethodMapping
columnType
- The column type as defined in the database.protected boolean isNumberType()
protected boolean isStringType()
public java.lang.reflect.Method getObjectMethod()
IMethodMapping
getObjectMethod
in interface IMethodMapping
Method
instance this method method is method from.public void setObjectMethod(java.lang.reflect.Method member)
IMethodMapping
setObjectMethod
in interface IMethodMapping
member
- The Method
instance this method method maps from.public boolean isPrimaryKey()
IMethodMapping
isPrimaryKey
in interface IMethodMapping
public void setPrimaryKey(boolean isPrimaryKey)
IMethodMapping
setPrimaryKey
in interface IMethodMapping
isPrimaryKey
- Set to true if the column referenced by this method method
is the primary key of the table it comes from.public boolean isTableMapped()
IMethodMapping
"select count(*) totalCount from employees
isTableMapped
in interface IMethodMapping
public void setTableMapped(boolean isTableMapped)
IMethodMapping
"select count(*) totalCount from employees
setTableMapped
in interface IMethodMapping
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |