|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--asgaard.skid.BeanKeyCall
This class maps the keys of an Bean to the Database.
SkidBean
,
BeanBrokerCall
Field Summary | |
protected boolean[] |
array
|
static byte |
BEAN
|
static byte |
BOOLEAN
|
static byte |
BYTE
|
protected boolean |
carriesBean
|
static byte |
DATE
|
static byte |
DOUBLE
|
protected java.lang.String[] |
fieldNames
|
protected int[] |
fieldnr
|
static byte |
FLOAT
|
static byte |
INT
|
protected boolean |
isBean
|
protected boolean |
isRoot
|
static byte |
LONG
|
protected java.lang.reflect.Method[] |
methods
|
static byte |
OTHER
|
protected BeanKeyCall[] |
rekurse
|
static byte |
REKURSE
|
protected static BeanBrokerCall |
selectKey
|
static byte |
SHORT
|
protected int |
superCount
|
protected java.lang.String |
tableName
|
protected byte[] |
types
|
Constructor Summary | |
BeanKeyCall(java.lang.Class aClass)
Creates an adapter between a Bean(class) and the Database and the corresponding physical table with the Keys. |
|
BeanKeyCall(int p,
java.lang.String name,
byte beantype)
Creates an empty adapter between a Bean(class) and the Database |
Method Summary | |
int |
getBeanClassKey()
Returns the class-key of the to this adapter corresponding Bean-class |
java.lang.String |
getBeanClassName()
Returns the class-name of the to this adapter corresponding Bean-class |
int |
getBeanClassType()
Returns the beantype of the to this adapter corresponding Bean-class |
java.lang.Integer |
getFieldCount()
Returns the number of the accessible properties. ( |
java.lang.Integer |
getFieldIdx(java.lang.String fieldname)
Returns the Index of a given property-name |
java.lang.String[] |
getFieldNames()
Returns the set of key-names of the adapted Bean (if any). |
java.lang.Integer |
getFieldNr(java.lang.Integer index)
Returns the FieldNr to a corresponding index. |
java.util.Vector |
getResultKeys(java.lang.String clause)
Get Keyset Do not use manually |
java.lang.String |
getValue(java.lang.Object value,
java.lang.Integer index)
Returns the value as String dependend on the Type of the property |
java.lang.Boolean |
isBean()
Returns if this class implements the RemoteBean |
java.lang.Boolean |
isRoot()
Returns if this class is the RemoteBean - rootclass |
static void |
setCalls(BeanBrokerCall create,
BeanBrokerCall delete,
BeanBrokerCall insert,
BeanBrokerCall select)
Sets the handles to the call-Statements |
boolean |
updateKeys(RemoteBean aBean)
Updates the Keys of an Bean. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final byte REKURSE
public static final byte BEAN
public static final byte OTHER
public static final byte BYTE
public static final byte SHORT
public static final byte INT
public static final byte LONG
public static final byte FLOAT
public static final byte DOUBLE
public static final byte DATE
public static final byte BOOLEAN
protected static BeanBrokerCall selectKey
protected java.lang.String tableName
protected boolean carriesBean
protected boolean isBean
protected boolean isRoot
protected int superCount
protected java.lang.reflect.Method[] methods
protected int[] fieldnr
protected byte[] types
protected java.lang.String[] fieldNames
protected boolean[] array
protected BeanKeyCall[] rekurse
Constructor Detail |
public BeanKeyCall(int p, java.lang.String name, byte beantype)
public BeanKeyCall(java.lang.Class aClass) throws java.lang.Exception
aClass
- the new Class to mapMethod Detail |
public static void setCalls(BeanBrokerCall create, BeanBrokerCall delete, BeanBrokerCall insert, BeanBrokerCall select)
create
- call of the databasedelete
- call of the databaseinsert
- call of the databaseselect
- call of the databasepublic int getBeanClassKey()
public java.lang.String getBeanClassName()
public int getBeanClassType()
public java.lang.String[] getFieldNames()
public java.lang.Integer getFieldIdx(java.lang.String fieldname)
fieldname
- the name of the property (without "get")public java.lang.Integer getFieldNr(java.lang.Integer index)
index
- the searched indexpublic java.lang.Boolean isRoot()
public java.lang.Boolean isBean()
public java.lang.Integer getFieldCount()
public java.util.Vector getResultKeys(java.lang.String clause) throws java.sql.SQLException
a
- correct clause for the SELECT statementSkidBeanFilter.getResultKeys()
public boolean updateKeys(RemoteBean aBean) throws java.lang.Exception
aBean
- the Bean which shall be updatedpublic java.lang.String getValue(java.lang.Object value, java.lang.Integer index) throws java.lang.Exception
value
- to convertindex
- the index of the Property
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |