ixml-examples-wizard.2.6.20130530.source-code.BeanInfo.txt Maven / Gradle / Ivy
${package}
import java.beans.BeanDescriptor;
import java.beans.PropertyDescriptor;
import java.sql.Types;
import org.bsc.bean.AbstractManagedBeanInfo;
import org.bsc.bean.BeanDescriptorEntity;
import org.bsc.bean.PropertyDescriptorField;
import org.bsc.bean.PropertyDescriptorPK;
/**
*
* @author Sorrentino
*/
public class ${className}BeanInfo extends AbstractManagedBeanInfo<${className}> {
public ${className}BeanInfo() {
super( ${className}.class );
}
public BeanDescriptor getBeanDescriptor() {
return new BeanDescriptorEntity(getBeanClass(), "${tableName}");
}
public PropertyDescriptor[] getPropertyDescriptors() {
try {
return new PropertyDescriptor[] {
new PropertyDescriptorPK( "${name}", getBeanClass(), "${propGet}", "${propSet}")
.setSQLType(${sqlType})${sep}
new PropertyDescriptorField( "${name}", getBeanClass(), "${propGet}", "${propSet}")
.setSQLType(${sqlType})${sep}
};
}
catch( Exception ex ) {
throw new IllegalStateException(ex);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy