congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Reflection.findSerializableProperties
Code IndexAdd Tabnine to your IDE (free)

How to use
findSerializableProperties
method
in
org.granite.messaging.reflect.Reflection

Best Java code snippets using org.granite.messaging.reflect.Reflection.findSerializableProperties (Showing top 20 results out of 315)

origin: org.graniteds/granite-client

public List<Property> getProperties(Class<?> entityClass) {
  return reflection.findSerializableProperties(entityClass);
}
 
origin: org.graniteds/granite-client-javafx

public List<Property> getProperties(Class<?> entityClass) {
  return reflection.findSerializableProperties(entityClass);
}
 
origin: org.graniteds/granite-client-java

public List<Property> getProperties(Class<?> entityClass) {
  return reflection.findSerializableProperties(entityClass);
}
 
origin: org.graniteds/granite-client

public Property findSerializableProperty(Class<?> cls, String name) throws SecurityException {
  List<Property> properties = findSerializableProperties(cls);
  for (Property property : properties) {
    if (name.equals(property.getName()))
      return property;
  }
  return null;
}
 
origin: org.graniteds/granite-client-javafx

public List<Property> getLazyProperties(Class<?> entityClass) {
  List<Property> properties = reflection.findSerializableProperties(entityClass);
  List<Property> lazyProperties = new ArrayList<Property>();
  for (Property property : properties) {
    if (property.isAnnotationPresent(Lazy.class))
      lazyProperties.add(property);
  }
  return lazyProperties;
}
origin: org.graniteds/granite-client

public List<Property> getLazyProperties(Class<?> entityClass) {
  List<Property> properties = reflection.findSerializableProperties(entityClass);
  List<Property> lazyProperties = new ArrayList<Property>();
  for (Property property : properties) {
    if (property.isAnnotationPresent(Lazy.class))
      lazyProperties.add(property);
  }
  return lazyProperties;
}
origin: org.graniteds/granite-client-java

public List<Property> getLazyProperties(Class<?> entityClass) {
  List<Property> properties = reflection.findSerializableProperties(entityClass);
  List<Property> lazyProperties = new ArrayList<Property>();
  for (Property property : properties) {
    if (property.isAnnotationPresent(Lazy.class))
      lazyProperties.add(property);
  }
  return lazyProperties;
}
origin: org.graniteds/granite-client-javafx

public Property findSerializableProperty(Class<?> cls, String name) throws SecurityException {
  List<Property> properties = findSerializableProperties(cls);
  for (Property property : properties) {
    if (name.equals(property.getName()))
      return property;
  }
  return null;
}
 
origin: org.graniteds/granite-server

public Property findSerializableProperty(Class<?> cls, String name) throws SecurityException {
  List<Property> properties = findSerializableProperties(cls);
  for (Property property : properties) {
    if (name.equals(property.getName()))
      return property;
  }
  return null;
}
 
origin: org.graniteds/granite-client-java

public Property findSerializableProperty(Class<?> cls, String name) throws SecurityException {
  List<Property> properties = findSerializableProperties(cls);
  for (Property property : properties) {
    if (name.equals(property.getName()))
      return property;
  }
  return null;
}
 
origin: org.graniteds/granite-client

protected void encodeSerializable(OutputContext ctx, Serializable v) throws IOException, IllegalAccessException, InvocationTargetException {
  List<Property> properties = ctx.getReflection().findSerializableProperties(v.getClass());
  for (Property property : properties)
    ctx.getAndWriteProperty(v, property);
}
 
origin: org.graniteds/granite-client

protected void decodeSerializable(InputContext ctx, Serializable v)
  throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException {
  List<Property> properties = ctx.getReflection().findSerializableProperties(v.getClass());
  for (Property property : properties)
    ctx.readAndSetProperty(v, property);
}
origin: org.graniteds/granite-server-hibernate4

public void decode(ExtendedObjectInput in, Object v) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException {
  if (!(v instanceof HibernateProxy)) {
    List<Property> properties = in.getReflection().findSerializableProperties(v.getClass());
    for (Property property : properties)
      in.readAndSetProperty(v, property);
  }
}
 
origin: org.graniteds/granite-client-javafx

public Map<String, Object> getPropertyValues(Object entity, boolean raw, boolean excludeIdUid, boolean excludeVersion, boolean includeReadOnly) {
  Map<String, Object> values = new LinkedHashMap<String, Object>();
  List<Property> properties = reflection.findSerializableProperties(entity.getClass());
origin: org.graniteds/granite-client-java

public void encode(ExtendedObjectOutput out, Object v) throws IOException, IllegalAccessException, InvocationTargetException {
  
  Persistence persistence = Platform.persistence();
  
  boolean initialized = persistence.isInitialized(v);
  
  out.writeBoolean(initialized);
  out.writeUTF(persistence.getDetachedState(v));
  
  if (!initialized)
    out.writeObject(persistence.getId(v));
  else {
    List<Property> properties = new ArrayList<Property>(out.getReflection().findSerializableProperties(v.getClass()));
    properties.remove(persistence.getInitializedProperty(v.getClass()));
    properties.remove(persistence.getDetachedStateProperty(v.getClass()));
    for (Property property : properties)
      out.getAndWriteProperty(v, property);
  }
}
origin: org.graniteds/granite-client-javafx

public void encode(ExtendedObjectOutput out, Object v) throws IOException, IllegalAccessException, InvocationTargetException {
  
  Persistence persistence = Platform.persistence();
  
  boolean initialized = persistence.isInitialized(v);
  
  out.writeBoolean(initialized);
  out.writeUTF(persistence.getDetachedState(v));
  
  if (!initialized)
    out.writeObject(persistence.getId(v));
  else {
    List<Property> properties = new ArrayList<Property>(out.getReflection().findSerializableProperties(v.getClass()));
    properties.remove(persistence.getInitializedProperty(v.getClass()));
    properties.remove(persistence.getDetachedStateProperty(v.getClass()));
    for (Property property : properties)
      out.getAndWriteProperty(v, property);
  }
}
origin: org.graniteds/granite-client

public void encode(ExtendedObjectOutput out, Object v) throws IOException, IllegalAccessException, InvocationTargetException {
  
  Persistence persistence = Platform.persistence();
  
  boolean initialized = persistence.isInitialized(v);
  
  out.writeBoolean(initialized);
  out.writeUTF(persistence.getDetachedState(v));
  
  if (!initialized)
    out.writeObject(persistence.getId(v));
  else {
    List<Property> properties = new ArrayList<Property>(out.getReflection().findSerializableProperties(v.getClass()));
    properties.remove(persistence.getInitializedProperty(v.getClass()));
    properties.remove(persistence.getDetachedStateProperty(v.getClass()));
    for (Property property : properties)
      out.getAndWriteProperty(v, property);
  }
}
origin: org.graniteds/granite-client-javafx

  public void decode(ExtendedObjectInput in, Object v) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException {
    
    Persistence persistence = Platform.persistence();
    
    boolean initialized = in.readBoolean();
    String detachedState = in.readUTF();
    
    persistence.setInitialized(v, initialized);
    persistence.setDetachedState(v, detachedState);
    
    if (!initialized)
      persistence.setId(v, in.readObject());
    else {
      List<Property> properties = new ArrayList<Property>(in.getReflection().findSerializableProperties(v.getClass()));
      properties.remove(persistence.getInitializedProperty(v.getClass()));
      properties.remove(persistence.getDetachedStateProperty(v.getClass()));

      for (Property property : properties)
        in.readAndSetProperty(v, property);
    }
  }
}
origin: org.graniteds/granite-client-java

  public void decode(ExtendedObjectInput in, Object v) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException {
    
    Persistence persistence = Platform.persistence();
    
    boolean initialized = in.readBoolean();
    String detachedState = in.readUTF();
    
    persistence.setInitialized(v, initialized);
    persistence.setDetachedState(v, detachedState);
    
    if (!initialized)
      persistence.setId(v, in.readObject());
    else {
      List<Property> properties = new ArrayList<Property>(in.getReflection().findSerializableProperties(v.getClass()));
      properties.remove(persistence.getInitializedProperty(v.getClass()));
      properties.remove(persistence.getDetachedStateProperty(v.getClass()));

      for (Property property : properties)
        in.readAndSetProperty(v, property);
    }
  }
}
origin: org.graniteds/granite-client

  public void decode(ExtendedObjectInput in, Object v) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException {
    
    Persistence persistence = Platform.persistence();
    
    boolean initialized = in.readBoolean();
    String detachedState = in.readUTF();
    
    persistence.setInitialized(v, initialized);
    persistence.setDetachedState(v, detachedState);
    
    if (!initialized)
      persistence.setId(v, in.readObject());
    else {
      List<Property> properties = new ArrayList<Property>(in.getReflection().findSerializableProperties(v.getClass()));
      properties.remove(persistence.getInitializedProperty(v.getClass()));
      properties.remove(persistence.getDetachedStateProperty(v.getClass()));

      for (Property property : properties)
        in.readAndSetProperty(v, property);
    }
  }
}
org.granite.messaging.reflectReflectionfindSerializableProperties

Popular methods of Reflection

  • loadClass
  • newInstance
  • <init>
  • getClassLoader
  • isRegularClass
  • newFieldProperty
  • newMethodProperty
  • findProperty
  • findSerializableProperty
  • getDescriptor
  • getLexicalPropertyComparator
  • findSerializableDeclaredProperties
  • getLexicalPropertyComparator,
  • findSerializableDeclaredProperties

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • onCreateOptionsMenu (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Github Copilot alternatives
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