Çalıştırılan Prepared Statement tan boolean değeri getirme kodu kullanımı örneği (Get boolean value by executing the Prepared Statement code usage example)

package net.yazilimcity.myproject.lov;

public enum MyTypeStatus {
A(“A”),
B(“B”),
C(“C”);

public String name;

MyTypeStatus(String name) {
this.name = name;
}
}

***

public class MyClass {

private MyTypeStatus linkType;

public int getId() {
return id;
}

public void setId(int id) {
this.id = id;
}

public BannerLinkTypeStatus getLinkType() {
return linkType;
}

public void setLinkType(BannerLinkTypeStatus linkType) {
this.linkType = linkType;
}

}

***

import net.yazilimcity.myproject.lov.MyBooleanStatus;

myClass.setMyType(MyBooleanStatus.valueOf(rs.getString(“mytype”)));

Share on Facebook0Tweet about this on TwitterShare on Google+0Share on StumbleUpon0Share on Reddit0

Leave a Reply


*