Tabnine Logo
PersistenceCapable
Code IndexAdd Tabnine to your IDE (free)

How to use
PersistenceCapable
in
javax.jdo.annotations

Best Java code snippets using javax.jdo.annotations.PersistenceCapable (Showing top 20 results out of 315)

origin: org.datanucleus/datanucleus-api-jdo

@javax.jdo.annotations.PersistenceCapable
protected class PersistenceCapableModel {}
origin: apache/incubator-sentry

@PersistenceCapable
public class MSentryVersion {
 private String schemaVersion;
origin: apache/sentry

@PersistenceCapable
public class MSentryVersion {
 private String schemaVersion;
origin: apache/sentry

@PersistenceCapable
public static class MPathToPersist {
 private String path;
origin: org.apache.isis.core/isis-core-unittestsupport

@PersistenceCapable
public class SomeDomainObject {


  private SortedSet<SomeDomainObject> someSortedSet = new TreeSet<SomeDomainObject>();

  //private Set<SomeDomainObject> someSet = new HashSet<SomeDomainObject>();
  
  //private List<SomeDomainObject> someList = new ArrayList<SomeDomainObject>();


}

origin: org.apache.isis.core/isis-core-unittestsupport

@PersistenceCapable
public class SomeDomainObject {

  public final void injectFoo(SomeService someService) {}

}

origin: org.onehippo.cms7/hippo-addon-publication-workflow-repository

@PersistenceCapable
public class ScheduledRequestWorkflowImpl extends WorkflowImpl implements BasicRequestWorkflow {
  @SuppressWarnings("unused")
  private final static String SVN_ID = "$Id: ScheduledRequestWorkflowImpl.java 27417 2011-03-19 21:10:32Z bvanhalderen $";

  @Persistent(column=".")
  protected ScheduledRequest request;

  public ScheduledRequestWorkflowImpl() throws RemoteException {
  }

  @Override
  public Map<String,Serializable> hints()  {
    Map<String,Serializable> info = super.hints();
    return info;
  }

  public void cancelRequest() throws WorkflowException, MappingException, RepositoryException {
    request = null;
  }
}

origin: org.onehippo.cms7/hippo-addon-publication-workflow-repository

@PersistenceCapable
public class UnlockWorkflowImpl extends WorkflowImpl implements UnlockWorkflow {
  @SuppressWarnings("unused")
  private final static String SVN_ID = "$Id: UnlockWorkflowImpl.java 27417 2011-03-19 21:10:32Z bvanhalderen $";

  @Persistent(column=".")
  protected PublishableDocument document;

  public UnlockWorkflowImpl() throws RemoteException {
  }

  @Override
  public Map<String, Serializable> hints() {
    Map<String, Serializable> info = super.hints();
    if (document == null || !"draft".equals(document.getState())) {
      info.put("unlock", new Boolean(false));
    }
    return info;
  }

  public void unlock() throws WorkflowException, MappingException, RepositoryException, RemoteException {
    if (document == null) {
      throw new WorkflowException("No document to unlock");
    }
    document.setOwner(getWorkflowContext().getUserIdentity());
  }
}

origin: org.onehippo.cms7/hippo-addon-publication-workflow-repository

@PersistenceCapable
public class BasicRequestWorkflowImpl extends WorkflowImpl implements BasicRequestWorkflow {
  @SuppressWarnings("unused")
  private final static String SVN_ID = "$Id: BasicRequestWorkflowImpl.java 27417 2011-03-19 21:10:32Z bvanhalderen $";

  @Persistent(column=".")
  protected PublicationRequest request;

  public BasicRequestWorkflowImpl() throws RemoteException {
  }

  @Override
  public Map<String,Serializable> hints()  {
    Map<String,Serializable> info = super.hints();
    if(request.getOwner() != null) {
      if(request.getOwner().equals(getWorkflowContext().getUserIdentity())) {
        info.put("cancelRequest", new Boolean(true));
      } else {
        info.put("cancelRequest", new Boolean(false));
      }
    }
    return info;
  }

  public void cancelRequest() throws WorkflowException, MappingException, RepositoryException {
    request = null;
  }
}

origin: apache/sentry

@PersistenceCapable
public class MAuthzPathsSnapshotId {
 @PrimaryKey
origin: org.apache.isis.core/isis-core-unittestsupport

@PersistenceCapable
public class ChildDomainObject implements Comparable<ChildDomainObject> {
origin: org.apache.isis.core/isis-core-tck-dom

@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
@javax.jdo.annotations.Discriminator("UDRD")
@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
@ObjectType("UDRD")
public class UnidirReferencedEntity extends AbstractDomainObject {
  

  // {{ Name  (title)
  private String name;

  @Title(sequence="1")
  @MemberOrder(sequence = "1")
  public String getName() {
    return name;
  }

  public void setName(final String name) {
    this.name = name;
  }

  // }}


}

origin: org.apache.isis.core/isis-core-tck-dom

@javax.jdo.annotations.PersistenceCapable
@javax.jdo.annotations.Discriminator("RTNE")
@ObjectType("RTNE")
origin: org.apache.isis.core/isis-core-tck-dom

@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
@javax.jdo.annotations.Discriminator("UDJC")
@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
@ObjectType("UDJC")
public class UnidirJoinChildEntity extends AbstractDomainObject {
  

  // {{ Name  (title)
  private String name;

  @Title(sequence="1")
  @MemberOrder(sequence = "1")
  public String getName() {
    return name;
  }

  public void setName(final String name) {
    this.name = name;
  }

  // }}


}

origin: org.apache.isis.core/isis-core-tck-dom

@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
@javax.jdo.annotations.Discriminator("UDFC")
@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
@ObjectType("UDFC")
public class UnidirFkChildEntity extends AbstractDomainObject {
  

  // {{ Name  (title)
  private String name;

  @Title(sequence="1")
  @MemberOrder(sequence = "1")
  public String getName() {
    return name;
  }

  public void setName(final String name) {
    this.name = name;
  }

  // }}


}

origin: org.apache.isis.core/isis-core-tck-dom

@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
@javax.jdo.annotations.Discriminator("AUAS")
@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
@ObjectType("AUAS")
public class AutoAssignedEntity extends AbstractDomainObject {

  
  // {{ StringProperty (used in title)
  private String stringProperty;

  @Title(sequence="2")
  @Optional
  @MemberOrder(sequence = "1")
  public String getStringProperty() {
    return stringProperty;
  }

  public void setStringProperty(final String description) {
    this.stringProperty = description;
  }

  // }}

}

origin: org.apache.isis.core/isis-core-tck-dom

@javax.jdo.annotations.PersistenceCapable
@javax.jdo.annotations.Discriminator("BSRC")
@javax.jdo.annotations.Query(
origin: org.apache.isis.core/isis-core-tck-dom

@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
@javax.jdo.annotations.Discriminator("UDRG")
@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
origin: org.apache.isis.core/isis-core-tck-dom

@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
@javax.jdo.annotations.Discriminator("PCS2")
@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
@Inheritance(strategy=InheritanceStrategy.SUPERCLASS_TABLE)
@ObjectType("PCS2")
public class PolyClassSubtype2Entity extends PolyClassChildEntity {

  
  // {{ Bar (property)
  private String bar;

  @MemberOrder(sequence = "1")
  public String getBar() {
    return bar;
  }

  public void setBar(final String bar) {
    this.bar = bar;
  }
  // }}



}

origin: org.apache.isis.core/isis-core-tck-dom

@javax.jdo.annotations.PersistenceCapable
@javax.jdo.annotations.EmbeddedOnly
@javax.jdo.annotations.Discriminator("RFCG")
@Aggregated
@ObjectType("AGGR")
public class AggregatedEntity extends BaseEntity {
  
  // {{ Name
  private String name;

  @MemberOrder(sequence = "1")
  public String getName() {
    return name;
  }

  public void setName(final String name) {
    this.name = name;
  }

  // }}

}

javax.jdo.annotationsPersistenceCapable

Most used methods

  • <init>

Popular in Java

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now