Package asjava.uniobjects

Examples of asjava.uniobjects.UniFile


   * @see org.cfcc.provider.FieldData#getAnswer()
   */
  @Override
  public String getAnswer() {
    String result = "";
    UniFile fd = null;
    try {
      fd = new UniFile(current_session, filename, 0);
      try {
        result = fd.readField(record_id, location).toString();
      } catch (UniFileException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
    } catch (UniFileException e) {
View Full Code Here


        String secret_in = test_prop.getProperty("SECRET");

        assertFalse(READ_ONLY);
        try {
            LocalParams local_params = new LocalParams(db.uSession, params_fn);
            UniFile fd = local_params.open();
            fd.deleteRecord(person_id);
            fd.close();
        } catch (UniFileException ex) {
            System.err.println("setNewSecretParams - " + ex);
            System.err.println("setNewSecretParams - No record to delete");
        }
View Full Code Here

        String params_fn = test_prop.getProperty("LOCAL_PARAMS");
        String person_id = test_prop.getProperty("PERSON_ID");
        String secret_in = test_prop.getProperty("SECRET");
        LocalParams local_params = new LocalParams(db.uSession, params_fn);
        UniFile fd = local_params.open();

        assertFalse(READ_ONLY);
        try {
            fd.lockRecord(person_id, Column.EXCLUSIVE_UPDATE);
            db.setSecret(person_id, Environment.security_questions[6], secret_in);
        } catch (UniFileException ex) {
            System.err.println("setNewSecretParams - " + ex);
            System.err.println("setNewSecretParams - No record to delete");
        } finally {
            fd.unlockRecord();
            fd.close();
        }
    }
View Full Code Here

TOP

Related Classes of asjava.uniobjects.UniFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.