الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

اين الخطأ

Featured Replies

بتاريخ:

protected void doDML(int operation, TransactionEvent e) {
if (operation ==DML_INSERT)

{
try {

String sql="select max(ide) from etudiant" ;
PreparedStatement stat =
getDBTransaction().createPreparedStatement(sql, 1) ;
ResultSet rs = (ResultSet)stat.executeQuery();

if (rs.next()) {

int max = rs.getInt(1)+1;
setIde(new Number(max));
}
else {
int max =1;
setIde(new Number(max));

}

}
catch (Exception e1) {
// TODO: Add catch code
e1.printStackTrace();
}

}



super.doDML(operation, e);
}
}


  • Error(334,23): java.lang.Number is abstract; cannot be instantiated

  • Error(338,16): setIde(java.lang.Integer) in model.EtudiantImpl cannot be applied to (int[])

بتاريخ:

أخي الفاضل :


يجب أن تتأكد من نوع البيانات المطلوب المشكلة هنا أن نوع

java.lang.Number

غير متوافق من نوع بيانات الحقل المراد وضع القيمة به عدل سطر الكود



setIde(new Number(max));



إلى




setIde(new oracle.jbo.domain.Number(max));



مع تمنياتي بالتوفيق

بتاريخ:
  • كاتب الموضوع

شكرا اخي للاهتمام .....مع العلم اني اشتغل ب mysql

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.